use of org.junit.Before in project camel by apache.
the class CxfSimpleRouterTest method startService.
@Before
public void startService() {
//start a service
ServerFactoryBean svrBean = new ServerFactoryBean();
svrBean.setAddress(getServiceAddress());
svrBean.setServiceClass(HelloService.class);
svrBean.setServiceBean(new HelloServiceImpl());
configureFactory(svrBean);
server = svrBean.create();
server.start();
}
use of org.junit.Before in project camel by apache.
the class CxfPayloadProducerNamespaceOnEnvelopeTest method setUp.
@Before
public void setUp() throws Exception {
applicationContext = new ClassPathXmlApplicationContext("org/apache/camel/component/cxf/GetTokenBeans.xml");
super.setUp();
assertNotNull("Should have created a valid spring context", applicationContext);
}
use of org.junit.Before in project camel by apache.
the class CxfProducerSoapFaultTest method setUp.
@Before
public void setUp() throws Exception {
camelContext = new DefaultCamelContext();
camelContext.start();
template = camelContext.createProducerTemplate();
}
use of org.junit.Before in project camel by apache.
the class CxfMtomRouterPayloadModeTest method setUp.
@Before
public void setUp() throws Exception {
endpoint = Endpoint.publish("http://localhost:" + port2 + "/" + getClass().getSimpleName() + "/jaxws-mtom/hello", getImpl());
SOAPBinding binding = (SOAPBinding) endpoint.getBinding();
binding.setMTOMEnabled(true);
}
use of org.junit.Before in project camel by apache.
the class CxfMtomProducerPayloadModeTest method setUp.
@Before
public void setUp() throws Exception {
endpoint = Endpoint.publish("http://localhost:" + port + "/" + getClass().getSimpleName() + "/jaxws-mtom/hello", getServiceImpl());
SOAPBinding binding = (SOAPBinding) endpoint.getBinding();
binding.setMTOMEnabled(isMtomEnabled());
}
Aggregations