Fix UnnecessaryAssignment by removing @Mock from authConfig authConfig is initialized manually in the test. Remove the @Mock annotation to avoid conflicting with Mockito’s automatic injection. Change-Id: I6b8ace8beace4c7ea42ba30378eed942ba68a731
diff --git a/src/test/java/com/googlesource/gerrit/plugins/download/DownloadCommandTest.java b/src/test/java/com/googlesource/gerrit/plugins/download/DownloadCommandTest.java index aeb7008..11bd210 100644 --- a/src/test/java/com/googlesource/gerrit/plugins/download/DownloadCommandTest.java +++ b/src/test/java/com/googlesource/gerrit/plugins/download/DownloadCommandTest.java
@@ -36,7 +36,6 @@ import org.eclipse.jgit.lib.Config; import org.junit.Before; import org.junit.Ignore; -import org.mockito.Mock; import org.mockito.Mockito; @Ignore @@ -107,7 +106,7 @@ protected SshScheme sshScheme; protected Provider<String> urlProvider; protected Provider<CurrentUser> userProvider; - protected @Mock AuthConfig authConfig; + protected AuthConfig authConfig; public DownloadCommandTest() { super();