Search in sources :

Example 16 with TestCaseType

use of org.apache.cxf.testsuite.testcase.TestCaseType in project cxf by apache.

the class SOAPJMSTestSuiteTest method test1009.

@Test
public void test1009() throws Exception {
    TestCaseType testcase = JMSTestUtil.getTestCase("test1009");
    final JMSSimplePortType simplePort = getPort("JMSSimpleService1009", "SimplePort", JMSSimpleService1009.class, JMSSimplePortType.class);
    JMSMessageHeadersType requestHeader = new JMSMessageHeadersType();
    try {
        twoWayTestWithRequestHeader(testcase, simplePort, requestHeader);
    } catch (Exception e) {
        assertTrue(e.getMessage().contains("Unknow JMS Variant"));
    }
}
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 17 with TestCaseType

use of org.apache.cxf.testsuite.testcase.TestCaseType in project cxf by apache.

the class SOAPJMSTestSuiteTest method test1008.

@Test
public void test1008() throws Exception {
    TestCaseType testcase = JMSTestUtil.getTestCase("test1008");
    twoWayTestWithCreateMessage(testcase);
}
Also used : TestCaseType(org.apache.cxf.testsuite.testcase.TestCaseType) Test(org.junit.Test)

Example 18 with TestCaseType

use of org.apache.cxf.testsuite.testcase.TestCaseType 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 19 with TestCaseType

use of org.apache.cxf.testsuite.testcase.TestCaseType in project cxf by apache.

the class SOAPJMSTestSuiteTest method test1104.

@Test
public void test1104() throws Exception {
    TestCaseType testcase = JMSTestUtil.getTestCase("test1104");
    twoWayTestWithCreateMessage(testcase);
}
Also used : TestCaseType(org.apache.cxf.testsuite.testcase.TestCaseType) Test(org.junit.Test)

Example 20 with TestCaseType

use of org.apache.cxf.testsuite.testcase.TestCaseType 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)

Aggregations

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