]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6732 remove DefaultHttpDownloader from CE container
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Thu, 17 Mar 2016 10:06:19 +0000 (11:06 +0100)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Mon, 21 Mar 2016 15:44:05 +0000 (16:44 +0100)
server/sonar-ce/src/main/java/org/sonar/ce/container/ComputeEngineContainerImpl.java
server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java

index 2ba3b853a777e246ad91d85c5e79139131f08291..3b05c1e70475c20c30f25b80e0062e6aafa2f408 100644 (file)
@@ -50,7 +50,6 @@ import org.sonar.core.platform.SonarQubeVersionProvider;
 import org.sonar.core.timemachine.Periods;
 import org.sonar.core.user.DefaultUserFinder;
 import org.sonar.core.user.DeprecatedUserFinder;
-import org.sonar.core.util.DefaultHttpDownloader;
 import org.sonar.core.util.UuidFactoryImpl;
 import org.sonar.db.DaoModule;
 import org.sonar.db.DatabaseChecker;
@@ -197,7 +196,7 @@ public class ComputeEngineContainerImpl implements ComputeEngineContainer {
   private static final Object[] LEVEL_3_COMPONENTS = new Object[] {
     PersistentSettings.class,
     ServerMetadataPersister.class,
-    DefaultHttpDownloader.class,
+//    DefaultHttpDownloader.class, does not make sense to use it from Compute Engine
     UriReader.class,
     ServerIdGenerator.class
   };
index 7310d34be0cabdc4d3ae4070ca29972041099882..10bac84f6b8f69b3088f5db36c65a92416349a89 100644 (file)
@@ -80,7 +80,7 @@ public class ComputeEngineContainerImplTest {
       );
     assertThat(picoContainer.getParent().getComponentAdapters()).hasSize(
       CONTAINER_ITSELF
-      + 5 // level 3
+      + 4 // level 3
       );
     assertThat(picoContainer.getParent().getParent().getComponentAdapters()).hasSize(
       CONTAINER_ITSELF