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);
}
Aggregations