aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-runner-dist/src/test/java/org/sonar/runner/RunnerFactoryTest.java
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2015-06-15 14:59:17 +0200
committerDuarte Meneses <duarte.meneses@sonarsource.com>2015-06-18 17:26:05 +0200
commite4ba9869d57dc4dd92648b5c8406d26fcd550d46 (patch)
tree489e0e87f6b7df0a95095de50d0264ff355fa568 /sonar-runner-dist/src/test/java/org/sonar/runner/RunnerFactoryTest.java
parent5b6747b46db7fef9238e3bbaf66d2822e03d0a6e (diff)
downloadsonar-scanner-cli-e4ba9869d57dc4dd92648b5c8406d26fcd550d46.tar.gz
sonar-scanner-cli-e4ba9869d57dc4dd92648b5c8406d26fcd550d46.zip
SONARUNNER-136 and SONARUNNER-137 - Provide a new API to run several analysis with same process and an interactive mode
Diffstat (limited to 'sonar-runner-dist/src/test/java/org/sonar/runner/RunnerFactoryTest.java')
-rw-r--r--sonar-runner-dist/src/test/java/org/sonar/runner/RunnerFactoryTest.java15
1 files changed, 9 insertions, 6 deletions
diff --git a/sonar-runner-dist/src/test/java/org/sonar/runner/RunnerFactoryTest.java b/sonar-runner-dist/src/test/java/org/sonar/runner/RunnerFactoryTest.java
index 56124d8..4ecd89f 100644
--- a/sonar-runner-dist/src/test/java/org/sonar/runner/RunnerFactoryTest.java
+++ b/sonar-runner-dist/src/test/java/org/sonar/runner/RunnerFactoryTest.java
@@ -38,7 +38,7 @@ public class RunnerFactoryTest {
Runner<?> runner = new RunnerFactory().create(props);
assertThat(runner).isInstanceOf(EmbeddedRunner.class);
- assertThat(runner.properties().get("foo")).isEqualTo("bar");
+ assertThat(runner.globalProperties().get("foo")).isEqualTo("bar");
}
@Test
@@ -49,8 +49,8 @@ public class RunnerFactoryTest {
Runner<?> runner = new RunnerFactory().create(props);
assertThat(runner).isInstanceOf(ForkedRunner.class);
- assertThat(runner.properties().get("foo")).isEqualTo("bar");
- assertThat(((ForkedRunner)runner).jvmArguments()).contains("-Xms128m", "-Xmx512m");
+ assertThat(runner.globalProperties().get("foo")).isEqualTo("bar");
+ assertThat(((ForkedRunner) runner).jvmArguments()).contains("-Xms128m", "-Xmx512m");
}
@Test
@@ -60,7 +60,10 @@ public class RunnerFactoryTest {
Runner<?> runner = new RunnerFactory().create(props);
assertThat(runner).isInstanceOf(ForkedRunner.class);
- assertThat(runner.properties().get("foo")).isEqualTo("bar");
- assertThat(((ForkedRunner)runner).jvmArguments()).isEmpty();
- }
+ assertThat(runner.globalProperties().get("foo")).isEqualTo("bar");
+
+ assertThat(runner).isInstanceOf(ForkedRunner.class);
+ assertThat(runner.globalProperties().get("foo")).isEqualTo("bar");
+ assertThat(((ForkedRunner) runner).jvmArguments()).isEmpty();
+ }
}