Search in sources :

Example 16 with CountyTrigger

use of gov.ca.cwds.data.persistence.cms.CountyTrigger in project API by ca-cwds.

the class CountyTriggerDaoIT method testFindEntityNotFoundException.

@Override
@Test
public void testFindEntityNotFoundException() throws Exception {
    CountyTriggerEmbeddable countyTriggerEmbeddable = new CountyTriggerEmbeddable("9999999KKK", null);
    CountyTrigger found = countyTriggerDao.find(countyTriggerEmbeddable);
    assertThat(found, is(nullValue()));
}
Also used : CountyTrigger(gov.ca.cwds.data.persistence.cms.CountyTrigger) CountyTriggerEmbeddable(gov.ca.cwds.data.persistence.cms.CountyTriggerEmbeddable) Test(org.junit.Test)

Example 17 with CountyTrigger

use of gov.ca.cwds.data.persistence.cms.CountyTrigger in project API by ca-cwds.

the class CountyTriggerDaoIT method testCreate.

@Override
@Test
public void testCreate() throws Exception {
    CountyTrigger countyTrigger = new CountyTrigger("ABC1234567", "62", "C", (Date) null, "REFR_CLT");
    CountyTrigger created = countyTriggerDao.create(countyTrigger);
    assertThat(created, is(countyTrigger));
}
Also used : CountyTrigger(gov.ca.cwds.data.persistence.cms.CountyTrigger) Test(org.junit.Test)

Aggregations

CountyTrigger (gov.ca.cwds.data.persistence.cms.CountyTrigger)17 Test (org.junit.Test)15 InvocationOnMock (org.mockito.invocation.InvocationOnMock)7 CountyTriggerEmbeddable (gov.ca.cwds.data.persistence.cms.CountyTriggerEmbeddable)5 Date (java.util.Date)5 ClientAddress (gov.ca.cwds.data.persistence.cms.ClientAddress)4 DateFormat (java.text.DateFormat)4 SimpleDateFormat (java.text.SimpleDateFormat)4 Referral (gov.ca.cwds.data.persistence.cms.Referral)3 ReferralClient (gov.ca.cwds.data.persistence.cms.ReferralClient)3