Skip to content

Commit

Permalink
CIV-16319 - View Applications link inactive to respondent following N…
Browse files Browse the repository at this point in the history
…o Remission HWF outcome (#1622)

* added code changes and unit tests.

* added a fix.

* added fix
  • Loading branch information
neeta-hmcts authored Dec 19, 2024
1 parent ca20cbb commit bd24ce2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ private void updateDashboardTaskListAndNotification(CallbackParams callbackParam
caseData)).build();
if (scenarios != null) {
scenarios.forEach(scenario -> dashboardApiClient.recordScenario(
caseData.getCcdCaseReference().toString(),
caseReference,
scenario,
authToken,
scenarioParams
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ void shouldUpdateTaskListActionNeeded_whenInvoked() {
ScenarioRequestParams.builder().params(scenarioParams).build()
);
verify(dashboardApiClient).recordScenario(
caseData.getCcdCaseReference().toString(),
caseData.getParentCaseReference(),
SCENARIO_AAA6_GENERAL_APPLICATION_ACTION_NEEDED_DEFENDANT.getScenario(),
"BEARER_TOKEN",
ScenarioRequestParams.builder().params(scenarioParams).build()
Expand Down Expand Up @@ -296,13 +296,13 @@ void shouldUpdateTaskListInProgress_whenInvoked() {
AWAITING_RESPONDENT_RESPONSE.getDisplayedValue()
);
verify(dashboardApiClient).recordScenario(
caseData.getCcdCaseReference().toString(),
caseData.getParentCaseReference(),
SCENARIO_AAA6_GENERAL_APPLICATION_IN_PROGRESS_CLAIMANT.getScenario(),
"BEARER_TOKEN",
ScenarioRequestParams.builder().params(scenarioParams).build()
);
verify(dashboardApiClient).recordScenario(
caseData.getCcdCaseReference().toString(),
caseData.getParentCaseReference(),
SCENARIO_AAA6_GENERAL_APPLICATION_IN_PROGRESS_DEFENDANT.getScenario(),
"BEARER_TOKEN",
ScenarioRequestParams.builder().params(scenarioParams).build()
Expand Down Expand Up @@ -343,13 +343,13 @@ void shouldUpdateTaskListAvailable_whenInvoked() {
AWAITING_RESPONDENT_RESPONSE.getDisplayedValue()
);
verify(dashboardApiClient).recordScenario(
caseData.getCcdCaseReference().toString(),
caseData.getParentCaseReference(),
SCENARIO_AAA6_GENERAL_APPLICATION_AVAILABLE_CLAIMANT.getScenario(),
"BEARER_TOKEN",
ScenarioRequestParams.builder().params(scenarioParams).build()
);
verify(dashboardApiClient).recordScenario(
caseData.getCcdCaseReference().toString(),
caseData.getParentCaseReference(),
SCENARIO_AAA6_GENERAL_APPLICATION_AVAILABLE_DEFENDANT.getScenario(),
"BEARER_TOKEN",
ScenarioRequestParams.builder().params(scenarioParams).build()
Expand All @@ -373,7 +373,8 @@ void shouldUpdateDefendantTaskListIfGaRespondentLip() {
.isGaRespondentOneLip(YES)
.parentClaimantIsApplicant(YES)
.isGaApplicantLip(NO)
.ccdCaseReference(CCD_CASE_REFERENCE).build();
.ccdCaseReference(CCD_CASE_REFERENCE).build()
.toBuilder().parentCaseReference("1234").build();

HashMap<String, Object> scenarioParams = new HashMap<>();

Expand All @@ -387,7 +388,7 @@ void shouldUpdateDefendantTaskListIfGaRespondentLip() {
handler.handle(params);

verify(dashboardApiClient).recordScenario(
caseData.getCcdCaseReference().toString(),
caseData.getParentCaseReference(),
SCENARIO_AAA6_GENERAL_APPLICATION_SUBMITTED_APPLICANT.getScenario(),
"BEARER_TOKEN",
ScenarioRequestParams.builder().params(scenarioParams).build()
Expand Down

0 comments on commit bd24ce2

Please sign in to comment.