From b811d8eaa4bce4d6bdd5ec7164ecb4ad5fa979c8 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Tue, 3 Oct 2017 16:39:32 +0200 Subject: SONAR-9770 Stop listing deprecated modes --- .../scanner/bootstrap/GlobalAnalysisModeTest.java | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'sonar-scanner-engine/src/test/java/org/sonar/scanner') diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/GlobalAnalysisModeTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/GlobalAnalysisModeTest.java index 0581e431f88..faec85f05ea 100644 --- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/GlobalAnalysisModeTest.java +++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/GlobalAnalysisModeTest.java @@ -32,26 +32,10 @@ public class GlobalAnalysisModeTest { @Rule public ExpectedException thrown = ExpectedException.none(); - @Test - public void testModeNotSupported() { - thrown.expect(IllegalStateException.class); - thrown.expectMessage("[preview, publish, issues]"); - - createMode(CoreProperties.ANALYSIS_MODE, "invalid"); - } - - @Test - public void incremental_mode_no_longer_valid() { - thrown.expect(IllegalStateException.class); - thrown.expectMessage("This mode was removed in SonarQube 5.2"); - - createMode(CoreProperties.ANALYSIS_MODE, CoreProperties.ANALYSIS_MODE_INCREMENTAL); - } - @Test public void invalidate_mode() { thrown.expect(IllegalStateException.class); - thrown.expectMessage("[preview, publish, issues]"); + thrown.expectMessage("Invalid analysis mode: invalid."); createMode(CoreProperties.ANALYSIS_MODE, "invalid"); } -- cgit v1.2.3