Search in sources :

Example 6 with BeforeClass

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

Example 7 with BeforeClass

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();
}
Also used : Bus(org.apache.cxf.Bus) JaxWsServiceFactoryBean(org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean) JettyHTTPServerEngineFactory(org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory) JaxWsServerFactoryBean(org.apache.cxf.jaxws.JaxWsServerFactoryBean) BeforeClass(org.junit.BeforeClass)

Example 8 with BeforeClass

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

Example 9 with BeforeClass

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

Example 10 with BeforeClass

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();
}
Also used : CxfServer(org.apache.camel.component.cxf.wssecurity.server.CxfServer) 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