use of gov.ca.cwds.data.legacy.cms.entity.PlacementHome in project api-core by ca-cwds.
the class R04966Test method testPyeFstnmValid.
@Test
public void testPyeFstnmValid() {
PlacementHome placementHome = new PlacementHome();
placementHome.setPyeFstnm("A1A");
placementHomeEntityAwareDTO.setEntity(placementHome);
assertValid("R-04966");
}
use of gov.ca.cwds.data.legacy.cms.entity.PlacementHome in project api-core by ca-cwds.
the class R04966Test method testLaPLstnmInvalid.
@Test
public void testLaPLstnmInvalid() {
PlacementHome placementHome = new PlacementHome();
placementHome.setLaPLstnm("11");
placementHomeEntityAwareDTO.setEntity(placementHome);
check("R-04966");
}
use of gov.ca.cwds.data.legacy.cms.entity.PlacementHome in project api-core by ca-cwds.
the class R04966Test method testLaPFstnmValid.
@Test
public void testLaPFstnmValid() {
PlacementHome placementHome = new PlacementHome();
placementHome.setLaPFstnm("A1A");
placementHomeEntityAwareDTO.setEntity(placementHome);
assertValid("R-04966");
}
use of gov.ca.cwds.data.legacy.cms.entity.PlacementHome in project api-core by ca-cwds.
the class R00195Test method testFosterFamilyHomeFacilityType.
@Test
public void testFosterFamilyHomeFacilityType() throws DroolsException {
final PlacementHome placementHome = placementHomeEntityAwareDTO.getEntity();
placementHome.setFacilityType((short) 1416);
placementHome.setLicensrCd(null);
businessValidationService.runDataProcessing(placementHomeEntityAwareDTO, principal, PlacementHomeDroolsConfiguration.DATA_PROCESSING_INSTANCE);
assert placementHome.getLicensrCd().equals("CT");
}
use of gov.ca.cwds.data.legacy.cms.entity.PlacementHome in project api-core by ca-cwds.
the class R00195Test method testResourceFamilyHomeFacilityType.
@Test
public void testResourceFamilyHomeFacilityType() throws DroolsException {
final PlacementHome placementHome = placementHomeEntityAwareDTO.getEntity();
placementHome.setFacilityType((short) 6914);
placementHome.setLicensrCd(null);
businessValidationService.runDataProcessing(placementHomeEntityAwareDTO, principal, PlacementHomeDroolsConfiguration.DATA_PROCESSING_INSTANCE);
assert placementHome.getLicensrCd().equals("CT");
}
Aggregations