mirror of
https://github.com/google/nomulus.git
synced 2025-06-24 21:40:57 +02:00
Reformat a file (#1305)
* Reformat a file Constants should be SNAKE_CASE named and static fields usually go before instance fields.
This commit is contained in:
parent
85b247acca
commit
0a33ebc0fe
1 changed files with 17 additions and 15 deletions
|
@ -55,18 +55,7 @@ import org.junit.jupiter.api.extension.RegisterExtension;
|
||||||
@DualDatabaseTest
|
@DualDatabaseTest
|
||||||
class SendExpiringCertificateNotificationEmailActionTest {
|
class SendExpiringCertificateNotificationEmailActionTest {
|
||||||
|
|
||||||
@RegisterExtension
|
private static final String EXPIRATION_WARNING_EMAIL_BODY_TEXT =
|
||||||
public final AppEngineExtension appEngine =
|
|
||||||
AppEngineExtension.builder().withDatastoreAndCloudSql().withTaskQueue().build();
|
|
||||||
|
|
||||||
@RegisterExtension public final InjectExtension inject = new InjectExtension();
|
|
||||||
private final FakeClock clock = new FakeClock(DateTime.parse("2021-05-24T20:21:22Z"));
|
|
||||||
private final SendEmailService sendEmailService = mock(SendEmailService.class);
|
|
||||||
private CertificateChecker certificateChecker;
|
|
||||||
private SendExpiringCertificateNotificationEmailAction action;
|
|
||||||
private Registrar sampleRegistrar;
|
|
||||||
private Response response;
|
|
||||||
private static final String expirationWarningEmailBodyText =
|
|
||||||
" Dear %1$s,\n"
|
" Dear %1$s,\n"
|
||||||
+ "\n"
|
+ "\n"
|
||||||
+ " We would like to inform you that your %2$s SSL certificate will expire at\n"
|
+ " We would like to inform you that your %2$s SSL certificate will expire at\n"
|
||||||
|
@ -109,9 +98,22 @@ class SendExpiringCertificateNotificationEmailActionTest {
|
||||||
+ "\n"
|
+ "\n"
|
||||||
+ " Regards,\n"
|
+ " Regards,\n"
|
||||||
+ " Google Registry\n";
|
+ " Google Registry\n";
|
||||||
private static final String expirationWarningEmailSubjectText =
|
|
||||||
|
private static final String EXPIRATION_WARNING_EMAIL_SUBJECT_TEXT =
|
||||||
"[Important] Expiring SSL certificate for Google " + "Registry EPP connection";
|
"[Important] Expiring SSL certificate for Google " + "Registry EPP connection";
|
||||||
|
|
||||||
|
@RegisterExtension
|
||||||
|
public final AppEngineExtension appEngine =
|
||||||
|
AppEngineExtension.builder().withDatastoreAndCloudSql().withTaskQueue().build();
|
||||||
|
|
||||||
|
@RegisterExtension public final InjectExtension inject = new InjectExtension();
|
||||||
|
private final FakeClock clock = new FakeClock(DateTime.parse("2021-05-24T20:21:22Z"));
|
||||||
|
private final SendEmailService sendEmailService = mock(SendEmailService.class);
|
||||||
|
private CertificateChecker certificateChecker;
|
||||||
|
private SendExpiringCertificateNotificationEmailAction action;
|
||||||
|
private Registrar sampleRegistrar;
|
||||||
|
private Response response;
|
||||||
|
|
||||||
@BeforeEach
|
@BeforeEach
|
||||||
void beforeEach() throws Exception {
|
void beforeEach() throws Exception {
|
||||||
certificateChecker =
|
certificateChecker =
|
||||||
|
@ -125,8 +127,8 @@ class SendExpiringCertificateNotificationEmailActionTest {
|
||||||
|
|
||||||
action =
|
action =
|
||||||
new SendExpiringCertificateNotificationEmailAction(
|
new SendExpiringCertificateNotificationEmailAction(
|
||||||
expirationWarningEmailBodyText,
|
EXPIRATION_WARNING_EMAIL_BODY_TEXT,
|
||||||
expirationWarningEmailSubjectText,
|
EXPIRATION_WARNING_EMAIL_SUBJECT_TEXT,
|
||||||
new InternetAddress("test@example.com"),
|
new InternetAddress("test@example.com"),
|
||||||
sendEmailService,
|
sendEmailService,
|
||||||
certificateChecker,
|
certificateChecker,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue