Search in sources :

Example 1 with HttpServer

use of org.killbill.billing.jetty.HttpServer in project killbill by killbill.

the class TestJaxrsBase method beforeSuite.

@BeforeSuite(groups = "slow")
public void beforeSuite() throws Exception {
    super.beforeSuite();
    if (config == null) {
        config = new ConfigurationObjectFactory(System.getProperties()).build(HttpServerConfig.class);
    }
    if (daoConfig == null) {
        daoConfig = new ConfigurationObjectFactory(skifeConfigSource).build(DaoConfig.class);
    }
    serverConfig = new ConfigurationObjectFactory(skifeConfigSource).build(KillbillServerConfig.class);
    listener = new TestKillbillGuiceListener(serverConfig, configSource);
    server = new HttpServer();
    server.configure(config, getListeners(), getFilters());
    server.start();
}
Also used : DaoConfig(org.killbill.commons.jdbi.guice.DaoConfig) HttpServerConfig(org.killbill.billing.jetty.HttpServerConfig) ConfigurationObjectFactory(org.skife.config.ConfigurationObjectFactory) KillbillServerConfig(org.killbill.billing.server.config.KillbillServerConfig) HttpServer(org.killbill.billing.jetty.HttpServer) BeforeSuite(org.testng.annotations.BeforeSuite)

Aggregations

HttpServer (org.killbill.billing.jetty.HttpServer)1 HttpServerConfig (org.killbill.billing.jetty.HttpServerConfig)1 KillbillServerConfig (org.killbill.billing.server.config.KillbillServerConfig)1 DaoConfig (org.killbill.commons.jdbi.guice.DaoConfig)1 ConfigurationObjectFactory (org.skife.config.ConfigurationObjectFactory)1 BeforeSuite (org.testng.annotations.BeforeSuite)1