From 5cea87b0df535b149f1abff48aefdf0d292a3bdd Mon Sep 17 00:00:00 2001 From: Yazan Amer Date: Sat, 7 Oct 2023 13:05:20 +0300 Subject: [PATCH] feat: test extension --- .../java/org/otherband/email/smtp/SMTPEmailServiceTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/otherband/email/smtp/SMTPEmailServiceTest.java b/src/test/java/org/otherband/email/smtp/SMTPEmailServiceTest.java index 4d2a993..b9ddab8 100644 --- a/src/test/java/org/otherband/email/smtp/SMTPEmailServiceTest.java +++ b/src/test/java/org/otherband/email/smtp/SMTPEmailServiceTest.java @@ -13,7 +13,7 @@ class SMTPEmailServiceTest { private static final String EXPECTED_ID = "LETTER_ID"; - public static final String EXPECTED_EMAIL = "email@email.com"; + public static final String EXPECTED_RECEIVER_EMAIL = "email@email.com"; public static final String TOKEN_ID = "TOKEN_ID"; public static final String SECRET = "SECRET"; private SMTPEmailService service; @@ -33,7 +33,7 @@ void testSendVerificationEmail() { ArgumentCaptor argumentCaptor = ArgumentCaptor.forClass(SimpleMailMessage.class); verify(mailSender).send(argumentCaptor.capture()); SimpleMailMessage sentMessage = argumentCaptor.getValue(); - assertArrayEquals(new String[]{EXPECTED_EMAIL}, sentMessage.getTo()); + assertArrayEquals(new String[]{EXPECTED_RECEIVER_EMAIL}, sentMessage.getTo()); assertEquals("Recommendation letter verification link", sentMessage.getSubject()); assertTrue(sentMessage.getText().contains("/api/v1/recommendation-letter/verify/LETTER_ID/TOKEN_ID/SECRET")); } @@ -43,7 +43,7 @@ private static VerificationLinkEmailRequest buildRequest() { request.setLetterId(EXPECTED_ID); request.setTokenId(TOKEN_ID); request.setSecretToken(SECRET); - request.setReceiverEmail(EXPECTED_EMAIL); + request.setReceiverEmail(EXPECTED_RECEIVER_EMAIL); return request; } } \ No newline at end of file