Search in sources :

Example 6 with GlobalMode

use of org.sonar.scanner.bootstrap.GlobalMode in project sonarqube by SonarSource.

the class GlobalModeTest method preview_mode_fallback_issues.

@Test
public void preview_mode_fallback_issues() {
    GlobalMode mode = createMode(CoreProperties.ANALYSIS_MODE, CoreProperties.ANALYSIS_MODE_PREVIEW);
    assertThat(mode.isIssues()).isTrue();
    assertThat(mode.isPreview()).isFalse();
}
Also used : GlobalMode(org.sonar.scanner.bootstrap.GlobalMode) Test(org.junit.Test)

Aggregations

GlobalMode (org.sonar.scanner.bootstrap.GlobalMode)6 Test (org.junit.Test)4 GlobalProperties (org.sonar.scanner.bootstrap.GlobalProperties)2 HashMap (java.util.HashMap)1 Before (org.junit.Before)1 PropertyDefinitions (org.sonar.api.config.PropertyDefinitions)1 DefaultAnalysisMode (org.sonar.scanner.analysis.DefaultAnalysisMode)1 GlobalSettings (org.sonar.scanner.bootstrap.GlobalSettings)1