Search in sources :

Example 1 with MinorChildDTO

use of gov.ca.cwds.cals.service.dto.rfa.MinorChildDTO in project cals-api by ca-cwds.

the class Rfa1aFormGenerationTest method getMinorChild.

private MinorChildDTO getMinorChild(Long applicantId, int seed) throws Exception {
    MinorChildDTO minorChild = mapper.readValue(MINOR_CHILDREN_FIXTURE, MinorChildDTO.class);
    minorChild.setOtherRelativeFirstName(minorChild.getOtherRelativeFirstName() + seed);
    minorChild.setOtherRelativeLastName(minorChild.getOtherRelativeLastName() + seed);
    minorChild.getRelationshipToApplicants().get(0).setApplicantId(applicantId);
    return minorChild;
}
Also used : MinorChildDTO(gov.ca.cwds.cals.service.dto.rfa.MinorChildDTO)

Example 2 with MinorChildDTO

use of gov.ca.cwds.cals.service.dto.rfa.MinorChildDTO in project cals-api by ca-cwds.

the class RFA1aMinorChildrenResourceTest method restoreUnselectedValueBackTest.

@Test
public void restoreUnselectedValueBackTest() throws Exception {
    String inputFixture = "{\"relationship_to_applicants\": []}";
    RFA1aFormDTO form = formAHelper.createRFA1aForm();
    WebTarget target = clientTestRule.target(API.RFA_1A_FORMS + "/" + form.getId() + "/" + API.RFA_1A_MINOR_CHILDREN);
    MinorChildDTO minorChildDTO = clientTestRule.getMapper().readValue(inputFixture, MinorChildDTO.class);
    MinorChildDTO postMinorChildDTO = target.request(MediaType.APPLICATION_JSON).post(Entity.entity(minorChildDTO, MediaType.APPLICATION_JSON_TYPE), MinorChildDTO.class);
    String removeArrayFixture = "{\n" + "  \"id\" : %s\n" + ", \"relationship_to_applicants\":null" + "}";
    minorChildDTO = clientTestRule.getMapper().readValue(String.format(removeArrayFixture, postMinorChildDTO.getId()), MinorChildDTO.class);
    target = clientTestRule.target(API.RFA_1A_FORMS + "/" + form.getId() + "/" + API.RFA_1A_MINOR_CHILDREN + "/" + postMinorChildDTO.getId());
    MinorChildDTO putMinorChildDTO = target.request(MediaType.APPLICATION_JSON).put(Entity.entity(minorChildDTO, MediaType.APPLICATION_JSON_TYPE), MinorChildDTO.class);
    String finalFixture = "{\n" + "  \"id\" : %s\n" + "}";
    JSONAssert.assertEquals(String.format(finalFixture, putMinorChildDTO.getId()), clientTestRule.getMapper().writeValueAsString(putMinorChildDTO), JSONCompareMode.STRICT);
}
Also used : RFA1aFormDTO(gov.ca.cwds.cals.service.dto.rfa.RFA1aFormDTO) MinorChildDTO(gov.ca.cwds.cals.service.dto.rfa.MinorChildDTO) WebTarget(javax.ws.rs.client.WebTarget) Test(org.junit.Test)

Example 3 with MinorChildDTO

use of gov.ca.cwds.cals.service.dto.rfa.MinorChildDTO in project cals-api by ca-cwds.

the class RFA1aMinorChildrenResourceTest method checkInputOutput.

private void checkInputOutput(String inputFixture, String expectedOutputFixture) throws Exception {
    RFA1aFormDTO form = formAHelper.createRFA1aForm();
    WebTarget target = clientTestRule.target(API.RFA_1A_FORMS + "/" + form.getId() + "/" + API.RFA_1A_MINOR_CHILDREN);
    MinorChildDTO minorChildDTO = clientTestRule.getMapper().readValue(inputFixture, MinorChildDTO.class);
    MinorChildDTO postMinorChildDTO = target.request(MediaType.APPLICATION_JSON).post(Entity.entity(minorChildDTO, MediaType.APPLICATION_JSON_TYPE), MinorChildDTO.class);
    target = clientTestRule.target(API.RFA_1A_FORMS + "/" + form.getId() + "/" + API.RFA_1A_MINOR_CHILDREN + "/" + postMinorChildDTO.getId());
    MinorChildDTO getMinorChildDTO = target.request(MediaType.APPLICATION_JSON).get(MinorChildDTO.class);
    JSONAssert.assertEquals(String.format(expectedOutputFixture, getMinorChildDTO.getId()), clientTestRule.getMapper().writeValueAsString(getMinorChildDTO), JSONCompareMode.STRICT);
}
Also used : RFA1aFormDTO(gov.ca.cwds.cals.service.dto.rfa.RFA1aFormDTO) MinorChildDTO(gov.ca.cwds.cals.service.dto.rfa.MinorChildDTO) WebTarget(javax.ws.rs.client.WebTarget)

Example 4 with MinorChildDTO

use of gov.ca.cwds.cals.service.dto.rfa.MinorChildDTO in project cals-api by ca-cwds.

the class RFA1aFormsResourceTest method testApplicationWithParts.

@Test()
public void testApplicationWithParts() throws Exception {
    RFA1aFormDTO postFormRequest = clientTestRule.getMapper().readValue(RFA_1A_FIXTURE, RFA1aFormDTO.class);
    RFA1aFormDTO postFormResponse = clientTestRule.target(API.RFA_1A_FORMS).request(MediaType.APPLICATION_JSON).post(Entity.entity(postFormRequest, MediaType.APPLICATION_JSON_TYPE), RFA1aFormDTO.class);
    Long formId = postFormResponse.getId();
    postFormRequest.setId(formId);
    assertEqualsResponse(transformDTOtoJSON(postFormRequest), transformDTOtoJSON(postFormResponse));
    ApplicantDTO applicantDTO = clientTestRule.target(API.RFA_1A_FORMS + "/" + formId + "/" + API.RFA_1A_APPLICANTS).request(MediaType.APPLICATION_JSON).post(Entity.entity(APPLICANT_FIXTURE, MediaType.APPLICATION_JSON_TYPE), ApplicantDTO.class);
    ApplicantDTO applicantDTO2 = clientTestRule.target(API.RFA_1A_FORMS + "/" + formId + "/" + API.RFA_1A_APPLICANTS).request(MediaType.APPLICATION_JSON).post(Entity.entity(APPLICANT_FIXTURE2, MediaType.APPLICATION_JSON_TYPE), ApplicantDTO.class);
    ResidenceDTO residenceDTO = clientTestRule.target(API.RFA_1A_FORMS + "/" + formId + "/" + API.RFA_1A_RESIDENCE).request(MediaType.APPLICATION_JSON).put(Entity.entity(RESIDENCE_FIXTURE, MediaType.APPLICATION_JSON_TYPE), ResidenceDTO.class);
    ApplicantsRelationshipDTO applicantsRelationshipDTO = clientTestRule.target(API.RFA_1A_FORMS + "/" + formId + "/" + API.RFA_1A_APPLICANTS_RELATIONSHIP).request(MediaType.APPLICATION_JSON).put(Entity.entity(APPLICANTS_RELATIONSHIP_FIXTURE, MediaType.APPLICATION_JSON_TYPE), ApplicantsRelationshipDTO.class);
    MinorChildDTO minorChildDTO = clientTestRule.target(API.RFA_1A_FORMS + "/" + formId + "/" + API.RFA_1A_MINOR_CHILDREN).request(MediaType.APPLICATION_JSON).post(Entity.entity(MINOR_CHILDREN_FIXTURE, MediaType.APPLICATION_JSON_TYPE), MinorChildDTO.class);
    OtherAdultDTO otherAdultDTO = clientTestRule.target(API.RFA_1A_FORMS + "/" + formId + "/" + API.RFA_1A_OTHER_ADULTS).request(MediaType.APPLICATION_JSON).post(Entity.entity(OTHER_ADULTS_FIXTURE, MediaType.APPLICATION_JSON_TYPE), OtherAdultDTO.class);
    ApplicantsHistoryDTO applicantsHistoryDTO = clientTestRule.target(API.RFA_1A_FORMS + "/" + formId + "/" + API.RFA_1A_APPLICANTS_HISTORY).request(MediaType.APPLICATION_JSON).put(Entity.entity(APPLICANTS_HISTORY_FIXTURE, MediaType.APPLICATION_JSON_TYPE), ApplicantsHistoryDTO.class);
    ChildDesiredDTO childDesiredDTO = clientTestRule.target(API.RFA_1A_FORMS + "/" + formId + "/" + API.RFA_1A_CHILD_DESIRED).request(MediaType.APPLICATION_JSON).put(Entity.entity(CHILD_DESIRED_FIXTURE, MediaType.APPLICATION_JSON_TYPE), ChildDesiredDTO.class);
    AdoptionHistoryDTO adoptionHistoryDTO = clientTestRule.target(API.RFA_1A_FORMS + "/" + formId + "/" + API.RFA_1A_ADOPTION_HISTORY).request(MediaType.APPLICATION_JSON).put(Entity.entity(ADOPTION_HISTORY_FIXTURE, MediaType.APPLICATION_JSON_TYPE), AdoptionHistoryDTO.class);
    ReferencesDTO referencesDTO = clientTestRule.target(API.RFA_1A_FORMS + "/" + formId + "/" + API.RFA_1A_REFERENCES).request(MediaType.APPLICATION_JSON).put(Entity.entity(REFERENCES_FIXTURE, MediaType.APPLICATION_JSON_TYPE), ReferencesDTO.class);
    ApplicantsDeclarationDTO applicantsDeclarationDTO = clientTestRule.target(API.RFA_1A_FORMS + "/" + formId + "/" + API.RFA_1A_APPLICANTS_DECLARATION).request(MediaType.APPLICATION_JSON).put(Entity.entity(APPLICANTS_DECLARATION_FIXTURE, MediaType.APPLICATION_JSON_TYPE), ApplicantsDeclarationDTO.class);
    RFA1aFormDTO getFormResponse = clientTestRule.target(API.RFA_1A_FORMS + "/" + formId).request(MediaType.APPLICATION_JSON).get(RFA1aFormDTO.class);
    assertEqualsResponse(transformDTOtoJSON(postFormResponse), transformDTOtoJSON(getFormResponse));
    RFA1aFormDTO expectedRfa1aFormDTO = clientTestRule.getMapper().readValue(RFA_1A_FIXTURE, RFA1aFormDTO.class);
    expectedRfa1aFormDTO.setId(formId);
    List<ApplicantDTO> applicants = new ArrayList<>();
    applicants.add(applicantDTO);
    applicants.add(applicantDTO2);
    expectedRfa1aFormDTO.setApplicants(applicants);
    expectedRfa1aFormDTO.setResidence(residenceDTO);
    expectedRfa1aFormDTO.setApplicantsRelationship(applicantsRelationshipDTO);
    List<MinorChildDTO> minorChildren = new ArrayList<>();
    minorChildren.add(minorChildDTO);
    expectedRfa1aFormDTO.setMinorChildren(minorChildren);
    List<OtherAdultDTO> otherAdults = new ArrayList<>();
    otherAdults.add(otherAdultDTO);
    expectedRfa1aFormDTO.setOtherAdults(otherAdults);
    expectedRfa1aFormDTO.setApplicantsHistory(applicantsHistoryDTO);
    expectedRfa1aFormDTO.setChildDesired(childDesiredDTO);
    expectedRfa1aFormDTO.setAdoptionHistory(adoptionHistoryDTO);
    expectedRfa1aFormDTO.setReferences(referencesDTO);
    expectedRfa1aFormDTO.setApplicantsDeclaration(applicantsDeclarationDTO);
    RFA1aFormDTO getExpandedFormResponse = clientTestRule.target(API.RFA_1A_FORMS + "/" + formId + "?" + API.QueryParams.EXPANDED + "=true").request(MediaType.APPLICATION_JSON).get(RFA1aFormDTO.class);
    assertEqualsResponse(transformDTOtoJSON(expectedRfa1aFormDTO), transformDTOtoJSON(getExpandedFormResponse));
    WebTarget getExpandedCollectionTarget = clientTestRule.target(API.RFA_1A_FORMS + "?" + API.QueryParams.EXPANDED + "=true");
    CollectionDTO<RFA1aFormDTO> getExpandedCollectionResponseForm = getExpandedCollectionTarget.request(MediaType.APPLICATION_JSON).get(new GenericType<CollectionDTO<RFA1aFormDTO>>() {
    });
    Collection<RFA1aFormDTO> filtered = getExpandedCollectionResponseForm.getCollection().stream().filter(b -> b.getId().equals(formId)).collect(Collectors.toCollection(ArrayList::new));
    getExpandedCollectionResponseForm.getCollection().clear();
    getExpandedCollectionResponseForm.getCollection().addAll(filtered);
    List<RFA1aFormDTO> items = new ArrayList<>();
    items.add(expectedRfa1aFormDTO);
    RFA1aFormCollectionDTO expectedExpandedRfa1aFormCollectionResponse = new RFA1aFormCollectionDTO(items);
    assertEqualsResponse(transformDTOtoJSON(expectedExpandedRfa1aFormCollectionResponse), transformDTOtoJSON(getExpandedCollectionResponseForm));
}
Also used : APPLICANTS_HISTORY_FIXTURE(gov.ca.cwds.cals.web.rest.rfa.RFA1aApplicantsHistoryResourceTest.APPLICANTS_HISTORY_FIXTURE) ChildDesiredDTO(gov.ca.cwds.cals.service.dto.rfa.ChildDesiredDTO) BeforeClass(org.junit.BeforeClass) RFA1aFormCollectionDTO(gov.ca.cwds.cals.service.dto.rfa.collection.RFA1aFormCollectionDTO) AssertResponseHelper.assertEqualsResponse(gov.ca.cwds.cals.web.rest.utils.AssertResponseHelper.assertEqualsResponse) ApplicantsRelationshipDTO(gov.ca.cwds.cals.service.dto.rfa.ApplicantsRelationshipDTO) OTHER_ADULTS_FIXTURE(gov.ca.cwds.cals.web.rest.rfa.RFA1aOtherAdultsResourceTest.OTHER_ADULTS_FIXTURE) AdoptionHistoryDTO(gov.ca.cwds.cals.service.dto.rfa.AdoptionHistoryDTO) ArrayList(java.util.ArrayList) APPLICANTS_RELATIONSHIP_FIXTURE(gov.ca.cwds.cals.web.rest.rfa.RFA1aApplicantsRelationshipResourceTest.APPLICANTS_RELATIONSHIP_FIXTURE) MediaType(javax.ws.rs.core.MediaType) MINOR_CHILDREN_FIXTURE(gov.ca.cwds.cals.web.rest.rfa.RFA1aMinorChildrenResourceTest.MINOR_CHILDREN_FIXTURE) REFERENCES_FIXTURE(gov.ca.cwds.cals.web.rest.rfa.RFA1aReferencesResourceTest.REFERENCES_FIXTURE) APPLICANT_FIXTURE2(gov.ca.cwds.cals.web.rest.rfa.RFA1aApplicantResourceTest.APPLICANT_FIXTURE2) Assert.assertNotNull(org.junit.Assert.assertNotNull) Collection(java.util.Collection) ApplicantsDeclarationDTO(gov.ca.cwds.cals.service.dto.rfa.ApplicantsDeclarationDTO) Assert.assertTrue(org.junit.Assert.assertTrue) ApplicantsHistoryDTO(gov.ca.cwds.cals.service.dto.rfa.ApplicantsHistoryDTO) FixtureHelpers(io.dropwizard.testing.FixtureHelpers) Test(org.junit.Test) Collectors(java.util.stream.Collectors) Entity(javax.ws.rs.client.Entity) Assert.assertNotEquals(org.junit.Assert.assertNotEquals) APPLICANTS_DECLARATION_FIXTURE(gov.ca.cwds.cals.web.rest.rfa.RFA1aApplicantsDeclarationResourceTest.APPLICANTS_DECLARATION_FIXTURE) ReferencesDTO(gov.ca.cwds.cals.service.dto.rfa.ReferencesDTO) CollectionDTO(gov.ca.cwds.cals.service.dto.rfa.collection.CollectionDTO) GenericType(javax.ws.rs.core.GenericType) CHILD_DESIRED_FIXTURE(gov.ca.cwds.cals.web.rest.rfa.RFA1aChildDesiredResourceTest.CHILD_DESIRED_FIXTURE) List(java.util.List) API(gov.ca.cwds.cals.Constants.API) Response(javax.ws.rs.core.Response) OtherAdultDTO(gov.ca.cwds.cals.service.dto.rfa.OtherAdultDTO) APPLICANT_FIXTURE(gov.ca.cwds.cals.web.rest.rfa.RFA1aApplicantResourceTest.APPLICANT_FIXTURE) MinorChildDTO(gov.ca.cwds.cals.service.dto.rfa.MinorChildDTO) RFA1aFormDTO(gov.ca.cwds.cals.service.dto.rfa.RFA1aFormDTO) ResidenceDTO(gov.ca.cwds.cals.service.dto.rfa.ResidenceDTO) ApplicantDTO(gov.ca.cwds.cals.service.dto.rfa.ApplicantDTO) WebTarget(javax.ws.rs.client.WebTarget) ADOPTION_HISTORY_FIXTURE(gov.ca.cwds.cals.web.rest.rfa.RFA1aAdoptionHistoryResourceTest.ADOPTION_HISTORY_FIXTURE) RESIDENCE_FIXTURE(gov.ca.cwds.cals.web.rest.rfa.RFA1aResidenceResourceTest.RESIDENCE_FIXTURE) Assert.assertEquals(org.junit.Assert.assertEquals) AdoptionHistoryDTO(gov.ca.cwds.cals.service.dto.rfa.AdoptionHistoryDTO) RFA1aFormCollectionDTO(gov.ca.cwds.cals.service.dto.rfa.collection.RFA1aFormCollectionDTO) RFA1aFormDTO(gov.ca.cwds.cals.service.dto.rfa.RFA1aFormDTO) OtherAdultDTO(gov.ca.cwds.cals.service.dto.rfa.OtherAdultDTO) ApplicantsHistoryDTO(gov.ca.cwds.cals.service.dto.rfa.ApplicantsHistoryDTO) ChildDesiredDTO(gov.ca.cwds.cals.service.dto.rfa.ChildDesiredDTO) ArrayList(java.util.ArrayList) ApplicantDTO(gov.ca.cwds.cals.service.dto.rfa.ApplicantDTO) RFA1aFormCollectionDTO(gov.ca.cwds.cals.service.dto.rfa.collection.RFA1aFormCollectionDTO) CollectionDTO(gov.ca.cwds.cals.service.dto.rfa.collection.CollectionDTO) ResidenceDTO(gov.ca.cwds.cals.service.dto.rfa.ResidenceDTO) ReferencesDTO(gov.ca.cwds.cals.service.dto.rfa.ReferencesDTO) MinorChildDTO(gov.ca.cwds.cals.service.dto.rfa.MinorChildDTO) ApplicantsRelationshipDTO(gov.ca.cwds.cals.service.dto.rfa.ApplicantsRelationshipDTO) WebTarget(javax.ws.rs.client.WebTarget) ApplicantsDeclarationDTO(gov.ca.cwds.cals.service.dto.rfa.ApplicantsDeclarationDTO) Test(org.junit.Test)

Example 5 with MinorChildDTO

use of gov.ca.cwds.cals.service.dto.rfa.MinorChildDTO in project cals-api by ca-cwds.

the class RFA1aRequiredFieldsValidationTest method validateRequiredFieldsForMinorChild.

@Test
public void validateRequiredFieldsForMinorChild() throws Exception {
    RFA1aFormDTO rfa1aForm = prepareValidForm();
    ApplicantDTO firstApplicant = rfa1aForm.getFirstApplicant();
    MinorChildDTO minorChild = buildEmptyMinorChild(firstApplicant);
    minorChild.getRelationshipToApplicants().get(0).setApplicantId(null);
    minorChild = minorChildHelper.postMinorChild(rfa1aForm.getId(), minorChild);
    List<IssueDetails> cvIssues = getIssueDetails(rfa1aForm);
    // "CV000020";
    Assert.assertTrue(cvIssues.stream().anyMatch(id -> id.getCode().equals(REQUIRED_MINOR_CHILD_DATE_OF_BIRTH)));
    // "CV000021";
    Assert.assertTrue(cvIssues.stream().anyMatch(id -> id.getCode().equals(REQUIRED_MINOR_CHILD_GENDER)));
    // "CV000022";
    Assert.assertTrue(cvIssues.stream().anyMatch(id -> id.getCode().equals(REQUIRED_MINOR_CHILD_FINANCIALLY_SUPPORTED)));
    // "CV000023";
    Assert.assertTrue(cvIssues.stream().anyMatch(id -> id.getCode().equals(REQUIRED_MINOR_CHILD_ADOPTED)));
    // "CV000024";
    Assert.assertTrue(cvIssues.stream().anyMatch(id -> id.getCode().equals(REQUIRED_MINOR_CHILD_RELATIONSHIP_APPLICANT_ID)));
}
Also used : JsonProperty(com.fasterxml.jackson.annotation.JsonProperty) Arrays(java.util.Arrays) REQUIRED_OTHER_PEOPLE_IN_RESIDENCE(gov.ca.cwds.cals.Constants.Validation.Business.Code.REQUIRED_OTHER_PEOPLE_IN_RESIDENCE) BeforeClass(org.junit.BeforeClass) REQUIRED_APPLICANT_DRIVER_LICENSE_STATE(gov.ca.cwds.cals.Constants.Validation.Business.Code.REQUIRED_APPLICANT_DRIVER_LICENSE_STATE) PhoneNumberType(gov.ca.cwds.cals.persistence.model.calsns.dictionaries.PhoneNumberType) REQUIRED_APPLICANT_OTHER_NAMES_FIRST_NAME(gov.ca.cwds.cals.Constants.Validation.Business.Code.REQUIRED_APPLICANT_OTHER_NAMES_FIRST_NAME) StateType(gov.ca.cwds.cals.persistence.model.calsns.dictionaries.StateType) IssueDetails(gov.ca.cwds.rest.exception.IssueDetails) REQUIRED_APPLICANT_PHONE_NUMBER(gov.ca.cwds.cals.Constants.Validation.Business.Code.REQUIRED_APPLICANT_PHONE_NUMBER) REQUIRED_PHYSICAL_MAILING_THE_SAME(gov.ca.cwds.cals.Constants.Validation.Business.Code.REQUIRED_PHYSICAL_MAILING_THE_SAME) RFAAddressDTO(gov.ca.cwds.cals.service.dto.rfa.RFAAddressDTO) REQUIRED_MINOR_CHILD_DATE_OF_BIRTH(gov.ca.cwds.cals.Constants.Validation.Business.Code.REQUIRED_MINOR_CHILD_DATE_OF_BIRTH) REQUIRED_MINOR_CHILD_GENDER(gov.ca.cwds.cals.Constants.Validation.Business.Code.REQUIRED_MINOR_CHILD_GENDER) PhoneDTO(gov.ca.cwds.cals.service.dto.rfa.PhoneDTO) REQUIRED_HOME_LANGUAGES(gov.ca.cwds.cals.Constants.Validation.Business.Code.REQUIRED_HOME_LANGUAGES) REQUIRED_WEAPON_IN_HOME_FIELD(gov.ca.cwds.cals.Constants.Validation.Business.Code.REQUIRED_WEAPON_IN_HOME_FIELD) REQUIRED_RESIDENCE_ADDRESS_CITY(gov.ca.cwds.cals.Constants.Validation.Business.Code.REQUIRED_RESIDENCE_ADDRESS_CITY) REQUIRED_RESIDENCE_STREET_ADDRESS(gov.ca.cwds.cals.Constants.Validation.Business.Code.REQUIRED_RESIDENCE_STREET_ADDRESS) REQUIRED_APPLICANT_DRIVER_LICENSE_NUMBER(gov.ca.cwds.cals.Constants.Validation.Business.Code.REQUIRED_APPLICANT_DRIVER_LICENSE_NUMBER) REQUIRED_APPLICANT_DATE_OF_BIRTH(gov.ca.cwds.cals.Constants.Validation.Business.Code.REQUIRED_APPLICANT_DATE_OF_BIRTH) REQUIRED_BODY_OF_WATER_EXIST_FIELD(gov.ca.cwds.cals.Constants.Validation.Business.Code.REQUIRED_BODY_OF_WATER_EXIST_FIELD) REQUIRED_MINOR_CHILD_ADOPTED(gov.ca.cwds.cals.Constants.Validation.Business.Code.REQUIRED_MINOR_CHILD_ADOPTED) IOException(java.io.IOException) Test(org.junit.Test) REQUIRED_MINOR_CHILD_FINANCIALLY_SUPPORTED(gov.ca.cwds.cals.Constants.Validation.Business.Code.REQUIRED_MINOR_CHILD_FINANCIALLY_SUPPORTED) Collectors(java.util.stream.Collectors) Assert.assertNotEquals(org.junit.Assert.assertNotEquals) REQUIRED_RESIDENCE_ADDRESS_ZIP(gov.ca.cwds.cals.Constants.Validation.Business.Code.REQUIRED_RESIDENCE_ADDRESS_ZIP) TypedPersonNameDTO(gov.ca.cwds.cals.service.dto.rfa.TypedPersonNameDTO) List(java.util.List) REQUIRED_MINOR_CHILD_RELATIONSHIP_APPLICANT_ID(gov.ca.cwds.cals.Constants.Validation.Business.Code.REQUIRED_MINOR_CHILD_RELATIONSHIP_APPLICANT_ID) Response(javax.ws.rs.core.Response) MinorChildDTO(gov.ca.cwds.cals.service.dto.rfa.MinorChildDTO) REQUIRED_RESIDENCE_OWNERSHIP(gov.ca.cwds.cals.Constants.Validation.Business.Code.REQUIRED_RESIDENCE_OWNERSHIP) RFA1aFormDTO(gov.ca.cwds.cals.service.dto.rfa.RFA1aFormDTO) ResidenceDTO(gov.ca.cwds.cals.service.dto.rfa.ResidenceDTO) ApplicantDTO(gov.ca.cwds.cals.service.dto.rfa.ApplicantDTO) REQUIRED_APPLICANT_OTHER_NAMES_LAST_NAME(gov.ca.cwds.cals.Constants.Validation.Business.Code.REQUIRED_APPLICANT_OTHER_NAMES_LAST_NAME) Assert(org.junit.Assert) Collections(java.util.Collections) Assert.assertEquals(org.junit.Assert.assertEquals) REQUIRED_RESIDENCE_ADDRESS_STATE(gov.ca.cwds.cals.Constants.Validation.Business.Code.REQUIRED_RESIDENCE_ADDRESS_STATE) AddressType(gov.ca.cwds.cals.persistence.model.calsns.dictionaries.AddressType) RFA1aFormDTO(gov.ca.cwds.cals.service.dto.rfa.RFA1aFormDTO) MinorChildDTO(gov.ca.cwds.cals.service.dto.rfa.MinorChildDTO) IssueDetails(gov.ca.cwds.rest.exception.IssueDetails) ApplicantDTO(gov.ca.cwds.cals.service.dto.rfa.ApplicantDTO) Test(org.junit.Test)

Aggregations

MinorChildDTO (gov.ca.cwds.cals.service.dto.rfa.MinorChildDTO)12 RFA1aFormDTO (gov.ca.cwds.cals.service.dto.rfa.RFA1aFormDTO)8 Test (org.junit.Test)7 ApplicantDTO (gov.ca.cwds.cals.service.dto.rfa.ApplicantDTO)6 Response (javax.ws.rs.core.Response)5 ResidenceDTO (gov.ca.cwds.cals.service.dto.rfa.ResidenceDTO)3 ArrayList (java.util.ArrayList)3 AdoptionHistoryDTO (gov.ca.cwds.cals.service.dto.rfa.AdoptionHistoryDTO)2 ApplicantsDeclarationDTO (gov.ca.cwds.cals.service.dto.rfa.ApplicantsDeclarationDTO)2 ApplicantsHistoryDTO (gov.ca.cwds.cals.service.dto.rfa.ApplicantsHistoryDTO)2 ApplicantsRelationshipDTO (gov.ca.cwds.cals.service.dto.rfa.ApplicantsRelationshipDTO)2 ChildDesiredDTO (gov.ca.cwds.cals.service.dto.rfa.ChildDesiredDTO)2 OtherAdultDTO (gov.ca.cwds.cals.service.dto.rfa.OtherAdultDTO)2 ReferencesDTO (gov.ca.cwds.cals.service.dto.rfa.ReferencesDTO)2 List (java.util.List)2 Collectors (java.util.stream.Collectors)2 WebTarget (javax.ws.rs.client.WebTarget)2 Assert.assertEquals (org.junit.Assert.assertEquals)2 Assert.assertNotEquals (org.junit.Assert.assertNotEquals)2 BeforeClass (org.junit.BeforeClass)2