]> source.dussan.org Git - sonarqube.git/commitdiff
Fix unit test on windows
authorSimon Brandhof <simon.brandhof@gmail.com>
Thu, 13 Jun 2013 16:19:55 +0000 (18:19 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Thu, 13 Jun 2013 16:19:55 +0000 (18:19 +0200)
sonar-ws-client/src/test/java/org/sonar/wsclient/internal/HttpRequestFactoryTest.java

index 41100306f7d7a471f8b33a2c13ef83513e400a6e..dcd8553da77d7c737a67a14b1aa2ea7c150c5297 100644 (file)
@@ -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");
 
     }
   }