use of org.forgerock.openam.cts.api.tokens.TokenIdGenerator in project OpenAM by OpenRock.
the class OpenAMResourceSetStoreTest method setup.
@BeforeMethod
@SuppressWarnings("unchecked")
public void setup() throws Exception {
dataStore = mock(TokenDataStore.class);
OAuth2ProviderSettingsFactory providerSettingsFactory = mock(OAuth2ProviderSettingsFactory.class);
OAuth2UrisFactory<RealmInfo> oAuth2UrisFactory = mock(OAuth2UrisFactory.class);
OAuth2Uris oAuth2Uris = mock(OAuth2Uris.class);
TokenIdGenerator idGenerator = mock(TokenIdGenerator.class);
store = new OpenAMResourceSetStore("REALM", providerSettingsFactory, oAuth2UrisFactory, idGenerator, dataStore);
given(oAuth2UrisFactory.get(Matchers.<OAuth2Request>anyObject())).willReturn(oAuth2Uris);
given(oAuth2Uris.getResourceSetRegistrationPolicyEndpoint(anyString())).willReturn("POLICY_URI");
}
Aggregations