Skip to content

Commit

Permalink
expand test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex McAusland committed Nov 7, 2024
1 parent 10a66ba commit dd94d55
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ public void caseCreation() throws Exception {
var r = new Gson().fromJson(EntityUtils.toString(response.getEntity()), Map.class);
caseRef = Long.parseLong((String) r.get("id"));
assertThat(response.getStatusLine().getStatusCode(), equalTo(201));
assertThat(r.get("state"), equalTo("Holding"));

// Check we can load the case
var c = ccdApi.getCase(getAuthorisation("[email protected]"), getServiceAuth(), String.valueOf(caseRef));
assertThat(c.getState(), equalTo("Holding"));
}

private long caseRef;
Expand Down

0 comments on commit dd94d55

Please sign in to comment.