X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;ds=sidebyside;f=tests%2Forg%2Fcacert%2Fgigi%2FLoginTest.java;h=940664fa79052cf1ea60d055b0d8dfef196cf0f7;hb=923f09449b5bf1d4684216910988812ab7a7a163;hp=e8353accdc2d724052c857ec4ae2385fb050d202;hpb=af1651c1ebb7fe2633181653a2b66a11ca6926fd;p=gigi.git diff --git a/tests/org/cacert/gigi/LoginTest.java b/tests/org/cacert/gigi/LoginTest.java index e8353acc..940664fa 100644 --- a/tests/org/cacert/gigi/LoginTest.java +++ b/tests/org/cacert/gigi/LoginTest.java @@ -7,21 +7,21 @@ import org.junit.Test; public class LoginTest extends ManagedTest { - @Test - public void testLoginUnverified() throws IOException { - long uniq = System.currentTimeMillis(); - String email = "system" + uniq + "@testmail.org"; - registerUser("an", "bn", email, TEST_PASSWORD); - waitForMail(); - assertFalse(isLoggedin(login(email, TEST_PASSWORD))); - } + @Test + public void testLoginUnverified() throws IOException { + long uniq = System.currentTimeMillis(); + String email = "system" + uniq + "@testmail.org"; + registerUser("an", "bn", email, TEST_PASSWORD); + waitForMail(); + assertFalse(isLoggedin(login(email, TEST_PASSWORD))); + } - @Test - public void testLoginVerified() throws IOException { - long uniq = System.currentTimeMillis(); - String email = "system2" + uniq + "@testmail.org"; - createVerifiedUser("an", "bn", email, TEST_PASSWORD); - assertTrue(isLoggedin(login(email, TEST_PASSWORD))); - } + @Test + public void testLoginVerified() throws IOException { + long uniq = System.currentTimeMillis(); + String email = "system2" + uniq + "@testmail.org"; + createVerifiedUser("an", "bn", email, TEST_PASSWORD); + assertTrue(isLoggedin(login(email, TEST_PASSWORD))); + } }