]> source.dussan.org Git - sonarqube.git/commitdiff
NO-JIRA fix code smell
authorAurelien Poscia <aurelien.poscia@sonarsource.com>
Thu, 2 May 2024 12:10:28 +0000 (14:10 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 2 May 2024 20:02:38 +0000 (20:02 +0000)
server/sonar-auth-gitlab/src/test/java/org/sonar/auth/gitlab/GitLabIdentityProviderTest.java

index e8316171d97a3d700873ab9e2ea73f3192e1cb99..873d8dc89954814dcc1f228fc3abf5749364510b 100644 (file)
@@ -121,7 +121,6 @@ public class GitLabIdentityProviderTest {
     IllegalStateException exception = new IllegalStateException("GitLab authentication is disabled");
     when(scribeFactory.newScribe(any(), any(), any())).thenThrow(exception);
 
-    OAuth2IdentityProvider.InitContext initContext = mock(OAuth2IdentityProvider.InitContext.class);
     when(initContext.getCallbackUrl()).thenReturn("http://server/callback");
 
     assertThatIllegalStateException()