diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-04-30 08:44:26 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-04-30 08:44:26 +0200 |
commit | 4e3aacded9ad99c4a746f4467554ea25c7e9a14f (patch) | |
tree | 5523bc276b9ee37d7ad7d4fc6bdd850071ee2bcb /server/sonar-server-benchmarks | |
parent | 7e1ea5d43a0fd5231baddfc22bc4c76209622968 (diff) | |
download | sonarqube-4e3aacded9ad99c4a746f4467554ea25c7e9a14f.tar.gz sonarqube-4e3aacded9ad99c4a746f4467554ea25c7e9a14f.zip |
Fix benchmarck test because of new type in file_sources
Diffstat (limited to 'server/sonar-server-benchmarks')
-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; } |