use of org.junit.BeforeClass in project camel by apache.
the class FailOverFeatureTest method init.
@BeforeClass
public static void init() {
// publish a web-service
ServerFactoryBean factory = new ServerFactoryBean();
factory.setAddress(SERVICE_ADDRESS);
factory.setServiceBean(new HelloServiceImpl());
factory.create();
}
use of org.junit.BeforeClass in project camel by apache.
the class CxfProducerSessionTest method startServer.
@BeforeClass
public static void startServer() throws Exception {
// start a simple front service
JaxWsServiceFactoryBean svrFBean = new JaxWsServiceFactoryBean();
svrFBean.setServiceClass(EchoService.class);
JaxWsServerFactoryBean svrBean = new JaxWsServerFactoryBean(svrFBean);
svrBean.setAddress(SIMPLE_SERVER_ADDRESS);
svrBean.setServiceClass(EchoService.class);
svrBean.setServiceBean(new EchoServiceSessionImpl());
// make the Jetty server support sessions
Bus bus = BusFactory.newInstance().createBus();
JettyHTTPServerEngineFactory jettyFactory = bus.getExtension(JettyHTTPServerEngineFactory.class);
jettyFactory.createJettyHTTPServerEngine(PORT, "http").setSessionSupport(true);
svrBean.setBus(bus);
svrBean.create();
}
use of org.junit.BeforeClass in project camel by apache.
the class CxfProducerSynchronousFalseTest method startServer.
@BeforeClass
public static void startServer() throws Exception {
// start a simple front service
ServerFactoryBean svrBean = new ServerFactoryBean();
svrBean.setAddress(SIMPLE_SERVER_ADDRESS);
svrBean.setServiceClass(HelloService.class);
svrBean.setServiceBean(new HelloServiceImpl());
svrBean.setBus(BusFactory.getDefaultBus());
svrBean.create();
}
use of org.junit.BeforeClass in project camel by apache.
the class CxfProducerSynchronousTest method startServer.
@BeforeClass
public static void startServer() throws Exception {
// start a simple front service
ServerFactoryBean svrBean = new ServerFactoryBean();
svrBean.setAddress(SIMPLE_SERVER_ADDRESS);
svrBean.setServiceClass(HelloService.class);
svrBean.setServiceBean(new HelloServiceImpl());
svrBean.setBus(BusFactory.getDefaultBus());
svrBean.create();
}
use of org.junit.BeforeClass in project camel by apache.
the class WSSecurityRouteTest method setupContext.
@BeforeClass
public static void setupContext() throws Exception {
cxfServer = new CxfServer();
applicationContext = createApplicationContext();
}
Aggregations