aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/PluginFilesTest.java
diff options
context:
space:
mode:
authorMatteo Mara <matteo.mara@sonarsource.com>2022-05-20 12:18:46 +0200
committersonartech <sonartech@sonarsource.com>2022-05-31 20:02:50 +0000
commit5dc735487ccaa4fd9557a2bc99b1654756c65d8d (patch)
tree163d8c5faf74096c50a87bc6247c0ffac76333e7 /sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/PluginFilesTest.java
parentcc058a386950f69d40a6d422f2927c3f92857724 (diff)
downloadsonarqube-5dc735487ccaa4fd9557a2bc99b1654756c65d8d.tar.gz
sonarqube-5dc735487ccaa4fd9557a2bc99b1654756c65d8d.zip
SONAR-16260 improve project analysis when using project analysis token
Diffstat (limited to 'sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/PluginFilesTest.java')
-rw-r--r--sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/PluginFilesTest.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/PluginFilesTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/PluginFilesTest.java
index 0c726b4035a..d2b7cd4840d 100644
--- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/PluginFilesTest.java
+++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/PluginFilesTest.java
@@ -47,7 +47,6 @@ import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
-import org.sonar.api.batch.fs.internal.DefaultInputProject;
import org.sonar.api.config.internal.MapSettings;
import org.sonar.scanner.bootstrap.ScannerPluginInstaller.InstalledPlugin;
import org.sonarqube.ws.client.HttpConnector;
@@ -57,7 +56,6 @@ import static org.apache.commons.io.FileUtils.moveFile;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import static org.assertj.core.api.ThrowableAssert.ThrowingCallable;
-import static org.mockito.Mockito.mock;
public class PluginFilesTest {
@@ -74,7 +72,7 @@ public class PluginFilesTest {
HttpConnector connector = HttpConnector.newBuilder().url(server.url("/").toString()).build();
GlobalAnalysisMode analysisMode = new GlobalAnalysisMode(new ScannerProperties(Collections.emptyMap()));
DefaultScannerWsClient wsClient = new DefaultScannerWsClient(WsClientFactories.getDefault().newClient(connector), false,
- analysisMode, mock(ScannerProperties.class));
+ analysisMode);
userHome = temp.newFolder();
MapSettings settings = new MapSettings();