X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=tests%2Fclub%2Fwpia%2Fgigi%2Fpages%2Faccount%2FTestCertificateRequest.java;h=03c9a8d136c666bf507a98457b67c7ea801bbfd2;hp=da580ccf48cae58a5d4aac3db449dc5cb553266b;hb=987c8d53f0740bae8e17e4703cce55bb7a150586;hpb=f8fd4a425309492e60c53133dc899ae3aa92914a diff --git a/tests/club/wpia/gigi/pages/account/TestCertificateRequest.java b/tests/club/wpia/gigi/pages/account/TestCertificateRequest.java index da580ccf..03c9a8d1 100644 --- a/tests/club/wpia/gigi/pages/account/TestCertificateRequest.java +++ b/tests/club/wpia/gigi/pages/account/TestCertificateRequest.java @@ -95,8 +95,8 @@ public class TestCertificateRequest extends ClientTest { public void testPingPeriodOneAddress() throws IOException, GeneralSecurityException, GigiApiException { // get new email address with last ping in past String furtherEmail = createUniqueName() + "@example.org"; - EmailAddress ea = new EmailAddress(u, furtherEmail, Locale.ENGLISH); - TestMail mail = getMailReceiver().receive(furtherEmail); + new EmailAddress(u, furtherEmail, Locale.ENGLISH); + getMailReceiver().receive(furtherEmail); try (GigiPreparedStatement stmt = new GigiPreparedStatement("UPDATE `emailPinglog` SET `status`='success'::`pingState`, `when` = (now() - interval '1 months' * ?::INTEGER) WHERE `email`=? ")) { stmt.setInt(1, TimeConditions.getInstance().getEmailPingMonths()); stmt.setString(2, furtherEmail); @@ -118,8 +118,8 @@ public class TestCertificateRequest extends ClientTest { public void testPingPeriodTwoAddresses() throws IOException, GeneralSecurityException, GigiApiException { // get new email address with last ping in past String furtherEmail = createUniqueName() + "@example.org"; - EmailAddress ea = new EmailAddress(u, furtherEmail, Locale.ENGLISH); - TestMail mail = getMailReceiver().receive(furtherEmail); + new EmailAddress(u, furtherEmail, Locale.ENGLISH); + getMailReceiver().receive(furtherEmail); try (GigiPreparedStatement stmt = new GigiPreparedStatement("UPDATE `emailPinglog` SET `status`='success'::`pingState`, `when` = (now() - interval '1 months' * ?::INTEGER) WHERE `email`=? ")) { stmt.setInt(1, TimeConditions.getInstance().getEmailPingMonths()); stmt.setString(2, furtherEmail);