Package org.apache.axis2.transport.testkit.axis2

Examples of org.apache.axis2.transport.testkit.axis2.TransportDescriptionFactory


       
        builder.addAxisAsyncEndpoint(new AxisAsyncEndpoint());
       
        builder.addRequestResponseChannel(new JMSRequestResponseChannel(JMSConstants.DESTINATION_TYPE_QUEUE, JMSConstants.DESTINATION_TYPE_QUEUE, ContentTypeMode.TRANSPORT));
       
        AxisTestClientConfigurator timeoutConfigurator = new AxisTestClientConfigurator() {
            public void setupRequestMessageContext(MessageContext msgContext) throws AxisFault {
                msgContext.setProperty(JMSConstants.JMS_WAIT_REPLY, "5000");
            }
        };
       
View Full Code Here


        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());
View Full Code Here

        builder.addAxisAsyncTestClient(new AxisAsyncTestClient(), new MailAxisTestClientConfigurator(MailConstants.TRANSPORT_FORMAT_TEXT));
        builder.addAxisAsyncTestClient(new AxisAsyncTestClient(), new MailAxisTestClientConfigurator(MailConstants.TRANSPORT_FORMAT_MP));
        builder.addByteArrayAsyncTestClient(new MailAsyncClient(new FlatLayout()));
        builder.addByteArrayAsyncTestClient(new MailAsyncClient(new MultipartLayout()));
       
        builder.addAxisAsyncEndpoint(new AxisAsyncEndpoint());
       
        builder.addRequestResponseChannel(channel);
       
        builder.addAxisRequestResponseTestClient(new AxisRequestResponseTestClient(), new ResponseListenerConfigurator());
        builder.addByteArrayRequestResponseTestClient(new MailRequestResponseClient(new FlatLayout()));
View Full Code Here

        builder.addAxisAsyncTestClient(new AxisAsyncTestClient(), new JMSAxisTestClientConfigurator(JMSConstants.JMS_BYTE_MESSAGE));
        builder.addAxisAsyncTestClient(new AxisAsyncTestClient(), new JMSAxisTestClientConfigurator(JMSConstants.JMS_TEXT_MESSAGE));
        builder.addByteArrayAsyncTestClient(new JMSAsyncClient<byte[]>(JMSBytesMessageFactory.INSTANCE));
        builder.addStringAsyncTestClient(new JMSAsyncClient<String>(JMSTextMessageFactory.INSTANCE));
       
        builder.addAxisAsyncEndpoint(new AxisAsyncEndpoint());
       
        builder.addRequestResponseChannel(new JMSRequestResponseChannel(JMSConstants.DESTINATION_TYPE_QUEUE, JMSConstants.DESTINATION_TYPE_QUEUE, ContentTypeMode.TRANSPORT));
       
        AxisTestClientConfigurator timeoutConfigurator = new AxisTestClientConfigurator() {
            public void setupRequestMessageContext(MessageContext msgContext) throws AxisFault {
View Full Code Here

        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;
View Full Code Here

        builder.addAxisAsyncTestClient(new AxisAsyncTestClient(), new MailAxisTestClientConfigurator(MailConstants.TRANSPORT_FORMAT_TEXT));
        builder.addAxisAsyncTestClient(new AxisAsyncTestClient(), new MailAxisTestClientConfigurator(MailConstants.TRANSPORT_FORMAT_MP));
        builder.addByteArrayAsyncTestClient(new MailAsyncClient(new FlatLayout()));
        builder.addByteArrayAsyncTestClient(new MailAsyncClient(new MultipartLayout()));
       
        builder.addAxisAsyncEndpoint(new AxisAsyncEndpoint());
       
        builder.addRequestResponseChannel(channel);
       
        // TODO: this doesn't work because of WSCOMMONS-544
//        builder.addAxisRequestResponseTestClient(new AxisRequestResponseTestClient(), new ResponseListenerConfigurator());
View Full Code Here

        builder.addAxisAsyncTestClient(new AxisAsyncTestClient(), new JMSAxisTestClientConfigurator(JMSConstants.JMS_BYTE_MESSAGE));
        builder.addAxisAsyncTestClient(new AxisAsyncTestClient(), new JMSAxisTestClientConfigurator(JMSConstants.JMS_TEXT_MESSAGE));
        builder.addByteArrayAsyncTestClient(new JMSAsyncClient<byte[]>(JMSBytesMessageFactory.INSTANCE));
        builder.addStringAsyncTestClient(new JMSAsyncClient<String>(JMSTextMessageFactory.INSTANCE));
       
        builder.addAxisAsyncEndpoint(new AxisAsyncEndpoint());
       
        builder.addRequestResponseChannel(new JMSRequestResponseChannel(JMSConstants.DESTINATION_TYPE_QUEUE, JMSConstants.DESTINATION_TYPE_QUEUE, ContentTypeMode.TRANSPORT));
       
        AxisTestClientConfigurator timeoutConfigurator = new AxisTestClientConfigurator() {
            public void setupRequestMessageContext(MessageContext msgContext) throws AxisFault {
View Full Code Here

                builder.addAxisAsyncTestClient(new AxisAsyncTestClient(), configurator);
            }
        }
        builder.addRESTAsyncTestClient(new JavaNetRESTClient());
       
        builder.addAxisAsyncEndpoint(new AxisAsyncEndpoint());
        builder.addByteArrayAsyncEndpoint(new JettyByteArrayAsyncEndpoint());
        builder.addRESTAsyncEndpoint(new JettyRESTAsyncEndpoint());
       
        builder.addRequestResponseChannel(channel);
       
View Full Code Here

       
        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;
View Full Code Here

       
        builder.addAxisRequestResponseTestClient(new AxisRequestResponseTestClient(), new ResponseListenerConfigurator());
        builder.addByteArrayRequestResponseTestClient(new MailRequestResponseClient(new FlatLayout()));
        builder.addByteArrayRequestResponseTestClient(new MailRequestResponseClient(new MultipartLayout()));
       
        builder.addEchoEndpoint(new AxisEchoEndpoint());
       
        builder.build();
       
        suite.addTest(new MinConcurrencyTest(new MailChannel[] { new MailChannel(), new MailChannel() }, 2, true, new GreenMailTestEnvironment("pop3")));
        return suite;
View Full Code Here

TOP

Related Classes of org.apache.axis2.transport.testkit.axis2.TransportDescriptionFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.