diff options
author | Lukasz Jarocki <lukasz.jarocki@sonarsource.com> | 2022-04-19 11:36:02 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-04-29 20:03:18 +0000 |
commit | 20537fc4569b2b47d04ae52ee12ed8e825285884 (patch) | |
tree | 92e662e2c45a06ba4ccc6bd1244f217972e787af /sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/PluginFilesTest.java | |
parent | 9c4c096067a9f2ba3f4b4fcf6af61957d369e570 (diff) | |
download | sonarqube-20537fc4569b2b47d04ae52ee12ed8e825285884.tar.gz sonarqube-20537fc4569b2b47d04ae52ee12ed8e825285884.zip |
SONAR-16260 scanner passing new context header - projectKey
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.java | 5 |
1 files changed, 4 insertions, 1 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 2d42f7bded5..0c726b4035a 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,6 +47,7 @@ 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; @@ -56,6 +57,7 @@ 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 { @@ -71,7 +73,8 @@ public class PluginFilesTest { public void setUp() throws Exception { 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); + DefaultScannerWsClient wsClient = new DefaultScannerWsClient(WsClientFactories.getDefault().newClient(connector), false, + analysisMode, mock(ScannerProperties.class)); userHome = temp.newFolder(); MapSettings settings = new MapSettings(); |