Search in sources :

Example 1 with EmbeddedJMSBrokerLauncher

use of org.apache.cxf.testutil.common.EmbeddedJMSBrokerLauncher in project cxf by apache.

the class JMSClientServerTest method startServers.

@BeforeClass
public static void startServers() throws Exception {
    broker = new EmbeddedJMSBrokerLauncher("tcp://localhost:" + PORT);
    launchServer(broker);
    launchServer(new Server(broker));
    createStaticBus();
}
Also used : EmbeddedJMSBrokerLauncher(org.apache.cxf.testutil.common.EmbeddedJMSBrokerLauncher) BeforeClass(org.junit.BeforeClass)

Example 2 with EmbeddedJMSBrokerLauncher

use of org.apache.cxf.testutil.common.EmbeddedJMSBrokerLauncher in project cxf by apache.

the class JMSTestMtom method startServers.

@BeforeClass
public static void startServers() throws Exception {
    broker = new EmbeddedJMSBrokerLauncher();
    broker.startInProcess();
    bus = BusFactory.getDefaultBus();
    broker.updateWsdl(bus, "testutils/jms_test_mtom.wsdl");
    Object mtom = new JMSMTOMImpl();
    EndpointImpl ep = (EndpointImpl) Endpoint.publish("jms:jndi:dynamicQueues/test.cxf.jmstransport.queue&receiveTimeout=10000", mtom);
    Binding binding = ep.getBinding();
    ((SOAPBinding) binding).setMTOMEnabled(true);
}
Also used : Binding(javax.xml.ws.Binding) SOAPBinding(javax.xml.ws.soap.SOAPBinding) EmbeddedJMSBrokerLauncher(org.apache.cxf.testutil.common.EmbeddedJMSBrokerLauncher) EndpointImpl(org.apache.cxf.jaxws.EndpointImpl) SOAPBinding(javax.xml.ws.soap.SOAPBinding) BeforeClass(org.junit.BeforeClass)

Example 3 with EmbeddedJMSBrokerLauncher

use of org.apache.cxf.testutil.common.EmbeddedJMSBrokerLauncher in project cxf by apache.

the class JMSWSSecurityTest method startServers.

@BeforeClass
public static void startServers() throws Exception {
    broker = new EmbeddedJMSBrokerLauncher("tcp://localhost:" + PORT);
    launchServer(broker);
    launchServer(new Server(broker));
    createStaticBus();
}
Also used : EmbeddedJMSBrokerLauncher(org.apache.cxf.testutil.common.EmbeddedJMSBrokerLauncher) BeforeClass(org.junit.BeforeClass)

Example 4 with EmbeddedJMSBrokerLauncher

use of org.apache.cxf.testutil.common.EmbeddedJMSBrokerLauncher in project cxf by apache.

the class SOAPJMSTestSuiteTest method startServers.

@BeforeClass
public static void startServers() throws Exception {
    broker = new EmbeddedJMSBrokerLauncher();
    launchServer(broker);
    TestSuiteServer.setJndiUrl(broker.getBrokerURL());
    assertTrue("server did not launch correctly", launchServer(TestSuiteServer.class, true));
    createStaticBus();
}
Also used : EmbeddedJMSBrokerLauncher(org.apache.cxf.testutil.common.EmbeddedJMSBrokerLauncher) TestSuiteServer(org.apache.cxf.jms.testsuite.services.TestSuiteServer) BeforeClass(org.junit.BeforeClass)

Example 5 with EmbeddedJMSBrokerLauncher

use of org.apache.cxf.testutil.common.EmbeddedJMSBrokerLauncher in project cxf by apache.

the class ClientServerSwaTest method startServers.

@BeforeClass
public static void startServers() throws Exception {
    broker = new EmbeddedJMSBrokerLauncher();
    System.setProperty("EmbeddedBrokerURL", broker.getBrokerURL());
    launchServer(broker);
    launchServer(new Server());
    createStaticBus();
}
Also used : EmbeddedJMSBrokerLauncher(org.apache.cxf.testutil.common.EmbeddedJMSBrokerLauncher) BeforeClass(org.junit.BeforeClass)

Aggregations

EmbeddedJMSBrokerLauncher (org.apache.cxf.testutil.common.EmbeddedJMSBrokerLauncher)5 BeforeClass (org.junit.BeforeClass)5 Binding (javax.xml.ws.Binding)1 SOAPBinding (javax.xml.ws.soap.SOAPBinding)1 EndpointImpl (org.apache.cxf.jaxws.EndpointImpl)1 TestSuiteServer (org.apache.cxf.jms.testsuite.services.TestSuiteServer)1