Search in sources :

Example 1 with ContentTypeServiceConfigurator

use of org.apache.axis2.transport.testkit.axis2.endpoint.ContentTypeServiceConfigurator in project wso2-synapse by wso2.

the class VFSTransportTest method suite.

public static TestSuite suite() throws Exception {
    // TODO: the VFS listener doesn't like reuseResources == true...
    ManagedTestSuite suite = new ManagedTestSuite(VFSTransportTest.class, false);
    // Since VFS has no Content-Type header, SwA is not supported.
    suite.addExclude("(test=AsyncSwA)");
    TransportTestSuiteBuilder builder = new TransportTestSuiteBuilder(suite);
    ContentTypeServiceConfigurator cfgtr = new ContentTypeServiceConfigurator("transport.vfs.ContentType");
    builder.addEnvironment(new VFSTestEnvironment(new File("target/vfs3")), new VFSTransportDescriptionFactory());
    builder.addAsyncChannel(new VFSAsyncFileChannel("req/in"));
    builder.addAxisAsyncTestClient(new AxisAsyncTestClient());
    builder.addByteArrayAsyncTestClient(new VFSAsyncClient());
    builder.addAxisAsyncEndpoint(new AxisAsyncEndpoint(), cfgtr);
    builder.addByteArrayAsyncEndpoint(new VFSMockAsyncEndpoint());
    builder.addRequestResponseChannel(new VFSRequestResponseFileChannel("req/in", "req/out"));
    builder.addByteArrayRequestResponseTestClient(new VFSRequestResponseClient());
    builder.addEchoEndpoint(new AxisEchoEndpoint(), cfgtr);
    builder.build();
    // suite.addTest(new MinConcurrencyTest(server, new AsyncChannel[] { new VFSFileChannel("req/in1"), new VFSFileChannel("req/in2") }, 1, true, env, tdf));
    return suite;
}
Also used : AxisAsyncEndpoint(org.apache.axis2.transport.testkit.axis2.endpoint.AxisAsyncEndpoint) ManagedTestSuite(org.apache.axis2.transport.testkit.ManagedTestSuite) AxisAsyncTestClient(org.apache.axis2.transport.testkit.axis2.client.AxisAsyncTestClient) AxisEchoEndpoint(org.apache.axis2.transport.testkit.axis2.endpoint.AxisEchoEndpoint) ContentTypeServiceConfigurator(org.apache.axis2.transport.testkit.axis2.endpoint.ContentTypeServiceConfigurator) File(java.io.File) TransportTestSuiteBuilder(org.apache.axis2.transport.testkit.TransportTestSuiteBuilder)

Aggregations

File (java.io.File)1 ManagedTestSuite (org.apache.axis2.transport.testkit.ManagedTestSuite)1 TransportTestSuiteBuilder (org.apache.axis2.transport.testkit.TransportTestSuiteBuilder)1 AxisAsyncTestClient (org.apache.axis2.transport.testkit.axis2.client.AxisAsyncTestClient)1 AxisAsyncEndpoint (org.apache.axis2.transport.testkit.axis2.endpoint.AxisAsyncEndpoint)1 AxisEchoEndpoint (org.apache.axis2.transport.testkit.axis2.endpoint.AxisEchoEndpoint)1 ContentTypeServiceConfigurator (org.apache.axis2.transport.testkit.axis2.endpoint.ContentTypeServiceConfigurator)1