use of gov.ca.cwds.data.persistence.cms.CountyOwnership in project API by ca-cwds.
the class CountyOwnershipDaoIT method testFind.
@Override
@Test
public void testFind() throws Exception {
String entityId = "AaNli340MV";
CountyOwnership found = countyOwnershipDao.find(entityId);
assertThat(found.getEntityId(), is(equalTo(entityId)));
}
use of gov.ca.cwds.data.persistence.cms.CountyOwnership in project API by ca-cwds.
the class CountyOwnershipDaoIT method testCreate.
@Override
@Test
public void testCreate() throws Exception {
CountyOwnership countyOwnership = new CountyOwnership("ABC1234567", "C", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", "N", null);
CountyOwnership created = countyOwnershipDao.create(countyOwnership);
assertThat(created, is(countyOwnership));
}
use of gov.ca.cwds.data.persistence.cms.CountyOwnership in project API by ca-cwds.
the class CountyOwnershipDaoIT method testFindEntityNotFoundException.
@Override
@Test
public void testFindEntityNotFoundException() throws Exception {
CountyOwnership found = countyOwnershipDao.find("9999999ZZZ");
assertThat(found, is(nullValue()));
}
Aggregations