Skip to content

Commit

Permalink
Updating tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeCohenSol committed Nov 25, 2024
1 parent 5ae86b5 commit c931d09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class BailCaseFieldDefinitionTest {
*/
@Test
void fail_if_changes_needed_after_modifying_bail_case_definition() {
assertEquals(299, BailCaseFieldDefinition.values().length);
assertEquals(301, BailCaseFieldDefinition.values().length);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ void should_set_ccd_location_id_and_listing_location_detail_based_on_location_re
.getListItems()
)));
when(locationRefDataService.getCourtVenuesByEpimmsId("366796")).thenReturn(Optional.of(newCastle));
when(bailCase.read(CURRENT_HEARING_ID, String.class)).thenReturn(Optional.of("12345"));

PreSubmitCallbackResponse<BailCase> response = caseListingHandler.handle(
PreSubmitCallbackStage.ABOUT_TO_SUBMIT,
Expand All @@ -170,6 +171,8 @@ void should_set_ccd_location_id_and_listing_location_detail_based_on_location_re
assertEquals(bailCase, response.getData());
verify(bailCase, times(1)).write(LISTING_LOCATION, NEWCASTLE);
verify(bailCase, times(1)).write(REF_DATA_LISTING_LOCATION_DETAIL, newCastle);
verify(bailCase, times(1)).write(CURRENT_HEARING_ID, "12345");

}

@Test
Expand Down

0 comments on commit c931d09

Please sign in to comment.