aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-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());
+ }
+}