Examples of ManagedTestSuite


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

import org.apache.axis2.transport.testkit.channel.AsyncChannel;
import org.apache.axis2.transport.testkit.tests.misc.MinConcurrencyTest;

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))))" +
                         "(&(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)");
        }

        // 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))");
        //suite.addExclude("(|(test=EchoXML)(test=AsyncXML)(test=AsyncSwA)(test=AsyncTextPlain)(test=AsyncBinary)(test=AsyncSOAPLarge)(broker=qpid))");

        TransportTestSuiteBuilder builder = new TransportTestSuiteBuilder(suite);

        JMSTestEnvironment[] environments = new JMSTestEnvironment[] { new QpidTestEnvironment(), new ActiveMQTestEnvironment() };
        for (boolean singleCF : new boolean[] { false, true }) {
            for (boolean cfOnSender : new boolean[] { false, true }) {
                for (JMSTestEnvironment env : environments) {
                    builder.addEnvironment(env, new JMSTransportDescriptionFactory(singleCF, cfOnSender, 1));
                }
            }
        }
       
        builder.addAsyncChannel(new JMSAsyncChannel(JMSConstants.DESTINATION_TYPE_QUEUE, ContentTypeMode.TRANSPORT));
        builder.addAsyncChannel(new JMSAsyncChannel(JMSConstants.DESTINATION_TYPE_TOPIC, ContentTypeMode.TRANSPORT));
       
        builder.addAxisAsyncTestClient(new AxisAsyncTestClient());
        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 {
                msgContext.setProperty(JMSConstants.JMS_WAIT_REPLY, "5000");
            }
        };
       
        builder.addAxisRequestResponseTestClient(new AxisRequestResponseTestClient(), timeoutConfigurator);
        builder.addStringRequestResponseTestClient(new JMSRequestResponseClient<String>(JMSTextMessageFactory.INSTANCE));
       
        builder.addEchoEndpoint(new MockEchoEndpoint());
        builder.addEchoEndpoint(new AxisEchoEndpoint());

        for (JMSTestEnvironment env : new JMSTestEnvironment[] { new QpidTestEnvironment(), new ActiveMQTestEnvironment() }) {
            suite.addTest(new MinConcurrencyTest(new AsyncChannel[] {
                    new JMSAsyncChannel("endpoint1", JMSConstants.DESTINATION_TYPE_QUEUE, ContentTypeMode.TRANSPORT),
                    new JMSAsyncChannel("endpoint2", JMSConstants.DESTINATION_TYPE_QUEUE, ContentTypeMode.TRANSPORT) },
                    2, false, env, new JMSTransportDescriptionFactory(false, false, 2)));
        }
       
View Full Code Here

Examples of org.cloudfoundry.ide.eclipse.server.tests.sts.util.ManagedTestSuite

  public static Test suite() {
    return suite(false);
  }

  public static Test suite(boolean heartbeat) {
    TestSuite suite = new ManagedTestSuite(AllCloudFoundryTests.class.getName());

    // These need to be enabled only if a light-weight http servlet is
    // included in the build. They have been commented out since CF 1.0.0
    // See STS-3159
    // XXX suite.addTestSuite(LocalCloudFoundryServerBehaviourTest.class);
    // suite.addTestSuite(CloudFoundryMockServerTest.class);
    // TODO: Enable when Caldecott is fixed post CF 1.5.1
    // suite.addTestSuite(CaldecottTunnelTest.class);

    if (!heartbeat) {
      // XXX fails for on build server for unknown reasons
      if (!StsTestUtil.isOnBuildSite()) {
        suite.addTestSuite(CloudFoundryServerBehaviourTest.class);
      }
    }

    suite.addTestSuite(CloudFoundryProxyTest.class);
    suite.addTestSuite(ServerCredentialsStoreTest.class);
    suite.addTestSuite(CloudFoundryServerTest.class);
    suite.addTestSuite(CloudUtilTest.class);

    suite.addTestSuite(DeploymentURLTest.class);
    suite.addTestSuite(CloudFoundryServicesTest.class);
    suite.addTestSuite(CloudFoundryClientConnectionTest.class);

    return suite;
  }
View Full Code Here

Examples of org.cloudfoundry.ide.eclipse.server.tests.sts.util.ManagedTestSuite

    return suite;
  }

  public static Test experimentalSuite() {
    TestSuite suite = new ManagedTestSuite(AllCloudFoundryTests.class.getName());
    suite.addTestSuite(CloudFoundryServerBehaviourTest.class);
    return suite;
  }
View Full Code Here

Examples of org.springsource.ide.eclipse.commons.tests.util.ManagedTestSuite

* @author Christian Dupuis
*/
public class AllBestPracticeRuleTests {

  public static Test suite() {
    TestSuite suite = new ManagedTestSuite(AllBestPracticeRuleTests.class.getName());
    //$JUnit-BEGIN$
    suite.addTestSuite(ImportElementsAtTopRuleTest.class);
    suite.addTestSuite(ParentBeanSpecifiesAbstractClassRuleTest.class);
    suite.addTestSuite(TooManyBeansInFileRuleTest.class);
    suite.addTestSuite(RefElementRuleTest.class);
    suite.addTestSuite(UnnecessaryValueElementRuleTest.class);
    suite.addTestSuite(UseBeanInheritanceRuleTest.class);
    suite.addTestSuite(AvoidDriverManagerDataSourceRuleTest.class);
    suite.addTestSuite(UseDedicatedNamespacesRuleTest.class);
    //$JUnit-END$
    return suite;
  }
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.