From: Janis Streib Date: Tue, 24 Jun 2014 18:27:17 +0000 (+0200) Subject: externalized post in testcase for automatic testing X-Git-Url: https://code.wpia.club/?p=gigi.git;a=commitdiff_plain;h=fce61639db178655075307dfe11d6408465a5ffa externalized post in testcase for automatic testing --- diff --git a/tests/org/cacert/gigi/pages/main/RegisterPageTest.java b/tests/org/cacert/gigi/pages/main/RegisterPageTest.java index 97e6f818..633fddc6 100644 --- a/tests/org/cacert/gigi/pages/main/RegisterPageTest.java +++ b/tests/org/cacert/gigi/pages/main/RegisterPageTest.java @@ -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(); }