use of org.sonar.scanner.analysis.DefaultAnalysisMode in project sonarqube by SonarSource.
the class DefaultAnalysisModeTest method default_publish_mode.
@Test
public void default_publish_mode() {
DefaultAnalysisMode mode = createMode(null);
assertThat(mode.isPublish()).isTrue();
assertThat(mode.scanAllFiles()).isTrue();
}
use of org.sonar.scanner.analysis.DefaultAnalysisMode in project sonarqube by SonarSource.
the class DefaultAnalysisModeTest method support_publish_mode.
@Test
public void support_publish_mode() {
DefaultAnalysisMode mode = createMode(CoreProperties.ANALYSIS_MODE_PUBLISH);
assertThat(mode.isPreview()).isFalse();
assertThat(mode.isPublish()).isTrue();
}
use of org.sonar.scanner.analysis.DefaultAnalysisMode in project sonarqube by SonarSource.
the class DefaultAnalysisModeTest method preview_mode_fallback_issues.
@Test
public void preview_mode_fallback_issues() {
DefaultAnalysisMode mode = createMode(CoreProperties.ANALYSIS_MODE_PREVIEW);
assertThat(mode.isIssues()).isTrue();
assertThat(mode.isPreview()).isFalse();
}
Aggregations