aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src/test/java
diff options
context:
space:
mode:
authorMatteo Mara <matteo.mara@sonarsource.com>2023-12-18 17:25:34 +0100
committersonartech <sonartech@sonarsource.com>2024-01-04 20:02:48 +0000
commit7839d6e3c8fd4045efca1b4cb76db0709189965f (patch)
tree76f20c06bcce14f9f57200995d788f5f5dad79e6 /sonar-scanner-engine/src/test/java
parentdab9f39a5046d1dfe31e685509085f4079487d52 (diff)
downloadsonarqube-7839d6e3c8fd4045efca1b4cb76db0709189965f.tar.gz
sonarqube-7839d6e3c8fd4045efca1b4cb76db0709189965f.zip
SONAR-21197 add a property to enable the download of the required plugins only
Diffstat (limited to 'sonar-scanner-engine/src/test/java')
-rw-r--r--sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/ScannerPluginRepositoryTest.java6
1 files changed, 3 insertions, 3 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 2fa2343f2e1..0c3f7c14a30 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
@@ -47,6 +47,7 @@ import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
+import static org.sonar.core.config.ScannerProperties.PLUGIN_LOADING_OPTIMIZATION_KEY;
public class ScannerPluginRepositoryTest {
@@ -90,9 +91,8 @@ public class ScannerPluginRepositoryTest {
}
@Test
- public void should_install_all_plugins_when_loadall_flag_is_set() {
- when(properties.getBoolean("sonar.plugins.loadAll")).thenReturn(Optional.of(true));
-
+ public void should_install_all_plugins_when_downloadOnlyRequired_flag_is_false() {
+ when(properties.getBoolean(PLUGIN_LOADING_OPTIMIZATION_KEY)).thenReturn(Optional.of(false));
underTest.start();
verify(installer).installAllPlugins();