Search in sources :

Example 1 with DroolsAuthorizationService

use of gov.ca.cwds.authorizer.drools.DroolsAuthorizationService in project api-core by ca-cwds.

the class ClientResultReadAuthorizerTest method init.

@Before
public void init() {
    MockitoAnnotations.initMocks(this);
    final DroolsService droolsService = new DroolsService();
    final DroolsAuthorizationService droolsAuthorizationService = new DroolsAuthorizationService(droolsService);
    testSubject = new ClientResultReadAuthorizer(droolsAuthorizationService, new ClientResultAuthorizationDroolsConfiguration());
    testSubject.setCountyDeterminationService(clientCountyDeterminationServiceMock);
}
Also used : DroolsAuthorizationService(gov.ca.cwds.authorizer.drools.DroolsAuthorizationService) ClientResultAuthorizationDroolsConfiguration(gov.ca.cwds.authorizer.drools.configuration.ClientResultAuthorizationDroolsConfiguration) DroolsService(gov.ca.cwds.drools.DroolsService) Before(org.junit.Before)

Example 2 with DroolsAuthorizationService

use of gov.ca.cwds.authorizer.drools.DroolsAuthorizationService in project api-core by ca-cwds.

the class SubstituteCareProviderCreateAuthorizerTest method init.

@Before
public void init() {
    MockitoAnnotations.initMocks(this);
    final DroolsService droolsService = new DroolsService();
    final DroolsAuthorizationService droolsAuthorizationService = new DroolsAuthorizationService(droolsService);
    testSubject = new SubstituteCareProviderCreateAuthorizer(droolsAuthorizationService, new SubstituteCareProviderAuthorizationDroolsConfiguration());
}
Also used : DroolsAuthorizationService(gov.ca.cwds.authorizer.drools.DroolsAuthorizationService) SubstituteCareProviderAuthorizationDroolsConfiguration(gov.ca.cwds.authorizer.drools.configuration.SubstituteCareProviderAuthorizationDroolsConfiguration) DroolsService(gov.ca.cwds.drools.DroolsService) Before(org.junit.Before)

Example 3 with DroolsAuthorizationService

use of gov.ca.cwds.authorizer.drools.DroolsAuthorizationService in project api-core by ca-cwds.

the class ClientAbstractReadAuthorizerTest method init.

@Before
public void init() {
    MockitoAnnotations.initMocks(this);
    final DroolsService droolsService = new DroolsService();
    final DroolsAuthorizationService droolsAuthorizationService = new DroolsAuthorizationService(droolsService);
    final ClientAbstractAuthorizationDroolsConfiguration droolsConfiguration = new ClientAbstractAuthorizationDroolsConfiguration();
    testSubject = new ClientAbstractReadAuthorizer(droolsAuthorizationService, droolsConfiguration);
    testSubject.setSensitivityDeterminationService(clientSensitivityDeterminationService);
    testSubject.setCountyDeterminationService(clientCountyDeterminationService);
}
Also used : DroolsAuthorizationService(gov.ca.cwds.authorizer.drools.DroolsAuthorizationService) DroolsService(gov.ca.cwds.drools.DroolsService) ClientAbstractAuthorizationDroolsConfiguration(gov.ca.cwds.authorizer.drools.configuration.ClientAbstractAuthorizationDroolsConfiguration) Before(org.junit.Before)

Example 4 with DroolsAuthorizationService

use of gov.ca.cwds.authorizer.drools.DroolsAuthorizationService in project api-core by ca-cwds.

the class PlacementHomeCreateAuthorizerTest method init.

@Before
public void init() {
    MockitoAnnotations.initMocks(this);
    final DroolsService droolsService = new DroolsService();
    final DroolsAuthorizationService droolsAuthorizationService = new DroolsAuthorizationService(droolsService);
    testSubject = new PlacementHomeCreateAuthorizer(droolsAuthorizationService, new PlacementHomeAuthorizationDroolsConfiguration());
}
Also used : DroolsAuthorizationService(gov.ca.cwds.authorizer.drools.DroolsAuthorizationService) PlacementHomeAuthorizationDroolsConfiguration(gov.ca.cwds.authorizer.drools.configuration.PlacementHomeAuthorizationDroolsConfiguration) DroolsService(gov.ca.cwds.drools.DroolsService) Before(org.junit.Before)

Aggregations

DroolsAuthorizationService (gov.ca.cwds.authorizer.drools.DroolsAuthorizationService)4 DroolsService (gov.ca.cwds.drools.DroolsService)4 Before (org.junit.Before)4 ClientAbstractAuthorizationDroolsConfiguration (gov.ca.cwds.authorizer.drools.configuration.ClientAbstractAuthorizationDroolsConfiguration)1 ClientResultAuthorizationDroolsConfiguration (gov.ca.cwds.authorizer.drools.configuration.ClientResultAuthorizationDroolsConfiguration)1 PlacementHomeAuthorizationDroolsConfiguration (gov.ca.cwds.authorizer.drools.configuration.PlacementHomeAuthorizationDroolsConfiguration)1 SubstituteCareProviderAuthorizationDroolsConfiguration (gov.ca.cwds.authorizer.drools.configuration.SubstituteCareProviderAuthorizationDroolsConfiguration)1