Search in sources :

Example 6 with AxisAsyncTestClient

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));
}
Also used : AxisRequestResponseTestClient(org.apache.axis2.transport.testkit.axis2.client.AxisRequestResponseTestClient) AxisAsyncEndpoint(org.apache.axis2.transport.testkit.axis2.endpoint.AxisAsyncEndpoint) AxisTestClientConfigurator(org.apache.axis2.transport.testkit.axis2.client.AxisTestClientConfigurator) AsyncChannel(org.apache.axis2.transport.testkit.channel.AsyncChannel) AxisAsyncTestClient(org.apache.axis2.transport.testkit.axis2.client.AxisAsyncTestClient) AxisEchoEndpoint(org.apache.axis2.transport.testkit.axis2.endpoint.AxisEchoEndpoint) MinConcurrencyTest(org.apache.axis2.transport.testkit.tests.misc.MinConcurrencyTest) TransportTestSuiteBuilder(org.apache.axis2.transport.testkit.TransportTestSuiteBuilder)

Aggregations

AxisAsyncTestClient (org.apache.axis2.transport.testkit.axis2.client.AxisAsyncTestClient)6 TransportTestSuiteBuilder (org.apache.axis2.transport.testkit.TransportTestSuiteBuilder)5 AxisAsyncEndpoint (org.apache.axis2.transport.testkit.axis2.endpoint.AxisAsyncEndpoint)5 AxisEchoEndpoint (org.apache.axis2.transport.testkit.axis2.endpoint.AxisEchoEndpoint)5 ManagedTestSuite (org.apache.axis2.transport.testkit.ManagedTestSuite)4 AxisRequestResponseTestClient (org.apache.axis2.transport.testkit.axis2.client.AxisRequestResponseTestClient)3 AsyncChannel (org.apache.axis2.transport.testkit.channel.AsyncChannel)3 MinConcurrencyTest (org.apache.axis2.transport.testkit.tests.misc.MinConcurrencyTest)3 MessageContext (org.apache.axis2.context.MessageContext)2 AxisTestClientConfigurator (org.apache.axis2.transport.testkit.axis2.client.AxisTestClientConfigurator)2 File (java.io.File)1 ContentType (javax.mail.internet.ContentType)1 QName (javax.xml.namespace.QName)1 SOAPEnvelope (org.apache.axiom.soap.SOAPEnvelope)1 SOAPFactory (org.apache.axiom.soap.SOAPFactory)1 AxisOperation (org.apache.axis2.description.AxisOperation)1 InOnlyAxisOperation (org.apache.axis2.description.InOnlyAxisOperation)1 MessageReceiver (org.apache.axis2.engine.MessageReceiver)1 SimpleTransportDescriptionFactory (org.apache.axis2.transport.testkit.axis2.SimpleTransportDescriptionFactory)1 AxisTestEndpoint (org.apache.axis2.transport.testkit.axis2.endpoint.AxisTestEndpoint)1