aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2015-06-01 12:05:10 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2015-06-04 14:36:03 +0200
commita79d08d705501371a782b7a34e536b155cea9232 (patch)
tree6d8f737406ff20ac45eae6c707fbef70b7c4f693 /server
parent37a018029bb7382f293d20d81e03a2d5e716dfcd (diff)
downloadsonarqube-a79d08d705501371a782b7a34e536b155cea9232.tar.gz
sonarqube-a79d08d705501371a782b7a34e536b155cea9232.zip
SONAR-6569 DumbComponent add constructor without uuid nor key
order of type and ref must be different from the other constructor because of the vararg argument
Diffstat (limited to 'server')
-rw-r--r--server/sonar-server/src/test/java/org/sonar/server/computation/component/DumbComponent.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/sonar-server/src/test/java/org/sonar/server/computation/component/DumbComponent.java b/server/sonar-server/src/test/java/org/sonar/server/computation/component/DumbComponent.java
index b51d4770365..770fb250dcc 100644
--- a/server/sonar-server/src/test/java/org/sonar/server/computation/component/DumbComponent.java
+++ b/server/sonar-server/src/test/java/org/sonar/server/computation/component/DumbComponent.java
@@ -37,6 +37,10 @@ public class DumbComponent implements Component {
private final String key;
private final List<Component> children;
+ public DumbComponent(int ref, Type type, @Nullable Component... children) {
+ this(type, ref, null, null, children);
+ }
+
public DumbComponent(Type type, int ref, @Nullable String uuid, @Nullable String key, @Nullable Component... children) {
this.type = type;
this.ref = ref;