]> WPIA git - gigi.git/commitdiff
externalized post in testcase for automatic testing
authorJanis Streib <janis@dogcraft.de>
Tue, 24 Jun 2014 18:27:17 +0000 (20:27 +0200)
committerJanis Streib <janis@dogcraft.de>
Tue, 24 Jun 2014 18:29:04 +0000 (20:29 +0200)
tests/org/cacert/gigi/pages/main/RegisterPageTest.java

index 97e6f8182fdb7e1cd6287c2d4ae5231b7d962446..633fddc60f5273b68f91601b7f8c6d4b3f73ddc0 100644 (file)
@@ -1,6 +1,7 @@
 package org.cacert.gigi.pages.main;
 
-import static org.junit.Assert.*;
+import static org.junit.Assert.assertNotEquals;
+import static org.junit.Assert.assertTrue;
 
 import java.io.IOException;
 import java.io.UnsupportedEncodingException;
@@ -17,10 +18,11 @@ import org.junit.Test;
 
 public class RegisterPageTest {
        private static final URL registerService;
+       private static final int PORT = 4431;
        static {
                URL u = null;
                try {
-                       u = new URL("https://localhost/register");
+                       u = new URL("https://localhost:" + PORT + "/register");
                } catch (MalformedURLException e) {
                        e.printStackTrace();
                }