use of gov.ca.cwds.data.legacy.cms.entity.ChildClient in project api-core by ca-cwds.
the class R10339Test method testReferralDateLtBirthDate.
@Test
public void testReferralDateLtBirthDate() throws Exception {
ChildClient childClient = childClient(SOME_DATE);
checkRuleViolatedOnce(dto(childClient, healthReferral(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 R10339Test method testReferralDateGtBirthDate.
@Test
public void testReferralDateGtBirthDate() throws Exception {
ChildClient childClient = childClient(SOME_DATE);
checkRuleSatisfied(dto(childClient, healthReferral(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 R10339Test method testBirthDateNull.
@Test
public void testBirthDateNull() throws Exception {
ChildClient childClient = childClient(null);
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 R10339Test 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 ClientTestUtil method childClient.
public static ChildClient childClient(LocalDate birthDate, String clientId) {
ChildClient childClient = new ChildClient();
if (StringUtils.isEmpty(clientId)) {
childClient.setIdentifier(CHILD_CLIENT_ID);
} else {
childClient.setIdentifier(clientId);
}
childClient.setBirthDate(birthDate);
return childClient;
}
Aggregations