diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2013-06-13 18:19:55 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2013-06-13 18:19:55 +0200 |
commit | cbb62583fe6476643e11e269bf510755d290aacd (patch) | |
tree | 3644ba3cafe5e9422aa1831bd27201dd2be119b9 | |
parent | 369d5f239a1debf6aad07ba92a3f6042415f9579 (diff) | |
download | sonarqube-cbb62583fe6476643e11e269bf510755d290aacd.tar.gz sonarqube-cbb62583fe6476643e11e269bf510755d290aacd.zip |
Fix unit test on windows
-rw-r--r-- | sonar-ws-client/src/test/java/org/sonar/wsclient/internal/HttpRequestFactoryTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
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"); } } |