summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2015-07-07 12:02:05 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2015-07-07 12:54:34 +0200
commitf9a3b1915daba76141e07db927951f3b41f1187e (patch)
tree1804388b86a23a639dd738cdab230e8641baaf49 /server
parentb8362a054f2334151e11fb742ed14007d457082e (diff)
downloadsonarqube-f9a3b1915daba76141e07db927951f3b41f1187e.tar.gz
sonarqube-f9a3b1915daba76141e07db927951f3b41f1187e.zip
Refactor dao unit tests to use DbTester.create(System2)
Diffstat (limited to 'server')
-rw-r--r--server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/PersistFileSourcesStepTest.java4
1 files changed, 2 insertions, 2 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 f9ecc562ee9..435ec58a559 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
@@ -36,6 +36,7 @@ import org.sonar.batch.protocol.Constants;
import org.sonar.batch.protocol.output.BatchReport;
import org.sonar.batch.protocol.output.BatchReportWriter;
import org.sonar.db.DbTester;
+import org.sonar.db.source.FileSourceDao;
import org.sonar.server.computation.batch.BatchReportDirectoryHolderImpl;
import org.sonar.server.computation.batch.BatchReportReaderImpl;
import org.sonar.server.computation.batch.TreeRootHolderRule;
@@ -43,7 +44,6 @@ import org.sonar.server.computation.component.Component;
import org.sonar.server.computation.component.DumbComponent;
import org.sonar.server.computation.step.PersistFileSourcesStep;
import org.sonar.server.db.DbClient;
-import org.sonar.db.source.FileSourceDao;
import static org.assertj.core.api.Assertions.assertThat;
@@ -59,7 +59,7 @@ public class PersistFileSourcesStepTest {
public TemporaryFolder temp = new TemporaryFolder();
@Rule
- public DbTester dbTester = new DbTester();
+ public DbTester dbTester = DbTester.create(System2.INSTANCE);
@Rule
public Benchmark benchmark = new Benchmark();