aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-process
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-06-03 12:22:16 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-06-05 09:54:06 +0200
commit60098df151efa8203affe6ba047a6ea32947d4f0 (patch)
treeb6598a9f977e1ea0ff102e6c9b48381eb7fbb431 /server/sonar-process
parentb44c6c83d99ea2909150fb473c5bf81cf7cdc9be (diff)
downloadsonarqube-60098df151efa8203affe6ba047a6ea32947d4f0.tar.gz
sonarqube-60098df151efa8203affe6ba047a6ea32947d4f0.zip
SONAR-6370 fix quality flaws
Diffstat (limited to 'server/sonar-process')
-rw-r--r--server/sonar-process/src/test/java/org/sonar/process/MinimumViableSystemTest.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/sonar-process/src/test/java/org/sonar/process/MinimumViableSystemTest.java b/server/sonar-process/src/test/java/org/sonar/process/MinimumViableSystemTest.java
index dc2bdf2c4a6..ca2d7f2ce95 100644
--- a/server/sonar-process/src/test/java/org/sonar/process/MinimumViableSystemTest.java
+++ b/server/sonar-process/src/test/java/org/sonar/process/MinimumViableSystemTest.java
@@ -26,6 +26,7 @@ import org.junit.rules.TemporaryFolder;
import java.io.File;
+import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.fail;
public class MinimumViableSystemTest {
@@ -61,7 +62,7 @@ public class MinimumViableSystemTest {
mve.checkJavaVersion("1.9");
fail();
} catch (MessageException e) {
- Assertions.assertThat(e).hasMessage("Supported versions of Java are 1.6, 1.7 and 1.8. Got 1.9.");
+ assertThat(e).hasMessage("Supported versions of Java are 1.6, 1.7 and 1.8. Got 1.9.");
}
}
@@ -76,7 +77,7 @@ public class MinimumViableSystemTest {
mve.checkJavaOptions();
fail();
} catch (MessageException e) {
- Assertions.assertThat(e).hasMessage("JVM option '" + key + "' must be set to 'true'. Got 'false'");
+ assertThat(e).hasMessage("JVM option '" + key + "' must be set to 'true'. Got 'false'");
}
System.setProperty(key, "true");
@@ -96,7 +97,7 @@ public class MinimumViableSystemTest {
mve.checkWritableDir(dir.getAbsolutePath());
fail();
} catch (IllegalStateException e) {
- Assertions.assertThat(e).hasMessage("Temp directory is not writable: " + dir.getAbsolutePath());
+ assertThat(e).hasMessage("Temp directory is not writable: " + dir.getAbsolutePath());
}
}
}