]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-10614 add Clock to ComputeEngineContainerImpl Level1
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Wed, 2 May 2018 15:53:32 +0000 (17:53 +0200)
committerSonarTech <sonartech@sonarsource.com>
Tue, 15 May 2018 18:20:51 +0000 (20:20 +0200)
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 f062fee4298ead5c3cdf2d5bb9c3ef4beb8c7373..e8ef7188e6a0a3b94549cf6b240db162a0a277fd 100644 (file)
@@ -20,6 +20,7 @@
 package org.sonar.ce.container;
 
 import com.google.common.annotations.VisibleForTesting;
+import java.time.Clock;
 import java.util.List;
 import javax.annotation.CheckForNull;
 import org.sonar.api.SonarQubeSide;
@@ -258,6 +259,7 @@ public class ComputeEngineContainerImpl implements ComputeEngineContainer {
       ServerFileSystemImpl.class,
       new TempFolderProvider(),
       System2.INSTANCE,
+      Clock.systemDefaultZone(),
 
       // user session
       CeUserSession.class,
index d2ff2acdd1e5de994c840a49f75fd26c1c1a0541..819fb4bd4728c546c2c337345e8ee7f397b35101 100644 (file)
@@ -118,7 +118,7 @@ public class ComputeEngineContainerImplTest {
       );
       assertThat(picoContainer.getParent().getParent().getParent().getComponentAdapters()).hasSize(
         COMPONENTS_IN_LEVEL_1_AT_CONSTRUCTION
-          + 26 // level 1
+          + 27 // level 1
           + 54 // content of DaoModule
           + 3 // content of EsModule
           + 59 // content of CorePropertyDefinitions