use of gov.ca.cwds.data.legacy.cms.entity.DasHistory in project api-core by ca-cwds.
the class ClientTestUtil method dasHistory.
public static DasHistory dasHistory(LocalDate startDate) {
DasHistory dasHistory = new DasHistory();
dasHistory.setStartDate(startDate);
return dasHistory;
}
use of gov.ca.cwds.data.legacy.cms.entity.DasHistory in project api-core by ca-cwds.
the class R10538Test method rule10538_satisfied_whenTwoDasHistoriesAfterDOB.
@Test
public void rule10538_satisfied_whenTwoDasHistoriesAfterDOB() throws DroolsException {
// given
final Client client = client(SOME_DATE);
final DasHistory dasHistory0 = dasHistory(SOME_DATE.plusDays(1));
final DasHistory dasHistory1 = dasHistory(SOME_DATE.plusDays(100));
final ChildClientEntityAwareDTO input = dto(client, dasHistory0, dasHistory1);
// when + then
checkRuleSatisfied(input, RULE_NAME);
}
use of gov.ca.cwds.data.legacy.cms.entity.DasHistory in project api-core by ca-cwds.
the class R10538Test method rule10538_violated_whenSingleDasHistoryBeforeDOB.
@Test
public void rule10538_violated_whenSingleDasHistoryBeforeDOB() throws DroolsException {
// given
final Client client = client(SOME_DATE);
final DasHistory dasHistory = dasHistory(SOME_DATE.minusDays(1));
final ChildClientEntityAwareDTO input = dto(client, dasHistory);
// when + then
checkRuleViolatedOnce(input, RULE_NAME);
}
use of gov.ca.cwds.data.legacy.cms.entity.DasHistory in project api-core by ca-cwds.
the class R10538Test method rule10538_satisfied_whenSingleDasHistoryOnDOB.
@Test
public void rule10538_satisfied_whenSingleDasHistoryOnDOB() throws DroolsException {
// given
final Client client = client(SOME_DATE);
final DasHistory dasHistory = dasHistory(SOME_DATE);
final ChildClientEntityAwareDTO input = dto(client, dasHistory);
// when + then
checkRuleSatisfied(input, RULE_NAME);
}
use of gov.ca.cwds.data.legacy.cms.entity.DasHistory in project api-core by ca-cwds.
the class R10538Test method rule10538_satisfied_whenSingleDasHistoryAfterDOB.
@Test
public void rule10538_satisfied_whenSingleDasHistoryAfterDOB() throws DroolsException {
// given
final Client client = client(SOME_DATE);
final DasHistory dasHistory = dasHistory(SOME_DATE.plusDays(100));
final ChildClientEntityAwareDTO input = dto(client, dasHistory);
// when + then
checkRuleSatisfied(input, RULE_NAME);
}
Aggregations