aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-server-benchmarks
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-07-22 16:59:00 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-07-23 10:46:10 +0200
commit17af5360c394efb1c7e85817c7406ad9f3356b93 (patch)
tree314949a075e52f141df5a637088ac37546a763e8 /server/sonar-server-benchmarks
parent5e36720bed53fd3237cc34935c94a48a83fd25d4 (diff)
downloadsonarqube-17af5360c394efb1c7e85817c7406ad9f3356b93.tar.gz
sonarqube-17af5360c394efb1c7e85817c7406ad9f3356b93.zip
Move protobuf spec of table FILE_SOURCES.BINARY_DATA into sonar-db
Diffstat (limited to 'server/sonar-server-benchmarks')
-rw-r--r--server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceDbBenchmarkTest.java7
-rw-r--r--server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceIndexBenchmarkTest.java6
2 files changed, 6 insertions, 7 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 86663dde0d4..8993301a486 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
@@ -23,7 +23,6 @@ import java.io.IOException;
import java.util.Arrays;
import java.util.Timer;
import java.util.concurrent.atomic.AtomicLong;
-
import org.apache.commons.io.IOUtils;
import org.junit.Rule;
import org.junit.Test;
@@ -32,9 +31,9 @@ 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.source.FileSourceDao;
import org.sonar.db.source.FileSourceDto;
-import org.sonar.server.source.db.FileSourceDb;
import org.sonar.server.source.index.FileSourcesUpdaterHelper;
import org.sonar.server.source.index.SourceLineResultSetIterator;
@@ -111,8 +110,8 @@ public class SourceDbBenchmarkTest {
}
private byte[] generateData() {
- FileSourceDb.Data.Builder dataBuilder = FileSourceDb.Data.newBuilder();
- FileSourceDb.Line.Builder lineBuilder = FileSourceDb.Line.newBuilder();
+ FileSources.Data.Builder dataBuilder = FileSources.Data.newBuilder();
+ FileSources.Line.Builder lineBuilder = FileSources.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 c1c529d7cb0..746f7c1a321 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,8 +31,8 @@ import org.junit.Rule;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import org.sonar.db.FileSources;
import org.sonar.server.es.EsClient;
-import org.sonar.server.source.db.FileSourceDb;
import org.sonar.server.source.index.FileSourcesUpdaterHelper;
import org.sonar.server.source.index.SourceLineDoc;
import org.sonar.server.source.index.SourceLineIndex;
@@ -115,8 +115,8 @@ public class SourceIndexBenchmarkTest {
private final int nbLinesPerFile;
private int currentProject = 0;
private AtomicLong count = new AtomicLong(0L);
- private final FileSourceDb.Data.Builder dataBuilder = FileSourceDb.Data.newBuilder();
- private final FileSourceDb.Line.Builder lineBuilder = FileSourceDb.Line.newBuilder();
+ private final FileSources.Data.Builder dataBuilder = FileSources.Data.newBuilder();
+ private final FileSources.Line.Builder lineBuilder = FileSources.Line.newBuilder();
SourceIterator(long nbFiles, int nbLinesPerFile) {
this.nbFiles = nbFiles;