use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R05814_2Test method testTwoPetitionFiledDatesLtBirthDate.
@Test
public void testTwoPetitionFiledDatesLtBirthDate() throws Exception {
Client client = client(SOME_DATE);
checkRuleViolated(dto(client, placementEpisode(client, SOME_DATE.minusDays(1)), placementEpisode(client, SOME_DATE.minusDays(2))), RULE_NAME, 2);
}
use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R05816Test method client.
public static Client client(Gender gender) {
Client client = new Client();
client.setIdentifier("ChIlDS40FG");
client.setGender(gender);
return client;
}
use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R00738Test method testCreationDateEqBirthDate.
@Test
public void testCreationDateEqBirthDate() throws Exception {
Client client = new Client();
client.setCreationDate(LocalDate.of(2018, 1, 3));
client.setBirthDate(LocalDate.of(2018, 1, 3));
checkRuleSatisfied(client, RULE_NAME);
}
use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R00741Test method testLanguagesAreDifferent.
@Test
public void testLanguagesAreDifferent() throws Exception {
Client client = new Client();
client.setPrimaryLanguageCode((short) 1);
client.setSecondaryLanguageCode((short) 2);
checkRuleSatisfied(client, RULE_NAME);
}
use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R00741Test method testLanguagesAreUnknown.
@Test
public void testLanguagesAreUnknown() throws Exception {
Client client = new Client();
client.setPrimaryLanguageCode((short) 0);
client.setSecondaryLanguageCode((short) 0);
checkRuleSatisfied(client, RULE_NAME);
}
Aggregations