use of gov.ca.cwds.data.legacy.cms.entity.SubstituteCareProvider in project api-core by ca-cwds.
the class BaseDocToolRulesSubstituteCareProviderTest method setUp.
@Before
public void setUp() {
businessValidationService = new BusinessValidationService(droolsService);
SCPEntityAwareDTO scpEntityAwareDTO = new SCPEntityAwareDTO();
entityAwareDTO = new ExtendedSCPEntityAwareDTO(scpEntityAwareDTO);
PlacementHomeInformation placementHomeInformation = new PlacementHomeInformation();
entityAwareDTO.setPlacementHomeInformation(placementHomeInformation);
scpService = new SubstituteCareProviderCoreService(mock(SubstituteCareProviderDao.class));
entityAwareDTO.setEntity(new SubstituteCareProvider());
}
use of gov.ca.cwds.data.legacy.cms.entity.SubstituteCareProvider in project api-core by ca-cwds.
the class R04966Test method testFirstNmValid.
@Test
public void testFirstNmValid() {
SubstituteCareProvider substituteCareProvider = entityAwareDTO.getEntity();
substituteCareProvider.setFirstNm("A1");
checkSuccess("R-04966");
}
use of gov.ca.cwds.data.legacy.cms.entity.SubstituteCareProvider in project api-core by ca-cwds.
the class R04966Test method testMidIniNmValid.
@Test
public void testMidIniNmValid() {
SubstituteCareProvider substituteCareProvider = entityAwareDTO.getEntity();
substituteCareProvider.setMidIniNm("A1");
checkSuccess("R-04966");
}
use of gov.ca.cwds.data.legacy.cms.entity.SubstituteCareProvider in project api-core by ca-cwds.
the class R04966Test method testFirstNmInalid.
@Test
public void testFirstNmInalid() {
SubstituteCareProvider substituteCareProvider = entityAwareDTO.getEntity();
substituteCareProvider.setFirstNm("11");
checkFail("R-04966");
}
use of gov.ca.cwds.data.legacy.cms.entity.SubstituteCareProvider in project api-core by ca-cwds.
the class R04966Test method testLastNmValid.
@Test
public void testLastNmValid() {
SubstituteCareProvider substituteCareProvider = entityAwareDTO.getEntity();
substituteCareProvider.setLastNm("A1");
checkSuccess("R-04966");
}
Aggregations