Package org.apache.axis2.transport.testkit

Examples of org.apache.axis2.transport.testkit.ManagedTestSuite.addExclude()


public class UDPTransportTest extends TestCase {
    public static TestSuite suite() throws Exception {
        ManagedTestSuite suite = new ManagedTestSuite(UDPTransportTest.class);
       
        // For the moment, we can only do SOAP 1.1 (see TODO item on UDPChannel)
        suite.addExclude("(|(messageType=SOAP12)(messageType=POX)(test=AsyncTextPlain)(test=AsyncBinary))");
       
        // Who would want to do SwA over UDP?
        suite.addExclude("(test=AsyncSwA)");

        // Obviously, UDP will not support large SOAP messages
View Full Code Here


       
        // For the moment, we can only do SOAP 1.1 (see TODO item on UDPChannel)
        suite.addExclude("(|(messageType=SOAP12)(messageType=POX)(test=AsyncTextPlain)(test=AsyncBinary))");
       
        // Who would want to do SwA over UDP?
        suite.addExclude("(test=AsyncSwA)");

        // Obviously, UDP will not support large SOAP messages
        suite.addExclude("(test=AsyncSOAPLarge)");

        TransportTestSuiteBuilder builder = new TransportTestSuiteBuilder(suite);
View Full Code Here

       
        // Who would want to do SwA over UDP?
        suite.addExclude("(test=AsyncSwA)");

        // Obviously, UDP will not support large SOAP messages
        suite.addExclude("(test=AsyncSOAPLarge)");

        TransportTestSuiteBuilder builder = new TransportTestSuiteBuilder(suite);
        builder.addAsyncChannel(new UDPChannel());
        builder.addRequestResponseChannel(new UDPChannel());
        builder.addEnvironment(new SimpleTransportDescriptionFactory("udp", UDPListener.class, UDPSender.class));
View Full Code Here

    public static TestSuite suite() throws Exception {
        ManagedTestSuite suite = new ManagedTestSuite(MailTransportTest.class);
       
        // SwA doesn't work with the mock client because attachments are sent with
        // "Content-Transfer-Encoding: binary" and mail servers don't like that.
        suite.addExclude("(&(test=AsyncSwA)(client=javamail))");
        // There seems to be a problem with Sun's IMAP client or GreenMail's IMAP server
        // in this particular case:
        suite.addExclude("(&(protocol=imap)(test=AsyncSwA))");
        // SYNAPSE-434
        suite.addExclude("(test=MinConcurrency)");
View Full Code Here

        // SwA doesn't work with the mock client because attachments are sent with
        // "Content-Transfer-Encoding: binary" and mail servers don't like that.
        suite.addExclude("(&(test=AsyncSwA)(client=javamail))");
        // There seems to be a problem with Sun's IMAP client or GreenMail's IMAP server
        // in this particular case:
        suite.addExclude("(&(protocol=imap)(test=AsyncSwA))");
        // SYNAPSE-434
        suite.addExclude("(test=MinConcurrency)");
       
        TransportTestSuiteBuilder builder = new TransportTestSuiteBuilder(suite);
       
View Full Code Here

        suite.addExclude("(&(test=AsyncSwA)(client=javamail))");
        // There seems to be a problem with Sun's IMAP client or GreenMail's IMAP server
        // in this particular case:
        suite.addExclude("(&(protocol=imap)(test=AsyncSwA))");
        // SYNAPSE-434
        suite.addExclude("(test=MinConcurrency)");
       
        TransportTestSuiteBuilder builder = new TransportTestSuiteBuilder(suite);
       
        builder.addEnvironment(new GreenMailTestEnvironment("pop3"), MailMessageContextValidator.INSTANCE);
        builder.addEnvironment(new GreenMailTestEnvironment("imap"), MailMessageContextValidator.INSTANCE);
View Full Code Here

public class JMSTransportTest extends TestCase {
    public static TestSuite suite() throws Exception {
        ManagedTestSuite suite = new ManagedTestSuite(JMSTransportTest.class);
       
        // SwA doesn't make sense with text messages
        suite.addExclude("(&(test=AsyncSwA)(client=jms)(jmsType=text))");
       
        // Don't execute all possible test combinations:
        //  * Use a single setup to execute tests with all message types.
        //  * Only use a small set of message types for the other setups.
        suite.addExclude("(!(|(&(broker=ActiveMQ)(singleCF=false)(cfOnSender=false)(!(|(destType=topic)(replyDestType=topic))))" +
View Full Code Here

        suite.addExclude("(&(test=AsyncSwA)(client=jms)(jmsType=text))");
       
        // Don't execute all possible test combinations:
        //  * Use a single setup to execute tests with all message types.
        //  * Only use a small set of message types for the other setups.
        suite.addExclude("(!(|(&(broker=ActiveMQ)(singleCF=false)(cfOnSender=false)(!(|(destType=topic)(replyDestType=topic))))" +
                         "(&(test=AsyncXML)(messageType=SOAP11)(data=ASCII))" +
                         "(&(test=EchoXML)(messageType=POX)(data=ASCII))" +
                         "(test=MinConcurrency)))");
       
        // SYNAPSE-436:
View Full Code Here

                         "(&(test=AsyncXML)(messageType=SOAP11)(data=ASCII))" +
                         "(&(test=EchoXML)(messageType=POX)(data=ASCII))" +
                         "(test=MinConcurrency)))");
       
        // SYNAPSE-436:
        suite.addExclude("(&(test=EchoXML)(replyDestType=topic)(endpoint=axis))");
       
        // Although Qpid is compiled for Java 1.5, it uses classes only present in 1.6.
        if (System.getProperty("java.version").startsWith("1.5.")) {
            System.out.println("Excluding Qpid tests; please run the build with Java 1.6 to include them");
            suite.addExclude("(broker=qpid)");
View Full Code Here

        suite.addExclude("(&(test=EchoXML)(replyDestType=topic)(endpoint=axis))");
       
        // Although Qpid is compiled for Java 1.5, it uses classes only present in 1.6.
        if (System.getProperty("java.version").startsWith("1.5.")) {
            System.out.println("Excluding Qpid tests; please run the build with Java 1.6 to include them");
            suite.addExclude("(broker=qpid)");
        }

        // Example to run a few use cases.. please leave these commented out - asankha
        //suite.addExclude("(|(test=AsyncXML)(test=MinConcurrency)(destType=topic)(broker=qpid)(destType=topic)(replyDestType=topic)(client=jms)(endpoint=mock)(cfOnSender=true))");
        //suite.addExclude("(|(test=EchoXML)(destType=queue)(broker=qpid)(cfOnSender=true)(singleCF=false)(destType=queue)(client=jms)(endpoint=mock))");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.