From 45eee3fa547c02b3c832aae828caff60046c99a0 Mon Sep 17 00:00:00 2001 From: amontenegro Date: Tue, 5 Dec 2023 15:24:00 -0600 Subject: [PATCH] Fix unit test --- orcid-core/src/main/resources/i18n/email_subject_en.properties | 2 +- .../java/org/orcid/frontend/email/RecordEmailSenderTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/orcid-core/src/main/resources/i18n/email_subject_en.properties b/orcid-core/src/main/resources/i18n/email_subject_en.properties index b82cd13a80d..33485aa2b81 100644 --- a/orcid-core/src/main/resources/i18n/email_subject_en.properties +++ b/orcid-core/src/main/resources/i18n/email_subject_en.properties @@ -17,6 +17,6 @@ email.subject.admin_as_delegate=[ORCID] Trusting {0} with your ORCID Record email.subject.locked=[ORCID] Your account has been locked email.subject.auto_deprecate=[ORCID] An account has been deprecated email.subject.reactivation=[ORCID] Reactivating your ORCID record -email.subject.register.welcome=[ORCID] Welcome to ORCID - verify your email address +email.subject.register.welcome=[ORCID] Welcome to ORCID - verify your email address email.subject.delegate.recipient=[ORCID] You've made an Account Delegate! email.subject.add_works=[ORCID] Add Research Outputs to your ORCID record diff --git a/orcid-web/src/test/java/org/orcid/frontend/email/RecordEmailSenderTest.java b/orcid-web/src/test/java/org/orcid/frontend/email/RecordEmailSenderTest.java index a8fccba27aa..68f1396f151 100644 --- a/orcid-web/src/test/java/org/orcid/frontend/email/RecordEmailSenderTest.java +++ b/orcid-web/src/test/java/org/orcid/frontend/email/RecordEmailSenderTest.java @@ -121,7 +121,7 @@ public void testSendWelcomeEmail() throws JAXBException, IOException, URISyntaxE recordEmailSender.sendWelcomeEmail("4444-4444-4444-4446", "josiah_carberry@brown.edu"); - verify(mockMailGunManager, times(1)).sendEmail(eq(EmailConstants.DO_NOT_REPLY_VERIFY_ORCID_ORG), eq("josiah_carberry@brown.edu"), eq("[ORCID] Welcome to ORCID"), anyString(), anyString()); + verify(mockMailGunManager, times(1)).sendEmail(eq(EmailConstants.DO_NOT_REPLY_VERIFY_ORCID_ORG), eq("josiah_carberry@brown.edu"), eq("[ORCID] Welcome to ORCID - verify your email address"), anyString(), anyString()); } @Test