use of gov.ca.cwds.data.legacy.cms.entity.ChildClient in project api-core by ca-cwds.
the class R10326Test method testScreeningDateGtBirthDate.
@Test
public void testScreeningDateGtBirthDate() throws Exception {
ChildClient childClient = childClient(SOME_DATE);
checkRuleSatisfied(dto(childClient, healthScreening(childClient, SOME_DATE.plusDays(1))), RULE_NAME);
}
use of gov.ca.cwds.data.legacy.cms.entity.ChildClient in project api-core by ca-cwds.
the class R10336Test method testTwoConsentOnFileDateLtBirthDate.
@Test
public void testTwoConsentOnFileDateLtBirthDate() throws Exception {
ChildClient childClient = childClient(SOME_DATE);
checkRuleViolated(dto(childClient, healthReferral(childClient, SOME_DATE.minusDays(1)), healthReferral(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 R10336Test method testConsentOnFileDateEqBirthDate.
@Test
public void testConsentOnFileDateEqBirthDate() throws Exception {
ChildClient childClient = childClient(SOME_DATE);
checkRuleSatisfied(dto(childClient, healthReferral(childClient, SOME_DATE)), RULE_NAME);
}
use of gov.ca.cwds.data.legacy.cms.entity.ChildClient in project api-core by ca-cwds.
the class R10336Test method childClient.
public static ChildClient childClient(LocalDate birthDate) {
ChildClient childClient = new ChildClient();
childClient.setIdentifier("ChIlDS40FG");
childClient.setBirthDate(birthDate);
return childClient;
}
use of gov.ca.cwds.data.legacy.cms.entity.ChildClient in project api-core by ca-cwds.
the class R10336Test method testConsentOnFileDateLtBirthDate.
@Test
public void testConsentOnFileDateLtBirthDate() throws Exception {
ChildClient childClient = childClient(SOME_DATE);
checkRuleViolatedOnce(dto(childClient, healthReferral(childClient, SOME_DATE.minusDays(1))), RULE_NAME);
}
Aggregations