Search in sources :

Example 1 with UmaProviderSettingsFactory

use of org.forgerock.openam.uma.UmaProviderSettingsFactory in project OpenAM by OpenRock.

the class ResourceSetServiceTest method setup.

@BeforeMethod
public void setup() throws Exception {
    ResourceSetStoreFactory resourceSetStoreFactory = mock(ResourceSetStoreFactory.class);
    resourceSetStore = mock(ResourceSetStore.class);
    policyService = mock(UmaPolicyService.class);
    coreWrapper = mock(CoreWrapper.class);
    UmaProviderSettingsFactory umaProviderSettingsFactory = mock(UmaProviderSettingsFactory.class);
    umaProviderSettings = mock(UmaProviderSettings.class);
    service = new ResourceSetService(resourceSetStoreFactory, policyService, coreWrapper, umaProviderSettingsFactory);
    given(resourceSetStoreFactory.create("REALM")).willReturn(resourceSetStore);
    given(umaProviderSettingsFactory.get("REALM")).willReturn(umaProviderSettings);
}
Also used : CoreWrapper(org.forgerock.openam.core.CoreWrapper) UmaPolicyService(org.forgerock.openam.uma.UmaPolicyService) UmaProviderSettings(org.forgerock.openam.uma.UmaProviderSettings) ResourceSetStore(org.forgerock.oauth2.resources.ResourceSetStore) UmaProviderSettingsFactory(org.forgerock.openam.uma.UmaProviderSettingsFactory) ResourceSetStoreFactory(org.forgerock.openam.oauth2.resources.ResourceSetStoreFactory) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

ResourceSetStore (org.forgerock.oauth2.resources.ResourceSetStore)1 CoreWrapper (org.forgerock.openam.core.CoreWrapper)1 ResourceSetStoreFactory (org.forgerock.openam.oauth2.resources.ResourceSetStoreFactory)1 UmaPolicyService (org.forgerock.openam.uma.UmaPolicyService)1 UmaProviderSettings (org.forgerock.openam.uma.UmaProviderSettings)1 UmaProviderSettingsFactory (org.forgerock.openam.uma.UmaProviderSettingsFactory)1 BeforeMethod (org.testng.annotations.BeforeMethod)1