From eaa0a2a0828037227312970668eba7bf951b4049 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 23 Dec 2012 00:21:57 +0100 Subject: o Storing the raw bytes with the parsed data from Jenkins. --- .../esper/testing/jenkins/CreateMissingMavenModuleJobsApp.java | 5 +++-- src/test/java/io/trygvis/esper/testing/jenkins/SetJobTypeApp.java | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src/test') 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 xmlOption = client.fetchJob(apiXml(url)); + Option> 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 xmlOption = jenkinsClient.fetchJob(apiXml(jobDto.url)); + Option> 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); -- cgit v1.2.3