diff options
author | Matteo Mara <matteo.mara@sonarsource.com> | 2023-12-18 17:25:34 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-12-21 20:02:33 +0000 |
commit | 43f2e06d649bd047963863637ad95bdb9fdfa04e (patch) | |
tree | e6ea2773b207f29059d5d253dd6b289a48c9edea /sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap | |
parent | ac97b614d4746f683712851488d88952e06c59fc (diff) | |
download | sonarqube-43f2e06d649bd047963863637ad95bdb9fdfa04e.tar.gz sonarqube-43f2e06d649bd047963863637ad95bdb9fdfa04e.zip |
SONAR-21197 add a property to enable the download of the required plugins only
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.java | 6 |
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 5fdb95cae22..a91426dad85 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(); |