aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/io/trygvis/esper/testing/jenkins/CreateMissingMavenModuleJobsApp.java5
-rw-r--r--src/test/java/io/trygvis/esper/testing/jenkins/SetJobTypeApp.java5
2 files changed, 6 insertions, 4 deletions
diff --git a/src/test/java/io/trygvis/esper/testing/jenkins/CreateMissingMavenModuleJobsApp.java b/src/test/java/io/trygvis/esper/testing/jenkins/CreateMissingMavenModuleJobsApp.java
index 9cc47ad..f03086b 100644
--- a/src/test/java/io/trygvis/esper/testing/jenkins/CreateMissingMavenModuleJobsApp.java
+++ b/src/test/java/io/trygvis/esper/testing/jenkins/CreateMissingMavenModuleJobsApp.java
@@ -7,6 +7,7 @@ import java.sql.ResultSet;
import java.util.List;
import java.util.UUID;
+import fj.*;
import org.apache.abdera.Abdera;
import org.codehaus.httpcache4j.cache.HTTPCache;
@@ -48,14 +49,14 @@ public class CreateMissingMavenModuleJobsApp {
URI url = URI.create(u);
- Option<JenkinsJobXml> xmlOption = client.fetchJob(apiXml(url));
+ Option<P2<JenkinsJobXml,byte[]>> xmlOption = client.fetchJob(apiXml(url));
if(xmlOption.isNone()) {
System.out.println("None");
continue;
}
- JenkinsJobXml jobXml = xmlOption.some();
+ JenkinsJobXml jobXml = xmlOption.some()._1();
if(dao.selectJobByUrl(jobXml.url).isSome()) {
System.out.println("Duplicate");
diff --git a/src/test/java/io/trygvis/esper/testing/jenkins/SetJobTypeApp.java b/src/test/java/io/trygvis/esper/testing/jenkins/SetJobTypeApp.java
index 46060a9..ffd3212 100644
--- a/src/test/java/io/trygvis/esper/testing/jenkins/SetJobTypeApp.java
+++ b/src/test/java/io/trygvis/esper/testing/jenkins/SetJobTypeApp.java
@@ -5,6 +5,7 @@ import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.List;
+import fj.*;
import org.apache.abdera.Abdera;
import org.codehaus.httpcache4j.cache.HTTPCache;
@@ -40,14 +41,14 @@ public class SetJobTypeApp {
for (JenkinsJobDto jobDto : jobs) {
System.out.println("job = " + jobDto.url);
- Option<JenkinsJobXml> xmlOption = jenkinsClient.fetchJob(apiXml(jobDto.url));
+ Option<P2<JenkinsJobXml,byte[]>> xmlOption = jenkinsClient.fetchJob(apiXml(jobDto.url));
if(xmlOption.isNone()) {
System.out.println("None");
continue;
}
- JenkinsJobXml jobXml = xmlOption.some();
+ JenkinsJobXml jobXml = xmlOption.some()._1();
System.out.println("jobXml.type = " + jobXml.type);