use of gov.ca.cwds.rest.api.domain.Address in project API by ca-cwds.
the class ParticipantResourceTest method testUpdate404NotFoundError.
@Override
@Test
public void testUpdate404NotFoundError() throws Exception {
roles.add("victim");
Address address = new Address("", "", "123 First St", "San Jose", "CA", 94321, "Home");
addresses.add(address);
Participant participant = new Participant(1, "", "", "Marge", "Simpson", "Female", "111223333", "2017-01-11", 123, 456, roles, addresses);
int receivedStatus = inMemoryResource.client().target(ROOT_RESOURCE).request().accept(MediaType.APPLICATION_JSON).put(Entity.entity(participant, MediaType.APPLICATION_JSON)).getStatus();
int expectedStatus = 405;
assertThat(receivedStatus, is(expectedStatus));
}
Aggregations