Search in sources :

Example 16 with JMSSimplePortType

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

the class SOAPJMSTestSuiteTest method test0012.

@Test
public void test0012() throws Exception {
    // same to test0002
    TestCaseType testcase = JMSTestUtil.getTestCase("test0012");
    final JMSSimplePortType simplePort = getPort("JMSSimpleService0012", "SimplePort", JMSSimpleService0012.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 17 with JMSSimplePortType

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

the class SOAPJMSTestSuiteTest method test1105.

@Test
public void test1105() throws Exception {
    TestCaseType testcase = JMSTestUtil.getTestCase("test1105");
    final JMSSimplePortType simplePort = getPort("JMSSimpleService1105", "SimplePort", JMSSimpleService1105.class, JMSSimplePortType.class);
    JMSMessageHeadersType requestHeader = new JMSMessageHeadersType();
    requestHeader.setSOAPJMSSOAPAction("mismatch");
    try {
        twoWayTestWithRequestHeader(testcase, simplePort, requestHeader);
    } catch (Exception e) {
        assertTrue(e.getMessage().contains("Mismatched SoapAction"));
    }
}
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 18 with JMSSimplePortType

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

the class SOAPJMSTestSuiteTest method test1109.

@Test
public void test1109() throws Exception {
    TestCaseType testcase = JMSTestUtil.getTestCase("test1109");
    final JMSSimplePortType simplePort = getPort("JMSSimpleService1109", "SimplePort", JMSSimpleService1109.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 19 with JMSSimplePortType

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

the class SOAPJMSTestSuiteTest method test0101.

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

Example 20 with JMSSimplePortType

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

the class SOAPJMSTestSuiteTest method test0003.

@Test
public void test0003() throws Exception {
    TestCaseType testcase = JMSTestUtil.getTestCase("test0003");
    final JMSSimplePortType simplePort = getPort("JMSSimpleService0003", "SimplePort", JMSSimpleService0003.class, JMSSimplePortType.class);
    oneWayTest(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