]> source.dussan.org Git - sonar-scanner-cli.git/commitdiff
Fix UT and depends on released version of Sonar
authorJulien HENRY <julien.henry@sonarsource.com>
Mon, 24 Jun 2013 12:34:53 +0000 (14:34 +0200)
committerJulien HENRY <julien.henry@sonarsource.com>
Mon, 24 Jun 2013 12:34:53 +0000 (14:34 +0200)
pom.xml
sonar-runner-api/src/test/java/org/sonar/runner/api/ForkedRunnerTest.java

diff --git a/pom.xml b/pom.xml
index a897296e276ab79545eaf3487d9e2130819d5a94..8d59dd77e8410945c494cca99e6b1752ef2fc289 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -56,7 +56,7 @@
   </issueManagement>
 
   <properties>
-    <sonar.buildVersion>3.7-SNAPSHOT</sonar.buildVersion>
+    <sonar.buildVersion>3.6-RC4</sonar.buildVersion>
     <maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
   </properties>
 
index 9a2040511ea8d87ef95df13c69fc0baf8deaa069..8eade0e8e3408b46754091fc942a6a46ffe5f67f 100644 (file)
@@ -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");
     }
   }
 }