Skip to content

Commit

Permalink
fixed test.
Browse files Browse the repository at this point in the history
  • Loading branch information
neeta-hmcts committed Dec 16, 2024
1 parent de4f051 commit 8e62116
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void shouldSetUpTransitions_withExpectedSizeAndStates() {
void shouldReturnTrue_whenCaseDataAtClaimSubmittedState() {
CaseData caseData = CaseDataBuilder.builder().atStateClaimSubmitted().build();
assertTrue(claimSubmittedOneRespondentRepresentative.test(caseData));
assertThat(getCaseFlags(result.get(0), caseData)).hasSize(8).contains(
assertThat(getCaseFlags(result.get(0), caseData)).hasSize(9).contains(
entry(FlowFlag.BULK_CLAIM_ENABLED.name(), false),
entry(FlowFlag.GENERAL_APPLICATION_ENABLED.name(), false),
entry(FlowFlag.DASHBOARD_SERVICE_ENABLED.name(), false),
Expand All @@ -87,7 +87,7 @@ void shouldReturnTrue_whenCaseDataAtClaimSubmittedOneRespondentRepresentativeSta
when(mockFeatureToggleService.isDashboardEnabledForCase(any())).thenReturn(true);

assertTrue(claimSubmittedOneRespondentRepresentative.test(caseData));
assertThat(getCaseFlags(result.get(0), caseData)).hasSize(8).contains(
assertThat(getCaseFlags(result.get(0), caseData)).hasSize(9).contains(
entry(FlowFlag.BULK_CLAIM_ENABLED.name(), false),
entry(FlowFlag.GENERAL_APPLICATION_ENABLED.name(), false),
entry(FlowFlag.DASHBOARD_SERVICE_ENABLED.name(), false),
Expand Down Expand Up @@ -162,7 +162,7 @@ void shouldReturnTrue_whenCaseDataAtClaimSubmittedTwoRepresentativesStateRespOne

assertFalse(claimSubmittedTwoRegisteredRespondentRepresentatives.test(caseData));
assertTrue(claimSubmittedTwoRespondentRepresentativesOneUnregistered.test(caseData));
assertThat(getCaseFlags(result.get(1), caseData)).hasSize(9).contains(
assertThat(getCaseFlags(result.get(1), caseData)).hasSize(10).contains(
entry(FlowFlag.BULK_CLAIM_ENABLED.name(), false),
entry(FlowFlag.GENERAL_APPLICATION_ENABLED.name(), false),
entry(FlowFlag.DASHBOARD_SERVICE_ENABLED.name(), false),
Expand Down Expand Up @@ -199,7 +199,7 @@ void shouldReturnTrue_whenCaseDataAtClaimSubmittedBothRepresentativesUnrepresent
assertFalse(claimSubmittedTwoRegisteredRespondentRepresentatives.test(caseData));
assertTrue(claimSubmittedRespondent1Unrepresented.test(caseData));
assertTrue(claimSubmittedRespondent2Unrepresented.test(caseData));
assertThat(getCaseFlags(result.get(5), caseData)).hasSize(9).contains(
assertThat(getCaseFlags(result.get(5), caseData)).hasSize(10).contains(
entry(FlowFlag.BULK_CLAIM_ENABLED.name(), false),
entry(FlowFlag.GENERAL_APPLICATION_ENABLED.name(), false),
entry(FlowFlag.DASHBOARD_SERVICE_ENABLED.name(), true),
Expand Down Expand Up @@ -247,7 +247,7 @@ void shouldResolve_whenOnlyOneUnrepresentedDefendant() {

assertTrue(claimSubmittedOneUnrepresentedDefendantOnly.test(caseData));
assertTrue(claimSubmittedRespondent1Unrepresented.test(caseData));
assertThat(getCaseFlags(result.get(2), caseData)).hasSize(8).contains(
assertThat(getCaseFlags(result.get(2), caseData)).hasSize(9).contains(
entry(FlowFlag.BULK_CLAIM_ENABLED.name(), false),
entry(FlowFlag.GENERAL_APPLICATION_ENABLED.name(), true),
entry(FlowFlag.DASHBOARD_SERVICE_ENABLED.name(), true),
Expand Down Expand Up @@ -277,7 +277,7 @@ void shouldResolve_whenSecondDefendantUnrepresented() {

assertFalse(claimSubmittedRespondent1Unrepresented.test(caseData));
assertTrue(claimSubmittedRespondent2Unrepresented.test(caseData));
assertThat(getCaseFlags(result.get(3), caseData)).hasSize(9).contains(
assertThat(getCaseFlags(result.get(3), caseData)).hasSize(10).contains(
entry(FlowFlag.BULK_CLAIM_ENABLED.name(), false),
entry(FlowFlag.GENERAL_APPLICATION_ENABLED.name(), false),
entry(FlowFlag.DASHBOARD_SERVICE_ENABLED.name(), true),
Expand Down

0 comments on commit 8e62116

Please sign in to comment.