diff --git a/src/main/java/uk/gov/hmcts/reform/civil/handler/callback/camunda/notification/DJRespondentReceivedNotificationHandler.java b/src/main/java/uk/gov/hmcts/reform/civil/handler/callback/camunda/notification/DJRespondentReceivedNotificationHandler.java index 4d93d7fb636..0d46165bd92 100644 --- a/src/main/java/uk/gov/hmcts/reform/civil/handler/callback/camunda/notification/DJRespondentReceivedNotificationHandler.java +++ b/src/main/java/uk/gov/hmcts/reform/civil/handler/callback/camunda/notification/DJRespondentReceivedNotificationHandler.java @@ -202,7 +202,7 @@ PARTY_REFERENCES, buildPartiesReferencesEmailSubject(caseData) public Map addProperties1v1LRvLip(CaseData caseData) { return Map.of( - CLAIM_NUMBER_INTERIM, caseData.getCcdCaseReference().toString(), + CLAIM_NUMBER, caseData.getCcdCaseReference().toString(), DEFENDANT_NAME_INTERIM, getPartyNameBasedOnType(caseData.getRespondent1()), APPLICANT_ONE_NAME, getPartyNameBasedOnType(caseData.getApplicant1()), PARTY_REFERENCES, buildPartiesReferencesEmailSubject(caseData) diff --git a/src/main/java/uk/gov/hmcts/reform/civil/handler/callback/camunda/notification/NotificationDefendantOfHearingHandler.java b/src/main/java/uk/gov/hmcts/reform/civil/handler/callback/camunda/notification/NotificationDefendantOfHearingHandler.java index c3925f688be..b13299fce77 100644 --- a/src/main/java/uk/gov/hmcts/reform/civil/handler/callback/camunda/notification/NotificationDefendantOfHearingHandler.java +++ b/src/main/java/uk/gov/hmcts/reform/civil/handler/callback/camunda/notification/NotificationDefendantOfHearingHandler.java @@ -125,7 +125,7 @@ public Map addPropertiesHearing(final CaseData caseData, boolean hearingTime = NotificationUtils.getFormattedHearingTime(hearingStartDateTime.toLocalTime().toString()); } return new HashMap<>(Map.of(CLAIM_REFERENCE_NUMBER, caseData.getCcdCaseReference().toString(), HEARING_DATE, hearingDate, HEARING_TIME, hearingTime, - PARTY_REFERENCES, buildPartiesReferencesEmailSubject(caseData))); + CLAIM_LEGAL_ORG_NAME_SPEC, orgName, PARTY_REFERENCES, buildPartiesReferencesEmailSubject(caseData))); } public Map addPropertiesHmc(final CaseData caseData, boolean isDefendant1) { diff --git a/src/test/java/uk/gov/hmcts/reform/civil/handler/callback/camunda/notification/BundleCreatedNotificationHandlerTest.java b/src/test/java/uk/gov/hmcts/reform/civil/handler/callback/camunda/notification/BundleCreatedNotificationHandlerTest.java index 99e0e21752e..47af6da4502 100644 --- a/src/test/java/uk/gov/hmcts/reform/civil/handler/callback/camunda/notification/BundleCreatedNotificationHandlerTest.java +++ b/src/test/java/uk/gov/hmcts/reform/civil/handler/callback/camunda/notification/BundleCreatedNotificationHandlerTest.java @@ -45,6 +45,7 @@ import static uk.gov.hmcts.reform.civil.handler.callback.camunda.notification.NotificationData.CLAIM_REFERENCE_NUMBER; import static uk.gov.hmcts.reform.civil.handler.callback.camunda.notification.NotificationData.PARTY_NAME; import static uk.gov.hmcts.reform.civil.handler.callback.camunda.notification.NotificationData.PARTY_REFERENCES; +import static uk.gov.hmcts.reform.civil.utils.NotificationUtils.buildPartiesReferencesEmailSubject; @ExtendWith(MockitoExtension.class) class BundleCreatedNotificationHandlerTest extends BaseCallbackHandlerTest { diff --git a/src/test/java/uk/gov/hmcts/reform/civil/handler/callback/camunda/notification/DJRespondentReceivedNotificationHandlerTest.java b/src/test/java/uk/gov/hmcts/reform/civil/handler/callback/camunda/notification/DJRespondentReceivedNotificationHandlerTest.java index ea09d8467d5..e6d70025327 100644 --- a/src/test/java/uk/gov/hmcts/reform/civil/handler/callback/camunda/notification/DJRespondentReceivedNotificationHandlerTest.java +++ b/src/test/java/uk/gov/hmcts/reform/civil/handler/callback/camunda/notification/DJRespondentReceivedNotificationHandlerTest.java @@ -37,7 +37,7 @@ import static uk.gov.hmcts.reform.civil.handler.callback.camunda.notification.DJRespondentReceivedNotificationHandler.TASK_ID; import static uk.gov.hmcts.reform.civil.handler.callback.camunda.notification.NotificationData.APPLICANT_ONE_NAME; import static uk.gov.hmcts.reform.civil.handler.callback.camunda.notification.NotificationData.CLAIMANT_EMAIL; -import static uk.gov.hmcts.reform.civil.handler.callback.camunda.notification.NotificationData.CLAIM_REFERENCE_NUMBER; +import static uk.gov.hmcts.reform.civil.handler.callback.camunda.notification.NotificationData.CLAIM_NUMBER; import static uk.gov.hmcts.reform.civil.handler.callback.camunda.notification.NotificationData.DEFENDANT_EMAIL; import static uk.gov.hmcts.reform.civil.handler.callback.camunda.notification.NotificationData.DEFENDANT_NAME; import static uk.gov.hmcts.reform.civil.handler.callback.camunda.notification.NotificationData.DEFENDANT_NAME_INTERIM; @@ -194,7 +194,7 @@ void shouldGenerateEmail_whenInvokedAnd1v1AndLRvLiP() { @NotNull private Map getNotificationDataMapLRvLip(CaseData caseData) { return Map.of( - CLAIM_REFERENCE_NUMBER, caseData.getCcdCaseReference().toString(), + CLAIM_NUMBER, caseData.getCcdCaseReference().toString(), DEFENDANT_NAME_INTERIM, "Company ltd", APPLICANT_ONE_NAME, "Mr. John Rambo", PARTY_REFERENCES, buildPartiesReferencesEmailSubject(caseData) @@ -205,7 +205,7 @@ PARTY_REFERENCES, buildPartiesReferencesEmailSubject(caseData) private Map getNotificationDataMap1v1(CaseData caseData) { return Map.of( DEFENDANT_EMAIL, "Test Org Name", - CLAIM_REFERENCE_NUMBER, caseData.getCcdCaseReference().toString(), + CLAIM_NUMBER, caseData.getCcdCaseReference().toString(), DEFENDANT_NAME, getPartyNameBasedOnType(caseData.getRespondent1()), PARTY_REFERENCES, buildPartiesReferencesEmailSubject(caseData) ); @@ -214,7 +214,7 @@ PARTY_REFERENCES, buildPartiesReferencesEmailSubject(caseData) private Map getNotificationDataMap1v2(CaseData caseData) { return Map.of( DEFENDANT_EMAIL, "Test Org Name", - CLAIM_REFERENCE_NUMBER, caseData.getCcdCaseReference().toString(), + CLAIM_NUMBER, caseData.getCcdCaseReference().toString(), DEFENDANT_NAME, getPartyNameBasedOnType(caseData.getRespondent1()), CLAIMANT_EMAIL, "Test Org Name", PARTY_REFERENCES, buildPartiesReferencesEmailSubject(caseData) @@ -225,7 +225,7 @@ PARTY_REFERENCES, buildPartiesReferencesEmailSubject(caseData) private Map getNotificationDataMap1v2fail(CaseData caseData) { return Map.of( DEFENDANT_EMAIL, "Test Org Name", - CLAIM_REFERENCE_NUMBER, caseData.getCcdCaseReference().toString(), + CLAIM_NUMBER, caseData.getCcdCaseReference().toString(), DEFENDANT_NAME, "steve", CLAIMANT_EMAIL, "Test Org Name", PARTY_REFERENCES, buildPartiesReferencesEmailSubject(caseData) diff --git a/src/test/java/uk/gov/hmcts/reform/civil/handler/callback/camunda/notification/GenerateOrderNotificationHandlerTest.java b/src/test/java/uk/gov/hmcts/reform/civil/handler/callback/camunda/notification/GenerateOrderNotificationHandlerTest.java index 931cf11fd4d..f2d181dbe84 100644 --- a/src/test/java/uk/gov/hmcts/reform/civil/handler/callback/camunda/notification/GenerateOrderNotificationHandlerTest.java +++ b/src/test/java/uk/gov/hmcts/reform/civil/handler/callback/camunda/notification/GenerateOrderNotificationHandlerTest.java @@ -39,6 +39,7 @@ import static uk.gov.hmcts.reform.civil.handler.callback.camunda.notification.NotificationData.CLAIM_REFERENCE_NUMBER; import static uk.gov.hmcts.reform.civil.handler.callback.camunda.notification.NotificationData.PARTY_NAME; import static uk.gov.hmcts.reform.civil.handler.callback.camunda.notification.NotificationData.PARTY_REFERENCES; +import static uk.gov.hmcts.reform.civil.utils.NotificationUtils.buildPartiesReferencesEmailSubject; import static uk.gov.hmcts.reform.civil.utils.PartyUtils.getAllPartyNames; @ExtendWith(MockitoExtension.class) diff --git a/src/test/java/uk/gov/hmcts/reform/civil/handler/callback/camunda/notification/HearingFeeUnpaidRespondentNotificationHandlerTest.java b/src/test/java/uk/gov/hmcts/reform/civil/handler/callback/camunda/notification/HearingFeeUnpaidRespondentNotificationHandlerTest.java index 0b7d824b55e..14350bd7488 100644 --- a/src/test/java/uk/gov/hmcts/reform/civil/handler/callback/camunda/notification/HearingFeeUnpaidRespondentNotificationHandlerTest.java +++ b/src/test/java/uk/gov/hmcts/reform/civil/handler/callback/camunda/notification/HearingFeeUnpaidRespondentNotificationHandlerTest.java @@ -37,6 +37,7 @@ import static uk.gov.hmcts.reform.civil.helpers.DateFormatHelper.DATE; import static uk.gov.hmcts.reform.civil.helpers.DateFormatHelper.formatLocalDate; import static uk.gov.hmcts.reform.civil.sampledata.CaseDataBuilder.CASE_ID; +import static uk.gov.hmcts.reform.civil.utils.NotificationUtils.buildPartiesReferencesEmailSubject; @ExtendWith(MockitoExtension.class) class HearingFeeUnpaidRespondentNotificationHandlerTest { diff --git a/src/test/java/uk/gov/hmcts/reform/civil/handler/callback/camunda/notification/NotificationDefendantOfHearingHandlerTest.java b/src/test/java/uk/gov/hmcts/reform/civil/handler/callback/camunda/notification/NotificationDefendantOfHearingHandlerTest.java index 16f67bad701..1e19ac201ca 100644 --- a/src/test/java/uk/gov/hmcts/reform/civil/handler/callback/camunda/notification/NotificationDefendantOfHearingHandlerTest.java +++ b/src/test/java/uk/gov/hmcts/reform/civil/handler/callback/camunda/notification/NotificationDefendantOfHearingHandlerTest.java @@ -614,7 +614,7 @@ private Map getNotificationDataMap(CaseData caseData) { @NotNull private Map getNotificationDataMapNoReference(CaseData caseData) { return Map.of( - CLAIM_REFERENCE_NUMBER, caseData.getCcdCaseReference().toString(), + CLAIM_REFERENCE_NUMBER, CASE_ID.toString(), "defendantReferenceNumber", "", "hearingDate", "07-10-2022", "hearingTime", "03:30pm", PARTY_REFERENCES, "Claimant reference: Not provided - Defendant reference: Not provided",