X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=tests%2Forg%2Fcacert%2Fgigi%2FLoginTest.java;h=940664fa79052cf1ea60d055b0d8dfef196cf0f7;hb=480cb29387c76ccc19f8fa8fb0abe8ae1b069730;hp=8a71090f601aeb7c768294980263b0e55a471d51;hpb=d937840c661248a848580e307b618950bbf34ef8;p=gigi.git diff --git a/tests/org/cacert/gigi/LoginTest.java b/tests/org/cacert/gigi/LoginTest.java index 8a71090f..940664fa 100644 --- a/tests/org/cacert/gigi/LoginTest.java +++ b/tests/org/cacert/gigi/LoginTest.java @@ -7,23 +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"; - String pw = "1'aAaA"; - registerUser("an", "bn", email, pw); - waitForMail(); - assertFalse(isLoggedin(login(email, pw))); - } + @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"; - String pw = "1'aAaA"; - createVerifiedUser("an", "bn", email, pw); - assertTrue(isLoggedin(login(email, pw))); - } + @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))); + } }