Search in sources :

Example 11 with PlacementHome

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");
}
Also used : PlacementHome(gov.ca.cwds.data.legacy.cms.entity.PlacementHome) OtherAdultsInPlacementHome(gov.ca.cwds.data.legacy.cms.entity.OtherAdultsInPlacementHome) OtherChildrenInPlacementHome(gov.ca.cwds.data.legacy.cms.entity.OtherChildrenInPlacementHome) Test(org.junit.Test)

Example 12 with PlacementHome

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");
}
Also used : PlacementHome(gov.ca.cwds.data.legacy.cms.entity.PlacementHome) OtherAdultsInPlacementHome(gov.ca.cwds.data.legacy.cms.entity.OtherAdultsInPlacementHome) OtherChildrenInPlacementHome(gov.ca.cwds.data.legacy.cms.entity.OtherChildrenInPlacementHome) Test(org.junit.Test)

Example 13 with PlacementHome

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");
}
Also used : PlacementHome(gov.ca.cwds.data.legacy.cms.entity.PlacementHome) OtherAdultsInPlacementHome(gov.ca.cwds.data.legacy.cms.entity.OtherAdultsInPlacementHome) OtherChildrenInPlacementHome(gov.ca.cwds.data.legacy.cms.entity.OtherChildrenInPlacementHome) Test(org.junit.Test)

Example 14 with PlacementHome

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");
}
Also used : PlacementHome(gov.ca.cwds.data.legacy.cms.entity.PlacementHome) Test(org.junit.Test)

Example 15 with PlacementHome

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");
}
Also used : PlacementHome(gov.ca.cwds.data.legacy.cms.entity.PlacementHome) Test(org.junit.Test)

Aggregations

PlacementHome (gov.ca.cwds.data.legacy.cms.entity.PlacementHome)29 Test (org.junit.Test)24 OtherAdultsInPlacementHome (gov.ca.cwds.data.legacy.cms.entity.OtherAdultsInPlacementHome)18 OtherChildrenInPlacementHome (gov.ca.cwds.data.legacy.cms.entity.OtherChildrenInPlacementHome)18 DroolsException (gov.ca.cwds.drools.DroolsException)2 BusinessValidationException (gov.ca.cwds.rest.exception.BusinessValidationException)2 PerryAccount (gov.ca.cwds.security.realm.PerryAccount)2 PrepareForTest (org.powermock.core.classloader.annotations.PrepareForTest)2 UserTransactionImp (com.atomikos.icatch.jta.UserTransactionImp)1 RFA1aFormDTO (gov.ca.cwds.cals.service.dto.rfa.RFA1aFormDTO)1 PlacementHomeEntityAwareDTO (gov.ca.cwds.cms.data.access.dto.PlacementHomeEntityAwareDTO)1 DataAccessServicesException (gov.ca.cwds.cms.data.access.service.DataAccessServicesException)1 BaseDocToolRulesPlacementHomeTest (gov.ca.cwds.cms.data.access.service.impl.placementHome.BaseDocToolRulesPlacementHomeTest)1 PlacementHomeDroolsConfiguration (gov.ca.cwds.cms.data.access.service.rules.PlacementHomeDroolsConfiguration)1 SubstituteCareProvider (gov.ca.cwds.data.legacy.cms.entity.SubstituteCareProvider)1 ExpectedException (gov.ca.cwds.rest.exception.ExpectedException)1 NoResultException (javax.persistence.NoResultException)1 NotSupportedException (javax.transaction.NotSupportedException)1 SystemException (javax.transaction.SystemException)1 UserTransaction (javax.transaction.UserTransaction)1