import org.cacert.gigi.testUtils.InitTruststore;
import org.cacert.gigi.testUtils.ManagedTest;
-import org.cacert.gigi.testUtils.TestEmailReciever.TestMail;
-import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
data = fetchStartErrorMessage(runRegister(query));
assertNotNull(data);
- assertNull(getMailReciever().recieve());
+ assertNull(getMailReciever().poll());
}
private void assertSuccessfullRegMail() {
- TestMail tm = waitForMail();
- Assert.assertNotNull(tm);
- String link = tm.extractLink();
+ String link = getMailReciever().receive().extractLink();
assertTrue(link, link.startsWith("https://"));
}
public void testInvDay() throws IOException {
testFailedForm("fname=a&lname=b&email=e&pword1=ap&pword2=ap&day=40&month=1&year=1910&cca_agree=1");
testFailedForm("fname=a&lname=b&email=e&pword1=ap&pword2=ap&day=0&month=1&year=1910&cca_agree=1");
+ testFailedForm("fname=a&lname=b&email=e&pword1=ap&pword2=ap&day=-1&month=1&year=1910&cca_agree=1");
testFailedForm("fname=a&lname=b&email=e&pword1=ap&pword2=ap&day=a&month=1&year=1910&cca_agree=1");
}