]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/pages/main/RegisterPageTest.java
[UPDATE-CONFIG] Use 3 hosts www, secure and static.
[gigi.git] / tests / org / cacert / gigi / pages / main / RegisterPageTest.java
index fa2e080df53474b5b7cd6d7305e4137bb0608af9..af56fdf3479a1311a3218fcb941b59ae0bdea982 100644 (file)
@@ -6,7 +6,7 @@ import java.io.IOException;
 import java.net.HttpURLConnection;
 import java.util.regex.Pattern;
 
-import org.cacert.gigi.InitTruststore;
+import org.cacert.gigi.testUtils.InitTruststore;
 import org.cacert.gigi.testUtils.ManagedTest;
 import org.cacert.gigi.testUtils.TestEmailReciever.TestMail;
 import org.junit.Before;
@@ -27,7 +27,7 @@ public class RegisterPageTest extends ManagedTest {
                registerUser("ab", "b", "correct" + uniq + "@email.de", "ap12UI.'");
                TestMail tm = waitForMail();
                String link = tm.extractLink();
-               assertTrue(link, link.startsWith("http://"));
+               assertTrue(link, link.startsWith("https://"));
        }
        @Test
        public void testNoFname() throws IOException {
@@ -149,7 +149,7 @@ public class RegisterPageTest extends ManagedTest {
                }
        }
        private void testFailedForm(String query) throws IOException {
-               String startError = fetchStartErrorMessage(query);
+               String startError = fetchStartErrorMessage(runRegister(query));
                assertTrue(startError, !startError.startsWith("</div>"));
        }