From 690751af03cc5af0902bbd6e2fb2f316866afff3 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Wed, 3 Sep 2014 09:04:00 +0200 Subject: [PATCH] Try to fix unit test on Windows --- .../api/batch/sensor/duplication/DuplicationGroupTest.java | 7 +++---- 1 file 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]]"); } } -- 2.39.5