1 package org.cacert.gigi;
3 import java.io.IOException;
4 import static org.junit.Assert.*;
5 import org.cacert.gigi.testUtils.ManagedTest;
8 public class LoginTest extends ManagedTest {
11 public void testLoginUnverified() throws IOException {
12 long uniq = System.currentTimeMillis();
13 String email = "system" + uniq + "@testmail.org";
15 registerUser("an", "bn", email, pw);
17 assertFalse(isLoggedin(login(email, pw)));
21 public void testLoginVerified() throws IOException {
22 long uniq = System.currentTimeMillis();
23 String email = "system2" + uniq + "@testmail.org";
25 createVerifiedUser("an", "bn", email, pw);
26 assertTrue(isLoggedin(login(email, pw)));