use of org.sonar.api.server.authentication.OAuth2IdentityProvider in project sonarqube by SonarSource.
the class AuthenticationEventSourceTest method newOauth2IdentityProvider.
private static OAuth2IdentityProvider newOauth2IdentityProvider(String name) {
OAuth2IdentityProvider mock = mock(OAuth2IdentityProvider.class);
when(mock.getName()).thenReturn(name);
return mock;
}
Aggregations