use of org.apache.qpid.server.security.auth.manager.oauth2.OAuth2Utils in project OpenAM by OpenRock.
the class DeviceCodeResourceTest method setup.
@BeforeMethod
public void setup() throws Exception {
MockitoAnnotations.initMocks(this);
when(request.getMethod()).thenReturn(Method.POST);
resource = spy(new DeviceCodeResource(tokenStore, mockOAuth2RequestFactory(), clientRegistrationStore, mockProviderSettingsFactory(), baseURLProviderFactory, null, jacksonRepresentationFactory, new OAuth2Utils(jacksonRepresentationFactory)));
when(resource.getRequest()).thenReturn(request);
}
Aggregations