aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/sonar/runner/RunnerTest.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/test/java/org/sonar/runner/RunnerTest.java b/src/test/java/org/sonar/runner/RunnerTest.java
index d69cef8..2752999 100644
--- a/src/test/java/org/sonar/runner/RunnerTest.java
+++ b/src/test/java/org/sonar/runner/RunnerTest.java
@@ -80,8 +80,13 @@ public class RunnerTest {
assertThat(Runner.isUnsupportedVersion("2.4")).isTrue();
assertThat(Runner.isUnsupportedVersion("2.4.1")).isTrue();
assertThat(Runner.isUnsupportedVersion("2.5")).isTrue();
- assertThat(Runner.isUnsupportedVersion("2.11")).isFalse();
- assertThat(Runner.isUnsupportedVersion("3.0")).isFalse();
+ assertThat(Runner.isUnsupportedVersion("2.11")).isTrue();
+ assertThat(Runner.isUnsupportedVersion("3.0")).isTrue();
+ assertThat(Runner.isUnsupportedVersion("3.1")).isTrue();
+ assertThat(Runner.isUnsupportedVersion("3.2")).isTrue();
+ assertThat(Runner.isUnsupportedVersion("3.3")).isTrue();
+ assertThat(Runner.isUnsupportedVersion("3.4")).isTrue();
+ assertThat(Runner.isUnsupportedVersion("3.5")).isFalse();
}
@Test
@@ -171,13 +176,13 @@ public class RunnerTest {
Bootstrapper bootstrapper = mock(Bootstrapper.class);
// nothing happens, OK
- when(bootstrapper.getServerVersion()).thenReturn("3.1");
+ when(bootstrapper.getServerVersion()).thenReturn("3.5");
runner.checkSonarVersion(bootstrapper);
// but fails with older versions
when(bootstrapper.getServerVersion()).thenReturn("2.1");
thrown.expect(RunnerException.class);
- thrown.expectMessage("Sonar 2.1 is not supported. Please upgrade Sonar to version 2.11 or more.");
+ thrown.expectMessage("Sonar 2.1 is not supported. Please upgrade Sonar to version 3.5 or more.");
runner.checkSonarVersion(bootstrapper);
}