diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2012-12-23 00:21:57 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2012-12-23 00:21:57 +0100 |
commit | eaa0a2a0828037227312970668eba7bf951b4049 (patch) | |
tree | eced0d4f6c1b53abe0b2af527ecba3bd493684cd /src/test/java | |
parent | 78e7933c0af1d11d9476c5ee213c64ad87066f55 (diff) | |
download | esper-testing-eaa0a2a0828037227312970668eba7bf951b4049.tar.gz esper-testing-eaa0a2a0828037227312970668eba7bf951b4049.tar.bz2 esper-testing-eaa0a2a0828037227312970668eba7bf951b4049.tar.xz esper-testing-eaa0a2a0828037227312970668eba7bf951b4049.zip |
o Storing the raw bytes with the parsed data from Jenkins.
Diffstat (limited to 'src/test/java')
-rw-r--r-- | src/test/java/io/trygvis/esper/testing/jenkins/CreateMissingMavenModuleJobsApp.java | 5 | ||||
-rw-r--r-- | src/test/java/io/trygvis/esper/testing/jenkins/SetJobTypeApp.java | 5 |
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); |