use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R02769Test method nameTypeChangedAndLastNameChanged.
@Test
public void nameTypeChangedAndLastNameChanged() throws Exception {
Client client = createDoeClient();
client.setCommonLastName("LastName");
Client persistedClient = createClient();
persistedClient.setCommonLastName("NewLastName");
clientEntityAwareDTO.setEntity(client);
clientEntityAwareDTO.setPersistentClientState(persistedClient);
checkRuleSatisfied(RULE_NAME);
}
use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R02769Test method createDoeClient.
private static Client createDoeClient() {
Client client = createClient();
NameType nameType = new NameType();
nameType.setShortDescription("Doe");
client.setNameType(nameType);
return client;
}
use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R02769Test method nameTypeDoeAndNothingChanged.
@Test
public void nameTypeDoeAndNothingChanged() throws Exception {
Client client = createDoeClient();
Client persistedClient = createDoeClient();
clientEntityAwareDTO.setEntity(client);
clientEntityAwareDTO.setPersistentClientState(persistedClient);
checkRuleSatisfied(RULE_NAME);
}
use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R05814_1Test method testTwoRemovalDatesLtBirthDate.
@Test
public void testTwoRemovalDatesLtBirthDate() 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 R05814_1Test method testBirthDateNull.
@Test
public void testBirthDateNull() throws Exception {
Client client = client(null);
checkRuleSatisfied(dto(client, placementEpisode(client, SOME_DATE)), RULE_NAME);
}
Aggregations