use of gov.ca.cwds.data.persistence.cms.StaffPerson in project API by ca-cwds.
the class StaffPersonDaoIT method testDeleteEntityNotFoundException.
@Override
@Test
public void testDeleteEntityNotFoundException() throws Exception {
String id = "ZZZ";
StaffPerson deleted = staffPersonDao.delete(id);
assertThat(deleted, is(nullValue()));
}
use of gov.ca.cwds.data.persistence.cms.StaffPerson in project API by ca-cwds.
the class StaffPersonDaoIT method testDelete.
@Override
@Test
public void testDelete() throws Exception {
String id = "q1p";
StaffPerson deleted = staffPersonDao.delete(id);
assertThat(deleted.getId(), is(id));
}
Aggregations