Search in sources :

Example 6 with Before

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

Example 7 with Before

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);
}
Also used : ClassPathXmlApplicationContext(org.springframework.context.support.ClassPathXmlApplicationContext) Before(org.junit.Before)

Example 8 with Before

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();
}
Also used : DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext) Before(org.junit.Before)

Example 9 with Before

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);
}
Also used : SOAPBinding(javax.xml.ws.soap.SOAPBinding) Before(org.junit.Before)

Example 10 with Before

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());
}
Also used : SOAPBinding(javax.xml.ws.soap.SOAPBinding) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)8594 File (java.io.File)733 Properties (java.util.Properties)270 Configuration (org.apache.hadoop.conf.Configuration)266 TreeMap (java.util.TreeMap)247 ArrayList (java.util.ArrayList)228 HashMap (java.util.HashMap)162 IOException (java.io.IOException)159 URL (java.net.URL)137 Path (org.apache.hadoop.fs.Path)130 Config (com.hazelcast.config.Config)115 HazelcastInstance (com.hazelcast.core.HazelcastInstance)111 InputStream (java.io.InputStream)109 Date (java.util.Date)96 InvocationOnMock (org.mockito.invocation.InvocationOnMock)96 MockHttpServletRequest (org.springframework.mock.web.MockHttpServletRequest)92 YarnConfiguration (org.apache.hadoop.yarn.conf.YarnConfiguration)90 ByteArrayOutputStream (java.io.ByteArrayOutputStream)83 Connection (java.sql.Connection)78 Random (java.util.Random)75