use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class R02769Test method nameTypeChangedAndFirstNameChanged.
@Test
public void nameTypeChangedAndFirstNameChanged() throws Exception {
Client client = createDoeClient();
client.setCommonFirstName("FirstName");
Client persistedClient = createClient();
persistedClient.setCommonFirstName("NewFirstName");
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 createClient.
private static Client createClient() {
Client client = new Client();
client.setCommonLastName("DefaultLastName");
client.setCommonFirstName("DefaultFirstName");
client.setSuffixTitleDescription("DefaultSuffixDesc");
NameType nameType = new NameType();
nameType.setShortDescription("AKA");
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 nameTypeDoeAndFirstNameChanged.
@Test
public void nameTypeDoeAndFirstNameChanged() throws Exception {
Client client = createDoeClient();
client.setCommonFirstName("FirstName");
Client persistedClient = createDoeClient();
persistedClient.setCommonFirstName("NewFirstName");
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 nameTypeDoeAndSuffixChanged.
@Test
public void nameTypeDoeAndSuffixChanged() throws Exception {
Client client = createDoeClient();
client.setSuffixTitleDescription("SuffixTitleDescription");
Client persistedClient = createDoeClient();
persistedClient.setCommonLastName("NewSuffixTitleDescription");
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 nameTypeChangedAndSuffixChanged.
@Test
public void nameTypeChangedAndSuffixChanged() throws Exception {
Client client = createDoeClient();
client.setCommonLastName("LastName");
client.setCommonFirstName("FirstName");
client.setSuffixTitleDescription("SuffixTitleDescription");
Client persistedClient = createClient();
persistedClient.setCommonLastName("NewSuffixTitleDescription");
clientEntityAwareDTO.setEntity(client);
clientEntityAwareDTO.setPersistentClientState(persistedClient);
checkRuleSatisfied(RULE_NAME);
}
Aggregations