Search in sources :

Example 26 with TestCaseType

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

Example 27 with TestCaseType

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

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

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

the class SOAPJMSTestSuiteTest method test1103.

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

Example 30 with TestCaseType

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

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