use of gov.ca.cwds.data.persistence.cms.ReferralClient 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 in project API by ca-cwds.
the class ReferralClientDaoIT method testCreate.
@Override
@Test
public void testCreate() throws Exception {
ReferralClient referralClient = new ReferralClient("86XV1bG06k", "AazXkWY06k", "", (short) 122, (short) 681, "S", null, "N", "N", "", (short) 2, "", "", "Y", "N", "N");
ReferralClient created = referralClientDao.create(referralClient);
assertThat(created, is(referralClient));
}
use of gov.ca.cwds.data.persistence.cms.ReferralClient 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