aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-server-benchmarks
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-06-10 11:25:13 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-06-10 11:27:07 +0200
commite93a2e2448582c8262fb221d4a2f197bb0e9bb21 (patch)
tree0a46be50d76242511818ed5cb7a26c604e5c256e /server/sonar-server-benchmarks
parent9a2b65ef12ccccda5d4d0bfdd0afad6538252fdc (diff)
downloadsonarqube-e93a2e2448582c8262fb221d4a2f197bb0e9bb21.tar.gz
sonarqube-e93a2e2448582c8262fb221d4a2f197bb0e9bb21.zip
Use DumbComponent builder in tests
Diffstat (limited to 'server/sonar-server-benchmarks')
-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 8074d8204af..c575faa0d95 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
@@ -110,7 +110,7 @@ public class PersistFileSourcesStepTest {
components.add(generateFileReport(writer, fileRef));
project.addChildRef(fileRef);
}
- treeRootHolder.setRoot(new DumbComponent(Component.Type.PROJECT, 1, PROJECT_UUID, "PROJECT", components.toArray(new Component[components.size()])));
+ treeRootHolder.setRoot(DumbComponent.builder(Component.Type.PROJECT, 1).setUuid(PROJECT_UUID).setKey("PROJECT").build());
writer.writeComponent(project.build());
@@ -135,7 +135,7 @@ public class PersistFileSourcesStepTest {
writer.writeComponentSymbols(fileRef, lineData.symbols);
writer.writeComponentDuplications(fileRef, lineData.duplications);
- return new DumbComponent(Component.Type.FILE, fileRef, Uuids.create(), "PROJECT:" + fileRef);
+ return DumbComponent.builder(Component.Type.FILE, fileRef).setUuid(Uuids.create()).setKey("PROJECT:" + fileRef).build();
}
private static class LineData {