Search in sources :

Example 1 with BeforeClass

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();
}
Also used : WebAppContext(org.eclipse.jetty.webapp.WebAppContext) Server(org.eclipse.jetty.server.Server) BeforeClass(org.junit.BeforeClass)

Example 2 with BeforeClass

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);
}
Also used : Greeter(org.apache.hello_world_soap_http.Greeter) BeforeClass(org.junit.BeforeClass)

Example 3 with BeforeClass

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);
}
Also used : Greeter(org.apache.hello_world_soap_http.Greeter) BeforeClass(org.junit.BeforeClass)

Example 4 with BeforeClass

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();
}
Also used : ServerFactoryBean(org.apache.cxf.frontend.ServerFactoryBean) BeforeClass(org.junit.BeforeClass)

Example 5 with BeforeClass

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);
}
Also used : GreeterImpl(org.apache.hello_world_soap_http.GreeterImpl) BeforeClass(org.junit.BeforeClass)

Aggregations

BeforeClass (org.junit.BeforeClass)2454 File (java.io.File)331 Configuration (org.apache.hadoop.conf.Configuration)275 Connection (java.sql.Connection)111 IOException (java.io.IOException)109 Properties (java.util.Properties)100 Reader (java.io.Reader)99 SqlSessionFactoryBuilder (org.apache.ibatis.session.SqlSessionFactoryBuilder)98 Provisioning (com.zimbra.cs.account.Provisioning)93 ScriptRunner (org.apache.ibatis.jdbc.ScriptRunner)91 MockProvisioning (com.zimbra.cs.account.MockProvisioning)77 URI (java.net.URI)73 HiveConf (org.apache.hadoop.hive.conf.HiveConf)73 Path (org.apache.hadoop.fs.Path)70 SqlSession (org.apache.ibatis.session.SqlSession)62 HashMap (java.util.HashMap)58 MiniDFSCluster (org.apache.hadoop.hdfs.MiniDFSCluster)58 Injector (com.google.inject.Injector)57 CConfiguration (co.cask.cdap.common.conf.CConfiguration)56 DeploymentInfo (io.undertow.servlet.api.DeploymentInfo)55