Search in sources :

Example 26 with ChildClient

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

the class R11126Test method createClient.

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

Example 27 with ChildClient

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

the class R02127Test method initClient.

@Before
public void initClient() {
    ChildClient client = createClient();
    clientEntityAwareDTO.setEntity(client);
}
Also used : ChildClient(gov.ca.cwds.data.legacy.cms.entity.ChildClient) Before(org.junit.Before)

Example 28 with ChildClient

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

the class R02127Test method createClient.

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

Example 29 with ChildClient

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

the class R10104Test method birthDateLessThanTribalDate.

@Test
public void birthDateLessThanTribalDate() throws Exception {
    ChildClient childClient = ClientTestUtil.childClient(CLIENT_BIRTH_DAY, ClientTestUtil.CHILD_CLIENT_ID);
    childClient.setTribalCustomaryAdoptionDate(CLIENT_BIRTH_DAY.plusYears(1));
    clientEntityAwareDTO.setEntity(childClient);
    checkRuleSatisfied(RULE_NAME);
}
Also used : ChildClient(gov.ca.cwds.data.legacy.cms.entity.ChildClient) Test(org.junit.Test)

Example 30 with ChildClient

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

the class R10104Test method tribalDateIsNotPresent.

@Test
public void tribalDateIsNotPresent() throws Exception {
    ChildClient childClient = ClientTestUtil.childClient(CLIENT_BIRTH_DAY, ClientTestUtil.CHILD_CLIENT_ID);
    clientEntityAwareDTO.setEntity(childClient);
    checkRuleSatisfied(RULE_NAME);
}
Also used : 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