From 34f5ac99c81dfe39f986e8133fb7fff22c0d30bc Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 10 Dec 2012 14:27:04 +0100 Subject: o Adding Maven module as a build type. --- .../esper/testing/jenkins/JenkinsServerActorTest.java | 17 +++++++++++++++++ .../esper/testing/jenkins/JenkinsServerTest.java | 17 ----------------- 2 files changed, 17 insertions(+), 17 deletions(-) create mode 100755 src/test/java/io/trygvis/esper/testing/jenkins/JenkinsServerActorTest.java delete mode 100644 src/test/java/io/trygvis/esper/testing/jenkins/JenkinsServerTest.java (limited to 'src/test') diff --git a/src/test/java/io/trygvis/esper/testing/jenkins/JenkinsServerActorTest.java b/src/test/java/io/trygvis/esper/testing/jenkins/JenkinsServerActorTest.java new file mode 100755 index 0000000..9a673e9 --- /dev/null +++ b/src/test/java/io/trygvis/esper/testing/jenkins/JenkinsServerActorTest.java @@ -0,0 +1,17 @@ +package io.trygvis.esper.testing.jenkins; + +import junit.framework.*; + +import static io.trygvis.esper.testing.jenkins.JenkinsServerActor.*; + +public class JenkinsServerActorTest extends TestCase { + public void testUrlGeneration() { +// assertEquals("https://jenkins.puppetlabs.com/job/Hiera%20%28master%29/74/api/xml", createJobUrl("https://jenkins.puppetlabs.com/job/Hiera%20%28master%29/facter=1.6.x,puppet=2.7.x,ruby=ruby-1.8.7,rvm=%23rvm/74/api/xml").toASCIIString()); + + assertEquals("https://builds.apache.org/job/james-server-trunk/org.apache.james$james-server-dnsservice-library/", createJobUrl("https://builds.apache.org/job/james-server-trunk/org.apache.james$james-server-dnsservice-library/3417/").toASCIIString()); + + assertEquals("http://ci.jruby.org/job/rails-master/component=activeresource,label=master/", createJobUrl("http://ci.jruby.org/job/rails-master/component=activeresource,label=master/3577/").toASCIIString()); + + assertEquals("http://ci.jruby.org/job/rails-master/", createJobUrl("http://ci.jruby.org/job/rails-master/3577/").toASCIIString()); + } +} diff --git a/src/test/java/io/trygvis/esper/testing/jenkins/JenkinsServerTest.java b/src/test/java/io/trygvis/esper/testing/jenkins/JenkinsServerTest.java deleted file mode 100644 index d0630b8..0000000 --- a/src/test/java/io/trygvis/esper/testing/jenkins/JenkinsServerTest.java +++ /dev/null @@ -1,17 +0,0 @@ -package io.trygvis.esper.testing.jenkins; - -import junit.framework.*; - -import static io.trygvis.esper.testing.jenkins.JenkinsServer.*; - -public class JenkinsServerTest extends TestCase { - public void testUrlGeneration() { -// assertEquals("https://jenkins.puppetlabs.com/job/Hiera%20%28master%29/74/api/xml", createJobUrl("https://jenkins.puppetlabs.com/job/Hiera%20%28master%29/facter=1.6.x,puppet=2.7.x,ruby=ruby-1.8.7,rvm=%23rvm/74/api/xml").toASCIIString()); - - assertEquals("https://builds.apache.org/job/james-server-trunk/", createJobUrl("https://builds.apache.org/job/james-server-trunk/org.apache.james$james-server-dnsservice-library/3417/").toASCIIString()); - - assertEquals("http://ci.jruby.org/job/rails-master/", createJobUrl("http://ci.jruby.org/job/rails-master/component=activeresource,label=master/3577/").toASCIIString()); - - assertEquals("http://ci.jruby.org/job/rails-master/", createJobUrl("http://ci.jruby.org/job/rails-master/3577/").toASCIIString()); - } -} -- cgit v1.2.3