From ee583e47781be998e4c815c695119780ece64a24 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Mon, 24 Jun 2013 14:34:53 +0200 Subject: [PATCH] Fix UT and depends on released version of Sonar --- pom.xml | 2 +- .../test/java/org/sonar/runner/api/ForkedRunnerTest.java | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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"); } } } -- 2.39.5