Search in sources :

Example 46 with Response

use of gov.ca.cwds.rest.api.Response in project API by ca-cwds.

the class ReferralServiceTest method testDeleteReturnsNullWhenNotFound.

@Override
@Test
public void testDeleteReturnsNullWhenNotFound() throws Exception {
    Response found = referralService.delete("ABC1234567");
    assertThat(found, is(nullValue()));
}
Also used : Response(gov.ca.cwds.rest.api.Response) Test(org.junit.Test)

Example 47 with Response

use of gov.ca.cwds.rest.api.Response in project API by ca-cwds.

the class ClientUcServiceTest method testFindReturnsNullWhenNotFound.

@Override
@Test
public void testFindReturnsNullWhenNotFound() throws Exception {
    Response found = clientUcService.find("ABC1234567");
    assertThat(found, is(nullValue()));
}
Also used : Response(gov.ca.cwds.rest.api.Response) Test(org.junit.Test)

Example 48 with Response

use of gov.ca.cwds.rest.api.Response in project API by ca-cwds.

the class ClientUcServiceTest method testDeleteReturnsNullWhenNotFound.

@Override
@Test
public void testDeleteReturnsNullWhenNotFound() throws Exception {
    Response found = clientUcService.delete("ABC1234567");
    assertThat(found, is(nullValue()));
}
Also used : Response(gov.ca.cwds.rest.api.Response) Test(org.junit.Test)

Example 49 with Response

use of gov.ca.cwds.rest.api.Response in project API by ca-cwds.

the class CmsReferralServiceTest method createReturnsPostedCmsReferral.

// Create Tests
@Test
public void createReturnsPostedCmsReferral() throws Exception {
    Response response = cmsReferralServiceResponse();
    assertThat(response.getClass(), is(PostedCmsReferral.class));
}
Also used : Response(gov.ca.cwds.rest.api.Response) PostedCmsReferral(gov.ca.cwds.rest.api.domain.cms.PostedCmsReferral) Test(org.junit.Test)

Example 50 with Response

use of gov.ca.cwds.rest.api.Response in project API by ca-cwds.

the class ReporterServiceTest method findReturnsNullWhenNotFound.

@SuppressWarnings("javadoc")
@Test
public void findReturnsNullWhenNotFound() throws Exception {
    Response found = reporterService.find("ABC1234567");
    assertThat(found, is(nullValue()));
}
Also used : Response(gov.ca.cwds.rest.api.Response) Test(org.junit.Test)

Aggregations

Response (gov.ca.cwds.rest.api.Response)83 Test (org.junit.Test)80 ReferralClient (gov.ca.cwds.rest.api.domain.cms.ReferralClient)46 CrossReport (gov.ca.cwds.rest.api.domain.cms.CrossReport)45 Allegation (gov.ca.cwds.rest.api.domain.cms.Allegation)44 Client (gov.ca.cwds.rest.api.domain.cms.Client)44 Referral (gov.ca.cwds.rest.api.domain.cms.Referral)44 PostedScreeningToReferral (gov.ca.cwds.rest.api.domain.PostedScreeningToReferral)43 ChildClient (gov.ca.cwds.rest.api.domain.cms.ChildClient)43 CmsReferral (gov.ca.cwds.rest.api.domain.cms.CmsReferral)43 LongText (gov.ca.cwds.rest.api.domain.cms.LongText)43 Reporter (gov.ca.cwds.rest.api.domain.cms.Reporter)43 LinkedHashSet (java.util.LinkedHashSet)43 Set (java.util.Set)43 ScreeningToReferral (gov.ca.cwds.rest.api.domain.ScreeningToReferral)42 Address (gov.ca.cwds.rest.api.domain.cms.Address)42 ClientAddress (gov.ca.cwds.rest.api.domain.cms.ClientAddress)42 ErrorMessage (gov.ca.cwds.rest.api.domain.error.ErrorMessage)22 ExpectedException (org.junit.rules.ExpectedException)16 PostedCmsReferral (gov.ca.cwds.rest.api.domain.cms.PostedCmsReferral)3