- public static EmailAddress createVerifiedEmail(User u) throws InterruptedException, GigiApiException {
- EmailAddress adrr = new EmailAddress(u, createUniqueName() + "test@test.tld", Locale.ENGLISH);
- TestMail testMail = getMailReciever().receive();
- assertEquals(adrr.getAddress(), testMail.getTo());
+ public EmailAddress createVerifiedEmail(User u) throws InterruptedException, GigiApiException {
+ return createVerifiedEmail(u, createUniqueName() + "test@test.tld");
+ }
+
+ public EmailAddress createVerifiedEmail(User u, String email) throws InterruptedException, GigiApiException {
+ EmailAddress addr = new EmailAddress(u, email, Locale.ENGLISH);
+ TestMail testMail = getMailReceiver().receive();
+ assertEquals(addr.getAddress(), testMail.getTo());