diff options
-rw-r--r-- | server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceDbBenchmarkTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceDbBenchmarkTest.java b/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceDbBenchmarkTest.java index eee51ea7830..85726d70af8 100644 --- a/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceDbBenchmarkTest.java +++ b/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceDbBenchmarkTest.java @@ -19,8 +19,6 @@ */ package org.sonar.server.benchmark; -import org.sonar.server.source.db.FileSourceDao; - import org.apache.commons.dbutils.DbUtils; import org.apache.commons.io.IOUtils; import org.junit.Rule; @@ -31,6 +29,7 @@ import org.sonar.api.utils.internal.Uuids; import org.sonar.core.persistence.DbTester; import org.sonar.core.source.db.FileSourceDto; import org.sonar.server.db.DbClient; +import org.sonar.server.source.db.FileSourceDao; import org.sonar.server.source.db.FileSourceDb; import org.sonar.server.source.index.SourceFileResultSetIterator; @@ -112,6 +111,7 @@ public class SourceDbBenchmarkTest { dto.setProjectUuid(PROJECT_UUID); dto.setFileUuid(Uuids.create()); dto.setLineHashes(IOUtils.toString(getClass().getResourceAsStream("SourceDbBenchmarkTest/line_hashes.txt"))); + dto.setDataType(FileSourceDto.Type.SOURCE); return dto; } |