use of gov.ca.cwds.data.legacy.cms.entity.ChildClient in project api-core by ca-cwds.
the class R10104Test method birthDateGraterThanTribalDate.
@Test
public void birthDateGraterThanTribalDate() throws Exception {
ChildClient childClient = ClientTestUtil.childClient(CLIENT_BIRTH_DAY, ClientTestUtil.CHILD_CLIENT_ID);
childClient.setTribalCustomaryAdoptionDate(CLIENT_BIRTH_DAY.minusYears(1));
clientEntityAwareDTO.setEntity(childClient);
checkRuleViolatedOnce(RULE_NAME);
}
use of gov.ca.cwds.data.legacy.cms.entity.ChildClient in project api-core by ca-cwds.
the class R10104Test method birthDateIsNotPresent.
@Test
public void birthDateIsNotPresent() throws Exception {
ChildClient childClient = ClientTestUtil.childClient(ClientTestUtil.CHILD_CLIENT_ID);
childClient.setTribalCustomaryAdoptionDate(CLIENT_BIRTH_DAY);
clientEntityAwareDTO.setEntity(childClient);
checkRuleSatisfied(RULE_NAME);
}
use of gov.ca.cwds.data.legacy.cms.entity.ChildClient in project api-core by ca-cwds.
the class R10326Test method testTwoScreeningDatesLtBirthDate.
@Test
public void testTwoScreeningDatesLtBirthDate() throws Exception {
ChildClient childClient = childClient(SOME_DATE);
checkRuleViolated(dto(childClient, healthScreening(childClient, SOME_DATE.minusDays(1)), healthScreening(childClient, SOME_DATE.minusDays(2))), RULE_NAME, 2);
}
use of gov.ca.cwds.data.legacy.cms.entity.ChildClient in project api-core by ca-cwds.
the class R10326Test method testScreeningDateLtBirthDate.
@Test
public void testScreeningDateLtBirthDate() throws Exception {
ChildClient childClient = childClient(SOME_DATE);
checkRuleViolatedOnce(dto(childClient, healthScreening(childClient, SOME_DATE.minusDays(1))), RULE_NAME);
}
use of gov.ca.cwds.data.legacy.cms.entity.ChildClient in project api-core by ca-cwds.
the class R10326Test method childClient.
public static ChildClient childClient(LocalDate birthDate) {
ChildClient childClient = new ChildClient();
childClient.setIdentifier("ChIlDS40FG");
childClient.setBirthDate(birthDate);
return childClient;
}
Aggregations