use of gov.ca.cwds.data.persistence.cms.ReferralClient.PrimaryKey in project API by ca-cwds.
the class ReferralClientDaoIT method testFindEntityNotFoundException.
@Override
@Test
public void testFindEntityNotFoundException() throws Exception {
ReferralClient found = referralClientDao.find(new PrimaryKey("ZZZZZZZ999", "XXXXXXX000"));
assertThat(found, is(nullValue()));
}
use of gov.ca.cwds.data.persistence.cms.ReferralClient.PrimaryKey in project API by ca-cwds.
the class ReferralClientDaoIT method testDelete.
@Override
@Test
public void testDelete() throws Exception {
ReferralClient delete = referralClientDao.delete(new PrimaryKey("LNuzMKw06s", "AazXkWY06s"));
assertThat(delete.getClientId(), is("AazXkWY06s"));
assertThat(delete.getReferralId(), is("LNuzMKw06s"));
}
use of gov.ca.cwds.data.persistence.cms.ReferralClient.PrimaryKey in project API by ca-cwds.
the class ReferralClientDaoIT method testDeleteEntityNotFoundException.
@Override
@Test
public void testDeleteEntityNotFoundException() throws Exception {
ReferralClient delete = referralClientDao.delete(new PrimaryKey("ZZZZZZZ999", "XXXXXXX000"));
assertThat(delete, is(nullValue()));
}
use of gov.ca.cwds.data.persistence.cms.ReferralClient.PrimaryKey in project API by ca-cwds.
the class ReferralClientDaoIT method testFind.
@Override
@Test
public void testFind() throws Exception {
ReferralClient found = referralClientDao.find(new PrimaryKey("LNuzMKw06s", "AazXkWY06s"));
assertThat(found, is(notNullValue()));
assertThat(found.getReferralId(), is(equalTo("LNuzMKw06s")));
assertThat(found.getClientId(), is(equalTo("AazXkWY06s")));
}
Aggregations