use of org.forgerock.openam.services.baseurl.BaseURLProviderFactory in project OpenAM by OpenRock.
the class PendingRequestsServiceTest method setup.
@SuppressWarnings("unchecked")
@BeforeMethod
public void setup() throws Exception {
initMocks(this);
UmaProviderSettingsFactory settingsFactory = mock(UmaProviderSettingsFactory.class);
given(settingsFactory.get(anyString())).willReturn(settings);
BaseURLProviderFactory baseUrlProviderFactory = mock(BaseURLProviderFactory.class);
given(baseUrlProviderFactory.get(anyString())).willReturn(baseUrlProvider);
CoreWrapper coreWrapper = mock(CoreWrapper.class);
given(coreWrapper.getIdentity(RESOURCE_OWNER_ID, REALM)).willReturn(resourceOwnerIdentity);
service = new PendingRequestsService(store, auditLogger, settingsFactory, emailService, pendingRequestEmailTemplate, policyService, baseUrlProviderFactory, coreWrapper);
}
Aggregations