use of org.junit.BeforeClass in project camel by apache.
the class CMISTestSupport method startServer.
@BeforeClass
public static void startServer() throws Exception {
port = AvailablePortFinder.getNextAvailable(26500);
cmisServer = new Server(port);
cmisServer.setHandler(new WebAppContext(OPEN_CMIS_SERVER_WAR_PATH, "/chemistry-opencmis-server-inmemory"));
cmisServer.start();
}
use of org.junit.BeforeClass in project camel by apache.
the class CxfTimeoutTest method startService.
@BeforeClass
public static void startService() {
Greeter implementor = new GreeterImplWithSleep();
Endpoint.publish(JAXWS_SERVER_ADDRESS, implementor);
}
use of org.junit.BeforeClass in project camel by apache.
the class CxfMessageHeaderTimeoutTest method startService.
@BeforeClass
public static void startService() {
Greeter implementor = new GreeterImplWithSleep();
Endpoint.publish(SERVER_ADDRESS, implementor);
}
use of org.junit.BeforeClass in project camel by apache.
the class CxfMixedModeRouterTest method startService.
@BeforeClass
public static void startService() {
//start a service
ServerFactoryBean svrBean = new ServerFactoryBean();
svrBean.setAddress(SERVICE_ADDRESS);
svrBean.setServiceClass(HelloService.class);
svrBean.setServiceBean(new HelloServiceImpl());
server = svrBean.create();
server.start();
}
use of org.junit.BeforeClass in project camel by apache.
the class CxfPayloadProviderRouterTest method startService.
@BeforeClass
public static void startService() {
implementor = new GreeterImpl();
String address = "http://localhost:" + getPort1() + "/CxfPayLoadProviderRouterTest/SoapContext/SoapPort";
endpoint = Endpoint.publish(address, implementor);
}
Aggregations