Search in sources :

Example 11 with JMSSimplePortType

use of org.apache.cxf.jms_simple.JMSSimplePortType in project cxf by apache.

the class SOAPJMSTestSuiteTest method test1001.

@Test
public void test1001() throws Exception {
    // same to test0002
    TestCaseType testcase = JMSTestUtil.getTestCase("test1001");
    final JMSSimplePortType simplePort = getPort("JMSSimpleService1001", "SimplePort", JMSSimpleService1001.class, JMSSimplePortType.class);
    JMSMessageHeadersType requestHeader = new JMSMessageHeadersType();
    requestHeader.setSOAPJMSBindingVersion("0.3");
    try {
        twoWayTestWithRequestHeader(testcase, simplePort, requestHeader);
    } catch (Exception e) {
        assertTrue(e.getMessage().contains("Unrecognized BindingVersion"));
    }
}
Also used : TestCaseType(org.apache.cxf.testsuite.testcase.TestCaseType) JMSSimplePortType(org.apache.cxf.jms_simple.JMSSimplePortType) JMSMessageHeadersType(org.apache.cxf.transport.jms.JMSMessageHeadersType) JMSException(javax.jms.JMSException) WebServiceException(javax.xml.ws.WebServiceException) Test(org.junit.Test)

Example 12 with JMSSimplePortType

use of org.apache.cxf.jms_simple.JMSSimplePortType in project cxf by apache.

the class SOAPJMSTestSuiteTest method test0102.

@Test
public void test0102() throws Exception {
    TestCaseType testcase = JMSTestUtil.getTestCase("test0102");
    final JMSSimplePortType simplePort = getPort("JMSSimpleService0101", "SimplePort", JMSSimpleService0101.class, JMSSimplePortType.class);
    twoWayTest(testcase, simplePort);
}
Also used : TestCaseType(org.apache.cxf.testsuite.testcase.TestCaseType) JMSSimplePortType(org.apache.cxf.jms_simple.JMSSimplePortType) Test(org.junit.Test)

Example 13 with JMSSimplePortType

use of org.apache.cxf.jms_simple.JMSSimplePortType in project cxf by apache.

the class SOAPJMSTestSuiteTest method test0011.

@Test
public void test0011() throws Exception {
    TestCaseType testcase = JMSTestUtil.getTestCase("test0011");
    final JMSSimplePortType simplePort = getPort("JMSSimpleService0011", "SimplePort", JMSSimpleService0011.class, JMSSimplePortType.class);
    twoWayTest(testcase, simplePort);
}
Also used : TestCaseType(org.apache.cxf.testsuite.testcase.TestCaseType) JMSSimplePortType(org.apache.cxf.jms_simple.JMSSimplePortType) Test(org.junit.Test)

Example 14 with JMSSimplePortType

use of org.apache.cxf.jms_simple.JMSSimplePortType in project cxf by apache.

the class SOAPJMSTestSuiteTest method test0002.

@Test
public void test0002() throws Exception {
    TestCaseType testcase = JMSTestUtil.getTestCase("test0002");
    final JMSSimplePortType simplePort = getPort("JMSSimpleService0001", "SimplePort", JMSSimpleService0001.class, JMSSimplePortType.class);
    JMSMessageHeadersType requestHeader = new JMSMessageHeadersType();
    requestHeader.setJMSCorrelationID("Correlator0002");
    twoWayTestWithRequestHeader(testcase, simplePort, requestHeader);
}
Also used : TestCaseType(org.apache.cxf.testsuite.testcase.TestCaseType) JMSSimplePortType(org.apache.cxf.jms_simple.JMSSimplePortType) JMSMessageHeadersType(org.apache.cxf.transport.jms.JMSMessageHeadersType) Test(org.junit.Test)

Example 15 with JMSSimplePortType

use of org.apache.cxf.jms_simple.JMSSimplePortType in project cxf by apache.

the class SOAPJMSTestSuiteTest method test0006.

@Test
public void test0006() throws Exception {
    TestCaseType testcase = JMSTestUtil.getTestCase("test0006");
    final JMSSimplePortType simplePort = getPort("JMSSimpleService0006", "SimplePort", JMSSimpleService0006.class, JMSSimplePortType.class);
    twoWayTest(testcase, simplePort);
}
Also used : TestCaseType(org.apache.cxf.testsuite.testcase.TestCaseType) JMSSimplePortType(org.apache.cxf.jms_simple.JMSSimplePortType) Test(org.junit.Test)

Aggregations

JMSSimplePortType (org.apache.cxf.jms_simple.JMSSimplePortType)20 TestCaseType (org.apache.cxf.testsuite.testcase.TestCaseType)20 Test (org.junit.Test)20 JMSMessageHeadersType (org.apache.cxf.transport.jms.JMSMessageHeadersType)8 JMSException (javax.jms.JMSException)5 WebServiceException (javax.xml.ws.WebServiceException)5