private Platform platform;
private File tempDir;
private Object[] components;
+ private Properties initialProps = new Properties();
/**
* Called only when JUnit @Rule or @ClassRule is used.
}
tempDir = createTempDir();
Properties properties = new Properties();
+ properties.putAll(initialProps);
properties.setProperty(CoreProperties.SONAR_HOME, tempDir.getAbsolutePath());
properties.setProperty(DatabaseProperties.PROP_URL, "jdbc:h2:" + tempDir.getAbsolutePath() + "/h2");
platform = new Platform();
return this;
}
+ public ServerTester setProperty(String key, String value) {
+ initialProps.setProperty(key, value);
+ return this;
+ }
+
/**
* Get a component from the platform
*/