Search in sources :

Example 1 with BusinessValidationService

use of gov.ca.cwds.cms.data.access.service.BusinessValidationService in project api-core by ca-cwds.

the class BaseDocToolRulesChildClientRelationshipTest method setUp.

@Before
public void setUp() {
    clientCoreService = new ClientCoreService(clientDao);
    businessValidationService = new BusinessValidationService(droolsService);
    awareDTO = new ClientRelationshipAwareDTO();
}
Also used : ClientRelationshipAwareDTO(gov.ca.cwds.cms.data.access.dto.ClientRelationshipAwareDTO) ClientCoreService(gov.ca.cwds.cms.data.access.service.impl.ClientCoreService) BusinessValidationService(gov.ca.cwds.cms.data.access.service.BusinessValidationService) Before(org.junit.Before)

Example 2 with BusinessValidationService

use of gov.ca.cwds.cms.data.access.service.BusinessValidationService in project api-core by ca-cwds.

the class BaseDocToolRulesPlacementHomeTest method setUp.

@Before
public void setUp() {
    businessValidationService = new BusinessValidationService(droolsService);
    placementHomeService = new PlacementHomeCoreService(placementHomeDao);
    placementHomeEntityAwareDTO = prepareSuccessfulPlacementHomeEntityAwareDTO();
}
Also used : PlacementHomeCoreService(gov.ca.cwds.cms.data.access.service.impl.PlacementHomeCoreService) BusinessValidationService(gov.ca.cwds.cms.data.access.service.BusinessValidationService) Before(org.junit.Before)

Example 3 with BusinessValidationService

use of gov.ca.cwds.cms.data.access.service.BusinessValidationService 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());
}
Also used : SubstituteCareProviderCoreService(gov.ca.cwds.cms.data.access.service.impl.SubstituteCareProviderCoreService) SCPEntityAwareDTO(gov.ca.cwds.cms.data.access.dto.SCPEntityAwareDTO) ExtendedSCPEntityAwareDTO(gov.ca.cwds.cms.data.access.dto.ExtendedSCPEntityAwareDTO) BusinessValidationService(gov.ca.cwds.cms.data.access.service.BusinessValidationService) ExtendedSCPEntityAwareDTO(gov.ca.cwds.cms.data.access.dto.ExtendedSCPEntityAwareDTO) PlacementHomeInformation(gov.ca.cwds.data.legacy.cms.entity.PlacementHomeInformation) SubstituteCareProvider(gov.ca.cwds.data.legacy.cms.entity.SubstituteCareProvider) Before(org.junit.Before)

Example 4 with BusinessValidationService

use of gov.ca.cwds.cms.data.access.service.BusinessValidationService in project api-core by ca-cwds.

the class BaseDocToolRulesClientTest method setUp.

@Before
public void setUp() {
    businessValidationService = new BusinessValidationService(droolsService);
    clientCoreService = getClientCoreService();
    clientEntityAwareDTO = getAwareDTO();
}
Also used : BusinessValidationService(gov.ca.cwds.cms.data.access.service.BusinessValidationService) Before(org.junit.Before)

Aggregations

BusinessValidationService (gov.ca.cwds.cms.data.access.service.BusinessValidationService)4 Before (org.junit.Before)4 ClientRelationshipAwareDTO (gov.ca.cwds.cms.data.access.dto.ClientRelationshipAwareDTO)1 ExtendedSCPEntityAwareDTO (gov.ca.cwds.cms.data.access.dto.ExtendedSCPEntityAwareDTO)1 SCPEntityAwareDTO (gov.ca.cwds.cms.data.access.dto.SCPEntityAwareDTO)1 ClientCoreService (gov.ca.cwds.cms.data.access.service.impl.ClientCoreService)1 PlacementHomeCoreService (gov.ca.cwds.cms.data.access.service.impl.PlacementHomeCoreService)1 SubstituteCareProviderCoreService (gov.ca.cwds.cms.data.access.service.impl.SubstituteCareProviderCoreService)1 PlacementHomeInformation (gov.ca.cwds.data.legacy.cms.entity.PlacementHomeInformation)1 SubstituteCareProvider (gov.ca.cwds.data.legacy.cms.entity.SubstituteCareProvider)1