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