Skip to content

Commit

Permalink
update tests (#2785)
Browse files Browse the repository at this point in the history
  • Loading branch information
zikrurR authored Oct 13, 2023
1 parent b0192cd commit ab012d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ class MidTests {
@Test
void shouldGenerateDocumentOnMidEvent() {
CCDCase ccdCase = SampleData.getCCDCitizenCase(Collections.emptyList());
ccdCase.setDirectionOrderType("BESPOKE");
ccdCase = SampleData.addCCDOrderGenerationData(ccdCase);
when(caseDetailsConverter.extractCCDCase(any(CaseDetails.class)))
.thenReturn(ccdCase);
Expand Down Expand Up @@ -283,6 +284,7 @@ void shouldGenerateStandardOrderDocumentOnMidEvent() {
CCDCase ccdCase = SampleData.getCCDCitizenCase(Collections.emptyList());

ccdCase = SampleData.addCCDOrderGenerationData(ccdCase);
ccdCase.setDirectionOrderType("BESPOKE");
when(caseDetailsConverter.extractCCDCase(any(CaseDetails.class)))
.thenReturn(ccdCase);
when(launchDarklyClient.isFeatureEnabled(eq("bespoke-order"), any(LDUser.class))).thenReturn(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ class MidTests {
@Test
void shouldGenerateDocumentOnMidEvent() {
CCDCase ccdCase = SampleData.getCCDCitizenCase(Collections.emptyList());
ccdCase.setDirectionOrderType("BESPOKE");
ccdCase = SampleData.addCCDOrderGenerationData(ccdCase);
when(caseDetailsConverter.extractCCDCase(any(CaseDetails.class)))
.thenReturn(ccdCase);
Expand Down

0 comments on commit ab012d4

Please sign in to comment.