aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap
diff options
context:
space:
mode:
authorMatteo Mara <matteo.mara@sonarsource.com>2024-01-31 16:02:54 +0100
committersonartech <sonartech@sonarsource.com>2024-01-31 20:03:38 +0000
commit737060dc2ce6517ee62d1f8861063aed072467af (patch)
tree835dd4bd3fb373243c7379cdbae2e688baec5bb2 /sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap
parent2ef09d69e1a1eeccd205618191f820c414edd64d (diff)
downloadsonarqube-737060dc2ce6517ee62d1f8861063aed072467af.tar.gz
sonarqube-737060dc2ce6517ee62d1f8861063aed072467af.zip
SONAR-21195 sonar.plugins.downloadOnlyRequired defaults to false if not defined
Diffstat (limited to 'sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap')
-rw-r--r--sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/ScannerPluginRepositoryTest.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/ScannerPluginRepositoryTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/ScannerPluginRepositoryTest.java
index 0c3f7c14a30..131c0a1aa3b 100644
--- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/ScannerPluginRepositoryTest.java
+++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/ScannerPluginRepositoryTest.java
@@ -69,6 +69,7 @@ public class ScannerPluginRepositoryTest {
.thenReturn(ImmutableMap.of("squid", squidInstance))
.thenReturn(ImmutableMap.of("java", javaInstance));
+ when(properties.getBoolean(PLUGIN_LOADING_OPTIMIZATION_KEY)).thenReturn(Optional.of(true));
when(installer.installRequiredPlugins()).thenReturn(globalPlugins);
when(installer.installPluginsForLanguages(anySet())).thenReturn(languagePlugins);