From 6c34d0c9f32390986c0dc67191ae40e218650804 Mon Sep 17 00:00:00 2001 From: Aurelien Poscia Date: Thu, 2 May 2024 14:10:28 +0200 Subject: [PATCH] NO-JIRA fix code smell --- .../java/org/sonar/auth/gitlab/GitLabIdentityProviderTest.java | 1 - 1 file changed, 1 deletion(-) diff --git a/server/sonar-auth-gitlab/src/test/java/org/sonar/auth/gitlab/GitLabIdentityProviderTest.java b/server/sonar-auth-gitlab/src/test/java/org/sonar/auth/gitlab/GitLabIdentityProviderTest.java index e8316171d97..873d8dc8995 100644 --- a/server/sonar-auth-gitlab/src/test/java/org/sonar/auth/gitlab/GitLabIdentityProviderTest.java +++ b/server/sonar-auth-gitlab/src/test/java/org/sonar/auth/gitlab/GitLabIdentityProviderTest.java @@ -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() -- 2.39.5