From 953ddf830be3ec5188762c2471d007478e6573a1 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sat, 8 Dec 2012 13:39:28 +0100 Subject: o Discovering and storing jobs in addition to the build. --- .../io/trygvis/esper/testing/jenkins/JenkinsServerTest.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) create 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/JenkinsServerTest.java b/src/test/java/io/trygvis/esper/testing/jenkins/JenkinsServerTest.java new file mode 100644 index 0000000..8b6f191 --- /dev/null +++ b/src/test/java/io/trygvis/esper/testing/jenkins/JenkinsServerTest.java @@ -0,0 +1,13 @@ +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("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