aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-server-benchmarks
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-server-benchmarks')
-rw-r--r--server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceDbBenchmarkTest.java6
-rw-r--r--server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceIndexBenchmarkTest.java6
2 files changed, 6 insertions, 6 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 5c7f6d8b3cb..d1fc9e4b36d 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
@@ -31,7 +31,7 @@ import org.slf4j.LoggerFactory;
import org.sonar.api.utils.System2;
import org.sonar.api.utils.internal.Uuids;
import org.sonar.db.DbTester;
-import org.sonar.db.FileSources;
+import org.sonar.db.protobuf.DbFileSources;
import org.sonar.db.source.FileSourceDao;
import org.sonar.db.source.FileSourceDto;
import org.sonar.server.source.index.FileSourcesUpdaterHelper;
@@ -110,8 +110,8 @@ public class SourceDbBenchmarkTest {
}
private byte[] generateData() {
- FileSources.Data.Builder dataBuilder = FileSources.Data.newBuilder();
- FileSources.Line.Builder lineBuilder = FileSources.Line.newBuilder();
+ DbFileSources.Data.Builder dataBuilder = DbFileSources.Data.newBuilder();
+ DbFileSources.Line.Builder lineBuilder = DbFileSources.Line.newBuilder();
for (int i = 1; i <= NUMBER_OF_LINES; i++) {
lineBuilder.clear();
dataBuilder.addLines(lineBuilder
diff --git a/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceIndexBenchmarkTest.java b/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceIndexBenchmarkTest.java
index 746f7c1a321..a45f6851771 100644
--- a/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceIndexBenchmarkTest.java
+++ b/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceIndexBenchmarkTest.java
@@ -31,7 +31,7 @@ import org.junit.Rule;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import org.sonar.db.FileSources;
+import org.sonar.db.protobuf.DbFileSources;
import org.sonar.server.es.EsClient;
import org.sonar.server.source.index.FileSourcesUpdaterHelper;
import org.sonar.server.source.index.SourceLineDoc;
@@ -115,8 +115,8 @@ public class SourceIndexBenchmarkTest {
private final int nbLinesPerFile;
private int currentProject = 0;
private AtomicLong count = new AtomicLong(0L);
- private final FileSources.Data.Builder dataBuilder = FileSources.Data.newBuilder();
- private final FileSources.Line.Builder lineBuilder = FileSources.Line.newBuilder();
+ private final DbFileSources.Data.Builder dataBuilder = DbFileSources.Data.newBuilder();
+ private final DbFileSources.Line.Builder lineBuilder = DbFileSources.Line.newBuilder();
SourceIterator(long nbFiles, int nbLinesPerFile) {
this.nbFiles = nbFiles;