use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R00756Test method testPrimaryRelationshipStartDateEqBirthDate.
@Test
public void testPrimaryRelationshipStartDateEqBirthDate() throws Exception {
Client client = client(SOME_DATE);
checkRuleSatisfied(dto(client, primaryRelationship("Aaqj06L00h", client, "AapJGAU04Z", SOME_DATE)), RULE_NAME);
}
use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R00756Test method testPrimaryRelationshipBirthDateNull.
@Test
public void testPrimaryRelationshipBirthDateNull() throws Exception {
Client client = client(null);
checkRuleSatisfied(dto(client, primaryRelationship("Aaqj06L00h", client, "AapJGAU04Z", SOME_DATE)), RULE_NAME);
}
use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R00756Test method testSecondaryRelationshipStartDateLtBirthDate.
@Test
public void testSecondaryRelationshipStartDateLtBirthDate() throws Exception {
Client client = client(SOME_DATE);
checkRuleViolatedOnce(dto(client, secondaryRelationship("Aaqj06L00h", "AapJGAU04Z", 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 R00756Test method testTwoRelationshipsStartDateLtBirthDate.
@Test
public void testTwoRelationshipsStartDateLtBirthDate() throws Exception {
Client client = client(SOME_DATE);
checkRuleViolated(dto(client, primaryRelationship("Aaqj06L00h", client, "AckXIhU0QO", SOME_DATE.minusDays(1)), secondaryRelationship("AasRx3r0Ha", "AcqEeTo0Ql", 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 R02127Test method birthDateNotSet.
@Test
public void birthDateNotSet() throws Exception {
Client client = new Client();
client.setIdentifier(CLIENT_IDENTIFIER);
clientEntityAwareDTO.setEntity(client);
List<MedicalEligibilityApplication> medicalEligibilityApplications = generateListOfValidMedicalEligibilityApplications();
clientEntityAwareDTO.getMedicalEligibilityApplications().addAll(medicalEligibilityApplications);
checkRuleSatisfied(RULE_NAME);
}
Aggregations