use of org.killbill.billing.platform.api.KillbillConfigSource in project killbill by killbill.
the class TestJaxrsBase method beforeSuite.
@BeforeSuite(groups = "slow")
public void beforeSuite() throws Exception {
if (hasFailed()) {
return;
}
super.beforeSuite();
// We need to setup these earlier than other tests because the server is started once in @BeforeSuite
final KillbillConfigSource configSource = getConfigSource(extraPropertiesForTestSuite);
final ConfigSource skifeConfigSource = new ConfigSource() {
@Override
public String getString(final String propertyName) {
return configSource.getString(propertyName);
}
};
final KillbillServerConfig serverConfig = new ConfigurationObjectFactory(skifeConfigSource).build(KillbillServerConfig.class);
listener = new TestKillbillGuiceListener(serverConfig, configSource);
config = new ConfigurationObjectFactory(System.getProperties()).build(HttpServerConfig.class);
server = new HttpServer();
server.configure(config, getListeners(), getFilters());
server.start();
callbackServlet = new CallbackServlet();
callbackServer = new CallbackServer(callbackServlet);
callbackServer.startServer();
}
Aggregations