use of org.apache.axis2.transport.testkit.axis2.client.AxisAsyncTestClient in project wso2-axis2-transports by wso2.
the class HttpTransportTestSuiteBuilder method build.
public void build() {
TransportTestSuiteBuilder builder = new TransportTestSuiteBuilder(suite);
builder.addEnvironment(tdf);
HttpChannel channel = new HttpChannel();
builder.addAsyncChannel(channel);
builder.addByteArrayAsyncTestClient(new JavaNetClient());
if (axisTestClientConfigurators.isEmpty()) {
builder.addAxisAsyncTestClient(new AxisAsyncTestClient());
} else {
for (AxisTestClientConfigurator configurator : axisTestClientConfigurators) {
builder.addAxisAsyncTestClient(new AxisAsyncTestClient(), configurator);
}
}
builder.addRESTAsyncTestClient(new JavaNetRESTClient());
builder.addAxisAsyncEndpoint(new AxisAsyncEndpoint());
builder.addByteArrayAsyncEndpoint(new JettyByteArrayAsyncEndpoint());
builder.addRESTAsyncEndpoint(new JettyRESTAsyncEndpoint());
builder.addRequestResponseChannel(channel);
builder.addAxisRequestResponseTestClient(new AxisRequestResponseTestClient());
builder.addEchoEndpoint(new AxisEchoEndpoint());
builder.addEchoEndpoint(new JettyEchoEndpoint());
builder.build();
suite.addTest(new MinConcurrencyTest(new AsyncChannel[] { new HttpChannel(), new HttpChannel() }, 2, false, tdf));
}
Aggregations