aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-server-benchmarks
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2015-09-30 18:44:04 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2015-10-02 11:48:29 +0200
commit29eab470eb9886f3474d724a0c2f7dcdc7c2d5d1 (patch)
tree4bee016011650b8b7582892dea6993fbd6fb3743 /server/sonar-server-benchmarks
parent38a386c2c3d8a6efdc9129b135b36c39d1cf8c45 (diff)
downloadsonarqube-29eab470eb9886f3474d724a0c2f7dcdc7c2d5d1.tar.gz
sonarqube-29eab470eb9886f3474d724a0c2f7dcdc7c2d5d1.zip
SONAR-6397 Use ScmInfoRepo in PersistFileSourcesStep
Diffstat (limited to 'server/sonar-server-benchmarks')
-rw-r--r--server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/PersistFileSourcesStepTest.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/PersistFileSourcesStepTest.java b/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/PersistFileSourcesStepTest.java
index e57ba565c94..87ad097dbab 100644
--- a/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/PersistFileSourcesStepTest.java
+++ b/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/PersistFileSourcesStepTest.java
@@ -42,8 +42,10 @@ import org.sonar.server.computation.batch.BatchReportReaderImpl;
import org.sonar.server.computation.batch.TreeRootHolderRule;
import org.sonar.server.computation.component.Component;
import org.sonar.server.computation.component.ReportComponent;
+import org.sonar.server.computation.scm.ScmInfoRepositoryImpl;
import org.sonar.server.computation.source.SourceLinesRepositoryImpl;
import org.sonar.server.computation.step.PersistFileSourcesStep;
+import org.sonar.server.source.SourceService;
import static org.assertj.core.api.Assertions.assertThat;
@@ -82,7 +84,10 @@ public class PersistFileSourcesStepTest {
BatchReportDirectoryHolderImpl batchReportDirectoryHolder = new BatchReportDirectoryHolderImpl();
batchReportDirectoryHolder.setDirectory(reportDir);
org.sonar.server.computation.batch.BatchReportReader batchReportReader = new BatchReportReaderImpl(batchReportDirectoryHolder);
- PersistFileSourcesStep step = new PersistFileSourcesStep(dbClient, System2.INSTANCE, treeRootHolder, batchReportReader, new SourceLinesRepositoryImpl(batchReportReader));
+ SourceService sourceService = new SourceService(dbClient, null);
+ ScmInfoRepositoryImpl scmInfoRepository = new ScmInfoRepositoryImpl(batchReportReader, dbClient, sourceService);
+ PersistFileSourcesStep step = new PersistFileSourcesStep(dbClient, System2.INSTANCE, treeRootHolder, batchReportReader,
+ new SourceLinesRepositoryImpl(batchReportReader), scmInfoRepository);
step.execute();
long end = System.currentTimeMillis();