use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R00756Test method testSecondaryRelationshipStartDateEqBirthDate.
@Test
public void testSecondaryRelationshipStartDateEqBirthDate() throws Exception {
Client client = client(SOME_DATE);
checkRuleSatisfied(dto(client, secondaryRelationship("Aaqj06L00h", "AapJGAU04Z", client, 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 testPrimaryRelationshipStartDateLtBirthDate.
@Test
public void testPrimaryRelationshipStartDateLtBirthDate() throws Exception {
Client client = client(SOME_DATE);
checkRuleViolatedOnce(dto(client, primaryRelationship("Aaqj06L00h", client, "AapJGAU04Z", 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 testSecondaryRelationshipBirthDateNull.
@Test
public void testSecondaryRelationshipBirthDateNull() throws Exception {
Client client = client(null);
checkRuleSatisfied(dto(client, secondaryRelationship("Aaqj06L00h", "AapJGAU04Z", client, SOME_DATE)), RULE_NAME);
}
use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R02769Test method nameTypeDoeAndLastNameChanged.
@Test
public void nameTypeDoeAndLastNameChanged() throws Exception {
Client client = createDoeClient();
client.setCommonLastName("LastName");
Client persistedClient = createDoeClient();
persistedClient.setCommonLastName("NewLastName");
clientEntityAwareDTO.setEntity(client);
clientEntityAwareDTO.setPersistentClientState(persistedClient);
checkRuleViolatedOnce(RULE_NAME);
}
use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R02769Test method nameTypeDoeAndAllChanged.
@Test
public void nameTypeDoeAndAllChanged() throws Exception {
Client client = createDoeClient();
client.setSuffixTitleDescription("SuffixTitleDescription");
Client persistedClient = createDoeClient();
persistedClient.setCommonLastName("NewLastName");
persistedClient.setCommonFirstName("NewFirstName");
persistedClient.setCommonLastName("NewSuffixTitleDescription");
clientEntityAwareDTO.setEntity(client);
clientEntityAwareDTO.setPersistentClientState(persistedClient);
checkRuleViolatedOnce(RULE_NAME);
}
Aggregations