]> source.dussan.org Git - sonarqube.git/commitdiff
Try to fix unit test on Windows
authorJulien HENRY <julien.henry@sonarsource.com>
Wed, 3 Sep 2014 07:04:00 +0000 (09:04 +0200)
committerJulien HENRY <julien.henry@sonarsource.com>
Wed, 3 Sep 2014 07:04:41 +0000 (09:04 +0200)
sonar-plugin-api/src/test/java/org/sonar/api/batch/sensor/duplication/DuplicationGroupTest.java

index 983454039129be2648a81f5515060d0eec72c415..8b920962495ff115e681b9cb633f75a7a086b693 100644 (file)
@@ -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]]");
   }
 
 }