]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/LoginTest.java
[EMPTY] Formatting with configured formatter.
[gigi.git] / tests / org / cacert / gigi / LoginTest.java
index 729a5988e8053f4f4cf4e3b26828acec9b801a63..f4bfe85fb5e71fa622d83cd46806dc30370c998c 100644 (file)
@@ -12,6 +12,7 @@ import org.junit.Test;
 
 public class LoginTest extends ManagedTest {
        public static final String secureReference = "/account/certs/email";
+
        @Test
        public void testLoginUnverified() throws IOException {
                long uniq = System.currentTimeMillis();
@@ -21,6 +22,7 @@ public class LoginTest extends ManagedTest {
                waitForMail();
                assertFalse(isLoggedin(login(email, pw)));
        }
+
        @Test
        public void testLoginVerified() throws IOException {
                long uniq = System.currentTimeMillis();
@@ -29,6 +31,7 @@ public class LoginTest extends ManagedTest {
                createVerifiedUser("an", "bn", email, pw);
                assertTrue(isLoggedin(login(email, pw)));
        }
+
        public boolean isLoggedin(String cookie) throws IOException {
                URL u = new URL("https://" + getServerName() + secureReference);
                HttpURLConnection huc = (HttpURLConnection) u.openConnection();