Search in sources :

Example 11 with Reporter

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

the class ReporterDaoIT method testDelete.

@Override
@Test
public void testDelete() throws Exception {
    String id = "AbiQCgu0Hj";
    Reporter deleted = reporterDao.delete(id);
    assertThat(deleted.getReferralId(), is(id));
}
Also used : Reporter(gov.ca.cwds.data.persistence.cms.Reporter) Test(org.junit.Test)

Aggregations

Reporter (gov.ca.cwds.data.persistence.cms.Reporter)11 Test (org.junit.Test)9 PostedReporter (gov.ca.cwds.rest.api.domain.cms.PostedReporter)2 ServiceException (gov.ca.cwds.rest.services.ServiceException)2 EntityExistsException (javax.persistence.EntityExistsException)1 EntityNotFoundException (javax.persistence.EntityNotFoundException)1 Query (org.hibernate.Query)1