use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R05814_1Test method testRemovalDateEqBirthDate.
@Test
public void testRemovalDateEqBirthDate() throws Exception {
Client client = client(SOME_DATE);
checkRuleSatisfied(dto(client, placementEpisode(client, SOME_DATE)), RULE_NAME);
}
use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R05814_1Test method testRemovalDateLtBirthDate.
@Test
public void testRemovalDateLtBirthDate() throws Exception {
Client client = client(SOME_DATE);
checkRuleViolatedOnce(dto(client, placementEpisode(client, SOME_DATE.minusDays(1))), RULE_NAME);
}
use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R05814_1Test method client.
public static Client client(LocalDate birthDate) {
Client client = new Client();
client.setIdentifier("ChIlDS40FG");
client.setBirthDate(birthDate);
return client;
}
use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R05814_2Test method testPetitionFiledDateLtBirthDate.
@Test
public void testPetitionFiledDateLtBirthDate() throws Exception {
Client client = client(SOME_DATE);
checkRuleViolatedOnce(dto(client, placementEpisode(client, SOME_DATE.minusDays(1))), RULE_NAME);
}
use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R05814_2Test method client.
public static Client client(LocalDate birthDate) {
Client client = new Client();
client.setIdentifier("ChIlDS40FG");
client.setBirthDate(birthDate);
return client;
}
Aggregations