aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-12-08 13:39:28 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2012-12-08 13:39:28 +0100
commit953ddf830be3ec5188762c2471d007478e6573a1 (patch)
treea6a90410f43f67891901ed2be2a300f64a069c07 /src/test/java
parent58e2f4c4ef4655c88270b2c3a6b53ef642f82c57 (diff)
downloadesper-testing-953ddf830be3ec5188762c2471d007478e6573a1.tar.gz
esper-testing-953ddf830be3ec5188762c2471d007478e6573a1.tar.bz2
esper-testing-953ddf830be3ec5188762c2471d007478e6573a1.tar.xz
esper-testing-953ddf830be3ec5188762c2471d007478e6573a1.zip
o Discovering and storing jobs in addition to the build.
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/io/trygvis/esper/testing/jenkins/JenkinsServerTest.java13
1 files changed, 13 insertions, 0 deletions
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());
+ }
+}