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;
}
Aggregations