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;
assertTrue(isLoggedin(login(email, TEST_PASSWORD)));
}
+ @Test
+ public void testLoginWrongPassword() throws IOException {
+ String email = createUniqueName() + "@testmail.org";
+ createVerifiedUser("an", "bn", email, TEST_PASSWORD);
+ assertFalse(isLoggedin(login(email, TEST_PASSWORD + "b")));
+ }
+
@Test
public void testLogoutVerified() throws IOException {
String email = createUniqueName() + "@testmail.org";