Search in sources :

Example 41 with ChildClient

use of gov.ca.cwds.data.legacy.cms.entity.ChildClient in project api-core by ca-cwds.

the class R00612Test method createClient.

private ChildClient createClient(LocalDate birthDay) {
    ChildClient client = new ChildClient();
    client.setIdentifier(CLIENT_ID);
    client.setBirthDate(birthDay);
    return client;
}
Also used : ChildClient(gov.ca.cwds.data.legacy.cms.entity.ChildClient)

Example 42 with ChildClient

use of gov.ca.cwds.data.legacy.cms.entity.ChildClient in project api-core by ca-cwds.

the class R02761Test method birthDateNotSet.

@Test
public void birthDateNotSet() throws Exception {
    ChildClient client = new ChildClient();
    client.setIdentifier(CLIENT_IDENTIFIER);
    clientEntityAwareDTO.setEntity(client);
    List<MedicalEligibilityApplication> medicalEligibilityApplications = generateListOfValidMedicalEligibilityApplications();
    clientEntityAwareDTO.getMedicalEligibilityApplications().addAll(medicalEligibilityApplications);
    checkRuleSatisfied(RULE_NAME);
}
Also used : MedicalEligibilityApplication(gov.ca.cwds.data.legacy.cms.entity.MedicalEligibilityApplication) ChildClient(gov.ca.cwds.data.legacy.cms.entity.ChildClient) Test(org.junit.Test)

Aggregations

ChildClient (gov.ca.cwds.data.legacy.cms.entity.ChildClient)42 Test (org.junit.Test)32 BaseCwsCmsInMemoryPersistenceTest (gov.ca.cwds.data.legacy.cms.persistence.BaseCwsCmsInMemoryPersistenceTest)7 Client (gov.ca.cwds.data.legacy.cms.entity.Client)5 FCEligibility (gov.ca.cwds.data.legacy.cms.entity.FCEligibility)3 Timestamp (java.sql.Timestamp)3 OptimisticLockException (javax.persistence.OptimisticLockException)2 Session (org.hibernate.Session)2 Before (org.junit.Before)2 ClientOtherEthnicity (gov.ca.cwds.data.legacy.cms.entity.ClientOtherEthnicity)1 MedicalEligibilityApplication (gov.ca.cwds.data.legacy.cms.entity.MedicalEligibilityApplication)1