]> source.dussan.org Git - sonarqube.git/commitdiff
fix UT: otherFileRef must not be set for same file Duplication
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Fri, 6 Nov 2015 16:10:54 +0000 (17:10 +0100)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Mon, 9 Nov 2015 15:34:20 +0000 (16:34 +0100)
server/sonar-server/src/test/java/org/sonar/server/computation/step/PersistDuplicationsStepTest.java

index 40611e6367a74045d3d8276ccc7ea1e91b30fab7..37a0864c4f1efd36e321298d9d31fd6cac8543b0 100644 (file)
@@ -103,7 +103,7 @@ public class PersistDuplicationsStepTest extends BaseStepTest {
         .setEndLine(5)
         .build())
       .addDuplicate(BatchReport.Duplicate.newBuilder()
-        .setOtherFileRef(2).setRange(BatchReport.TextRange.newBuilder()
+        .setRange(BatchReport.TextRange.newBuilder()
           .setStartLine(6)
           .setEndLine(10)
           .build())
@@ -143,7 +143,7 @@ public class PersistDuplicationsStepTest extends BaseStepTest {
         .setEndLine(5)
         .build())
       .addDuplicate(BatchReport.Duplicate.newBuilder()
-        .setOtherFileRef(3).setRange(BatchReport.TextRange.newBuilder()
+        .setRange(BatchReport.TextRange.newBuilder()
           .setStartLine(6)
           .setEndLine(10)
           .build())
@@ -182,7 +182,7 @@ public class PersistDuplicationsStepTest extends BaseStepTest {
         .setEndLine(5)
         .build())
       .addDuplicate(BatchReport.Duplicate.newBuilder()
-        .setOtherFileRef(3).setRange(BatchReport.TextRange.newBuilder()
+        .setRange(BatchReport.TextRange.newBuilder()
           .setStartLine(6)
           .setEndLine(10)
           .build())
@@ -224,7 +224,7 @@ public class PersistDuplicationsStepTest extends BaseStepTest {
         .setEndLine(5)
         .build())
       .addDuplicate(BatchReport.Duplicate.newBuilder()
-        .setOtherFileRef(10).setRange(BatchReport.TextRange.newBuilder()
+        .setRange(BatchReport.TextRange.newBuilder()
           .setStartLine(6)
           .setEndLine(10)
           .build())