package org.cacert.gigi;
+import static org.junit.Assert.*;
+
import java.io.IOException;
import java.net.URL;
-import static org.junit.Assert.*;
-
import org.cacert.gigi.testUtils.ManagedTest;
import org.junit.Test;
public void testLoginUnverified() throws IOException {
String email = createUniqueName() + "@testmail.org";
registerUser("an", "bn", email, TEST_PASSWORD);
- waitForMail();
+ getMailReciever().receive();
assertFalse(isLoggedin(login(email, TEST_PASSWORD)));
}