aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-09-03 09:04:00 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2014-09-03 09:04:41 +0200
commit690751af03cc5af0902bbd6e2fb2f316866afff3 (patch)
tree813a4d132b6315d2e4bcd88f7f117d685b7990fa /sonar-plugin-api
parent39f52452ee8a3d414dd9f2a4dee3dfffdb082c1d (diff)
downloadsonarqube-690751af03cc5af0902bbd6e2fb2f316866afff3.tar.gz
sonarqube-690751af03cc5af0902bbd6e2fb2f316866afff3.zip
Try to fix unit test on Windows
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/batch/sensor/duplication/DuplicationGroupTest.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/batch/sensor/duplication/DuplicationGroupTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/batch/sensor/duplication/DuplicationGroupTest.java
index 98345403912..8b920962495 100644
--- a/sonar-plugin-api/src/test/java/org/sonar/api/batch/sensor/duplication/DuplicationGroupTest.java
+++ b/sonar-plugin-api/src/test/java/org/sonar/api/batch/sensor/duplication/DuplicationGroupTest.java
@@ -54,10 +54,9 @@ public class DuplicationGroupTest {
assertThat(d1).isNotEqualTo(new DuplicationGroup(new DuplicationGroup.Block("foo", 1, 10)));
assertThat(d1.hashCode()).isEqualTo(578909124);
- assertThat(d1.toString()).contains("[\n" +
- " origin=DuplicationGroup.Block[resourceKey=foo,startLine=1,length=10]\n" +
- " duplicates=[DuplicationGroup.Block[resourceKey=foo,startLine=20,length=10], DuplicationGroup.Block[resourceKey=foo2,startLine=1,length=10]]\n" +
- "]");
+ assertThat(d1.toString()).contains("origin=DuplicationGroup.Block[resourceKey=foo,startLine=1,length=10]");
+ assertThat(d1.toString()).contains(
+ "duplicates=[DuplicationGroup.Block[resourceKey=foo,startLine=20,length=10], DuplicationGroup.Block[resourceKey=foo2,startLine=1,length=10]]");
}
}