diff options
author | Matteo Mara <matteo.mara@sonarsource.com> | 2023-12-22 10:28:19 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-12-22 20:03:00 +0000 |
commit | de13888bbd8de8876000c9c1ca9868eb4a9f1dc3 (patch) | |
tree | f2119c9ec88c391f11cc3dc9c71694233cc0919e /sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap | |
parent | a0a2140e3079d811a25c2487c55e36b728ab7c6e (diff) | |
download | sonarqube-de13888bbd8de8876000c9c1ca9868eb4a9f1dc3.tar.gz sonarqube-de13888bbd8de8876000c9c1ca9868eb4a9f1dc3.zip |
Revert "SONAR-21197 add a property to enable the download of the required plugins only"
This reverts commit fcde75e36903ef10c8f9dfca0f22d57bf19b3281.
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 a91426dad85..5fdb95cae22 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,7 +47,6 @@ 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 { @@ -91,8 +90,9 @@ public class ScannerPluginRepositoryTest { } @Test - public void should_install_all_plugins_when_downloadOnlyRequired_flag_is_false() { - when(properties.getBoolean(PLUGIN_LOADING_OPTIMIZATION_KEY)).thenReturn(Optional.of(false)); + public void should_install_all_plugins_when_loadall_flag_is_set() { + when(properties.getBoolean("sonar.plugins.loadAll")).thenReturn(Optional.of(true)); + underTest.start(); verify(installer).installAllPlugins(); |