Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CIV-11150 flight delay screen test PR #3572

Closed
Closed
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
d213fed
CIV-11150 Add new handler
hmcts-version1-ignacio Oct 27, 2023
ddf72aa
CIV-11150 Add new handler
hmcts-version1-ignacio Oct 30, 2023
6acff96
Merge branch 'master' into feat/CIV-11150-flight-delay-screen
hmcts-version1-ignacio Oct 30, 2023
c560e13
CIV-11150 Fix sonar issues
hmcts-version1-ignacio Oct 30, 2023
6b752a3
CIV-11150 Add new test and new changes
hmcts-version1-ignacio Oct 30, 2023
e353349
CIV-11150 Add new test and new changes
hmcts-version1-ignacio Oct 30, 2023
baa080f
CIV-11150 Fix sonar issue
hmcts-version1-ignacio Oct 31, 2023
6dcaa6e
Merge branch 'master' into feat/CIV-11150-flight-delay-screen
hmcts-version1-ignacio Oct 31, 2023
40b6821
Merge branch 'master' into feat/CIV-11150-flight-delay-screen
Azam-Hmcts Oct 31, 2023
7bc06d7
CIV-11150 Add claimType modifyer
hmcts-version1-ignacio Oct 31, 2023
ad02d7b
Merge remote-tracking branch 'origin/feat/CIV-11150-flight-delay-scre…
hmcts-version1-ignacio Oct 31, 2023
ccc87a7
Merge branch 'master' into feat/CIV-11150-flight-delay-screen
hmcts-version1-ignacio Nov 2, 2023
c07f81f
Merge branch 'master' into feat/CIV-11150-flight-delay-screen
krishnanuthalapati Nov 8, 2023
ae58a1a
Merge branch 'master' into feat/CIV-11150-flight-delay-screen
hmcts-version1-ignacio Nov 10, 2023
51e9eaf
Merge branch 'master' into feat/CIV-11150-flight-delay-screen
krishnanuthalapati Nov 13, 2023
22d7325
Merge branch 'master' into feat/CIV-11150-flight-delay-screen
hmcts-version1-ignacio Nov 14, 2023
49afe53
Merge branch 'master' into feat/CIV-11150-flight-delay-screen
hmcts-version1-ignacio Nov 14, 2023
78f614a
Merge branch 'master' into feat/CIV-11150-flight-delay-screen
hmcts-version1-ignacio Nov 14, 2023
5089c55
Merge branch 'master' into feat/CIV-11150-flight-delay-screen
hmcts-version1-ignacio Nov 14, 2023
49a5c73
CIV-11150 test PR
hmcts-version1-ignacio Nov 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
CIV-11150 Add claimType modifyer
  • Loading branch information
hmcts-version1-ignacio committed Oct 31, 2023
commit 7bc06d70db66748aa3b2105550f5a7f273b036af
Original file line number Diff line number Diff line change
@@ -17,6 +17,7 @@
import uk.gov.hmcts.reform.civil.config.ToggleConfiguration;
import uk.gov.hmcts.reform.civil.config.ClaimUrlsConfiguration;
import uk.gov.hmcts.reform.civil.enums.CaseCategory;
import uk.gov.hmcts.reform.civil.enums.ClaimType;
import uk.gov.hmcts.reform.civil.enums.MultiPartyScenario;
import uk.gov.hmcts.reform.civil.enums.YesOrNo;
import uk.gov.hmcts.reform.civil.model.Address;
@@ -906,6 +907,11 @@ private CallbackResponse isFlightDelayClaim(CallbackParams callbackParams) {

if (toggleService.isSdoR2Enabled()) {
caseDataBuilder.isFlightDelayClaim(callbackParams.getCaseData().getIsFlightDelayClaim());
if (callbackParams.getCaseData().getIsFlightDelayClaim().equals(YES)) {
caseDataBuilder.claimType(ClaimType.FLIGHT_DELAY);
} else {
caseDataBuilder.claimType(null);
}
}

return AboutToStartOrSubmitCallbackResponse.builder()
Original file line number Diff line number Diff line change
@@ -1639,6 +1639,11 @@ void shouldSetIsFlightDelayClaim_whenPopulatedAndSdoR2Enabled(Boolean toggleStat

// Then
assertThat(response.getData()).containsEntry("isFlightDelayClaim", toggleStat ? "Yes" : "No");
if (toggleStat) {
assertThat(response.getData()).containsEntry("claimType", "FLIGHT_DELAY");
} else {
assertThat(response.getData()).doesNotHaveToString("claimType");
}
}

@Test
@@ -1654,6 +1659,7 @@ void shouldSetIsFlightDelayClaim_whenPopulatedAndSdoR2Disabled() {

// Then
assertThat(response.getData()).doesNotHaveToString("isFlightDelayClaim");
assertThat(response.getData()).doesNotHaveToString("claimType");
}
}