From 457e860fff1600e98bbd04ed59b0e4e90742a63f Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Thu, 13 Jun 2013 18:19:55 +0200 Subject: [PATCH] Fix unit test on windows --- .../org/sonar/wsclient/internal/HttpRequestFactoryTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-ws-client/src/test/java/org/sonar/wsclient/internal/HttpRequestFactoryTest.java b/sonar-ws-client/src/test/java/org/sonar/wsclient/internal/HttpRequestFactoryTest.java index 41100306f7d..dcd8553da77 100644 --- a/sonar-ws-client/src/test/java/org/sonar/wsclient/internal/HttpRequestFactoryTest.java +++ b/sonar-ws-client/src/test/java/org/sonar/wsclient/internal/HttpRequestFactoryTest.java @@ -59,7 +59,7 @@ public class HttpRequestFactoryTest { } catch (Exception e) { assertThat(e).isInstanceOf(IllegalStateException.class); assertThat(e).hasMessage("Fail to request http://localhost:1/api/issues"); - assertThat(e.getCause()).hasMessage("Connection refused"); + assertThat(e.getCause().getMessage()).contains("Connection refused"); } } -- 2.39.5