Skip to content

Commit

Permalink
rebasing
Browse files Browse the repository at this point in the history
  • Loading branch information
drummondjm committed Oct 23, 2024
1 parent e61706f commit 3e66821
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ PARTY_REFERENCES, buildPartiesReferencesEmailSubject(caseData)

public Map<String, String> 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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public Map<String, String> 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<String, String> addPropertiesHmc(final CaseData caseData, boolean isDefendant1) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -194,7 +194,7 @@ void shouldGenerateEmail_whenInvokedAnd1v1AndLRvLiP() {
@NotNull
private Map<String, String> 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)
Expand All @@ -205,7 +205,7 @@ PARTY_REFERENCES, buildPartiesReferencesEmailSubject(caseData)
private Map<String, String> 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)
);
Expand All @@ -214,7 +214,7 @@ PARTY_REFERENCES, buildPartiesReferencesEmailSubject(caseData)
private Map<String, String> 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)
Expand All @@ -225,7 +225,7 @@ PARTY_REFERENCES, buildPartiesReferencesEmailSubject(caseData)
private Map<String, String> 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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ private Map<String, String> getNotificationDataMap(CaseData caseData) {
@NotNull
private Map<String, String> 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",
Expand Down

0 comments on commit 3e66821

Please sign in to comment.