aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-runner-batch/src/test/java/org/sonar/runner/batch/IsolatedLauncherTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-runner-batch/src/test/java/org/sonar/runner/batch/IsolatedLauncherTest.java')
-rw-r--r--sonar-runner-batch/src/test/java/org/sonar/runner/batch/IsolatedLauncherTest.java32
1 files changed, 1 insertions, 31 deletions
diff --git a/sonar-runner-batch/src/test/java/org/sonar/runner/batch/IsolatedLauncherTest.java b/sonar-runner-batch/src/test/java/org/sonar/runner/batch/IsolatedLauncherTest.java
index f8fd10c..2108751 100644
--- a/sonar-runner-batch/src/test/java/org/sonar/runner/batch/IsolatedLauncherTest.java
+++ b/sonar-runner-batch/src/test/java/org/sonar/runner/batch/IsolatedLauncherTest.java
@@ -38,38 +38,8 @@ public class IsolatedLauncherTest {
props.setProperty("sonar.projectName", "Sample");
props.setProperty("sonar.projectVersion", "1.0");
props.setProperty("sonar.sources", "src");
- Batch batch = launcher.createBatch(props, Collections.emptyList());
+ Batch batch = launcher.createBatch(props, Collections.emptyList(), null);
assertThat(batch).isNotNull();
}
-
- @Test
- public void testGetSqlLevel() throws Exception {
- assertThat(BatchIsolatedLauncher.getSqlLevel(props)).isEqualTo("WARN");
-
- props.setProperty("sonar.showSql", "true");
- assertThat(BatchIsolatedLauncher.getSqlLevel(props)).isEqualTo("DEBUG");
-
- props.setProperty("sonar.showSql", "false");
- assertThat(BatchIsolatedLauncher.getSqlLevel(props)).isEqualTo("WARN");
- }
-
- @Test
- public void testGetSqlResultsLevel() throws Exception {
- assertThat(BatchIsolatedLauncher.getSqlResultsLevel(props)).isEqualTo("WARN");
-
- props.setProperty("sonar.showSqlResults", "true");
- assertThat(BatchIsolatedLauncher.getSqlResultsLevel(props)).isEqualTo("DEBUG");
-
- props.setProperty("sonar.showSqlResults", "false");
- assertThat(BatchIsolatedLauncher.getSqlResultsLevel(props)).isEqualTo("WARN");
- }
-
- @Test
- public void shouldDetermineVerboseMode() {
- assertThat(launcher.isDebug(props)).isFalse();
-
- props.setProperty("sonar.verbose", "true");
- assertThat(launcher.isDebug(props)).isTrue();
- }
}