Search in sources :

Example 1 with BaseIdentityProvider

use of org.sonar.api.server.authentication.BaseIdentityProvider in project sonarqube by SonarSource.

the class UserSessionInitializerTest method newBasicIdentityProvider.

private static BaseIdentityProvider newBasicIdentityProvider(String name) {
    BaseIdentityProvider mock = mock(BaseIdentityProvider.class);
    when(mock.getName()).thenReturn(name);
    return mock;
}
Also used : BaseIdentityProvider(org.sonar.api.server.authentication.BaseIdentityProvider)

Example 2 with BaseIdentityProvider

use of org.sonar.api.server.authentication.BaseIdentityProvider in project sonarqube by SonarSource.

the class AuthenticationEventSourceTest method newBasicIdentityProvider.

private static BaseIdentityProvider newBasicIdentityProvider(String name) {
    BaseIdentityProvider mock = mock(BaseIdentityProvider.class);
    when(mock.getName()).thenReturn(name);
    return mock;
}
Also used : BaseIdentityProvider(org.sonar.api.server.authentication.BaseIdentityProvider)

Aggregations

BaseIdentityProvider (org.sonar.api.server.authentication.BaseIdentityProvider)2