Skip to content

Commit

Permalink
check applicant names
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex McAusland committed Nov 8, 2024
1 parent a135ea4 commit 1d3ce9f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ public void caseCreation() throws Exception {
// Check we can load the case
var c = ccdApi.getCase(getAuthorisation("[email protected]"), getServiceAuth(), String.valueOf(caseRef));
assertThat(c.getState(), equalTo("Holding"));
var caseData = mapper.readValue(mapper.writeValueAsString(c.getData()), CaseData.class);
assertThat(caseData.getApplicant1().getFirstName(), equalTo("app1_first_name"));
assertThat(caseData.getApplicant2().getFirstName(), equalTo("app2_first_name"));
}

private long caseRef;
Expand Down

0 comments on commit 1d3ce9f

Please sign in to comment.