Search in sources :

Example 1 with BaseURLProviderFactory

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);
}
Also used : CoreWrapper(org.forgerock.openam.core.CoreWrapper) BaseURLProviderFactory(org.forgerock.openam.services.baseurl.BaseURLProviderFactory) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

CoreWrapper (org.forgerock.openam.core.CoreWrapper)1 BaseURLProviderFactory (org.forgerock.openam.services.baseurl.BaseURLProviderFactory)1 BeforeMethod (org.testng.annotations.BeforeMethod)1