props.setProperty("sonarRunner.mode", "fork");
props.setProperty("sonarRunner.fork.jvmArgs", "-Xms128m -Xmx512m");
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");
}
@Test
public void should_create_forked_runner_with_jvm_arguments() {