use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R00742Test method testEmptyListOfOtherEthnicitiesWhenNoPrimary.
@Test
public void testEmptyListOfOtherEthnicitiesWhenNoPrimary() throws Exception {
Client client = new Client();
client.setIdentifier(CLIENT_IDENTIFIER);
client.setPrimaryEthnicityCode((short) 0);
clientEntityAwareDTO.setEntity(client);
checkRuleSatisfied(RULE_NAME);
}
use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R00756Test method testPrimaryRelationshipStartDateNull.
@Test
public void testPrimaryRelationshipStartDateNull() throws Exception {
Client client = client(SOME_DATE);
checkRuleSatisfied(dto(client, primaryRelationship("Aaqj06L00h", client, "AapJGAU04Z", null)), RULE_NAME);
}
use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R00756Test method client.
public static Client client(LocalDate birthDay) {
Client client = new Client();
client.setIdentifier(CLIENT_ID);
client.setBirthDate(birthDay);
return client;
}
use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R00756Test method testSecondaryRelationshipStartDateNull.
@Test
public void testSecondaryRelationshipStartDateNull() throws Exception {
Client client = client(SOME_DATE);
checkRuleSatisfied(dto(client, secondaryRelationship("Aaqj06L00h", "AapJGAU04Z", client, null)), RULE_NAME);
}
use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R00756Test method testSecondaryRelationshipStartDateGtBirthDate.
@Test
public void testSecondaryRelationshipStartDateGtBirthDate() throws Exception {
Client client = client(SOME_DATE);
checkRuleSatisfied(dto(client, secondaryRelationship("Aaqj06L00h", "AapJGAU04Z", client, SOME_DATE.plusDays(1))), RULE_NAME);
}
Aggregations