From: Julien HENRY Date: Mon, 24 Jun 2013 12:34:53 +0000 (+0200) Subject: Fix UT and depends on released version of Sonar X-Git-Tag: 2.5-rc1~127 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ee583e47781be998e4c815c695119780ece64a24;p=sonar-scanner-cli.git Fix UT and depends on released version of Sonar --- diff --git a/pom.xml b/pom.xml index a897296..8d59dd7 100644 --- a/pom.xml +++ b/pom.xml @@ -56,7 +56,7 @@ - 3.7-SNAPSHOT + 3.6-RC4 true diff --git a/sonar-runner-api/src/test/java/org/sonar/runner/api/ForkedRunnerTest.java b/sonar-runner-api/src/test/java/org/sonar/runner/api/ForkedRunnerTest.java index 9a20405..8eade0e 100644 --- a/sonar-runner-api/src/test/java/org/sonar/runner/api/ForkedRunnerTest.java +++ b/sonar-runner-api/src/test/java/org/sonar/runner/api/ForkedRunnerTest.java @@ -37,7 +37,9 @@ import static org.mockito.Matchers.any; import static org.mockito.Matchers.anyLong; import static org.mockito.Matchers.argThat; import static org.mockito.Matchers.eq; -import static org.mockito.Mockito.*; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; public class ForkedRunnerTest { @@ -158,7 +160,7 @@ public class ForkedRunnerTest { runner.execute(); fail(); } catch (IllegalStateException e) { - assertThat(e.getMessage()).matches("Error status \\[command: .*java.*\\]"); + assertThat(e.getMessage()).matches("Error status \\[command: .*java.*\\]: 3"); } } }