Search in sources :

Example 1 with SimpleTransportDescriptionFactory

use of org.apache.axis2.transport.testkit.axis2.SimpleTransportDescriptionFactory in project wso2-axis2-transports by wso2.

the class UDPTransportTest method suite.

public static TestSuite suite() throws Exception {
    ManagedTestSuite suite = new ManagedTestSuite(UDPTransportTest.class);
    // For the moment, we can only do SOAP 1.1 (see TODO item on UDPChannel)
    suite.addExclude("(|(messageType=SOAP12)(messageType=POX)(test=AsyncTextPlain)(test=AsyncBinary))");
    // Who would want to do SwA over UDP?
    suite.addExclude("(test=AsyncSwA)");
    // Obviously, UDP will not support large SOAP messages
    suite.addExclude("(test=AsyncSOAPLarge)");
    TransportTestSuiteBuilder builder = new TransportTestSuiteBuilder(suite);
    builder.addAsyncChannel(new UDPChannel());
    builder.addRequestResponseChannel(new UDPChannel());
    builder.addEnvironment(new SimpleTransportDescriptionFactory("udp", UDPListener.class, UDPSender.class));
    builder.addAxisAsyncTestClient(new AxisAsyncTestClient());
    builder.addAxisAsyncEndpoint(new AxisAsyncEndpoint());
    builder.addAxisRequestResponseTestClient(new AxisRequestResponseTestClient());
    builder.addEchoEndpoint(new AxisEchoEndpoint());
    builder.build();
    return suite;
}
Also used : AxisRequestResponseTestClient(org.apache.axis2.transport.testkit.axis2.client.AxisRequestResponseTestClient) AxisAsyncEndpoint(org.apache.axis2.transport.testkit.axis2.endpoint.AxisAsyncEndpoint) AxisAsyncTestClient(org.apache.axis2.transport.testkit.axis2.client.AxisAsyncTestClient) AxisEchoEndpoint(org.apache.axis2.transport.testkit.axis2.endpoint.AxisEchoEndpoint) SimpleTransportDescriptionFactory(org.apache.axis2.transport.testkit.axis2.SimpleTransportDescriptionFactory) ManagedTestSuite(org.apache.axis2.transport.testkit.ManagedTestSuite) TransportTestSuiteBuilder(org.apache.axis2.transport.testkit.TransportTestSuiteBuilder)

Aggregations

ManagedTestSuite (org.apache.axis2.transport.testkit.ManagedTestSuite)1 TransportTestSuiteBuilder (org.apache.axis2.transport.testkit.TransportTestSuiteBuilder)1 SimpleTransportDescriptionFactory (org.apache.axis2.transport.testkit.axis2.SimpleTransportDescriptionFactory)1 AxisAsyncTestClient (org.apache.axis2.transport.testkit.axis2.client.AxisAsyncTestClient)1 AxisRequestResponseTestClient (org.apache.axis2.transport.testkit.axis2.client.AxisRequestResponseTestClient)1 AxisAsyncEndpoint (org.apache.axis2.transport.testkit.axis2.endpoint.AxisAsyncEndpoint)1 AxisEchoEndpoint (org.apache.axis2.transport.testkit.axis2.endpoint.AxisEchoEndpoint)1