Package org.apache.qpid.test.framework

Examples of org.apache.qpid.test.framework.BrokerLifecycleAware


    {
        for (Test test : getAllUnderlyingTests())
        {
            if (test instanceof BrokerLifecycleAware)
            {
                BrokerLifecycleAware failureTest = (BrokerLifecycleAware) test;
                failureTest.setFailureMechanism(new CauseFailureUserPrompt());
            }
        }

        // Run the test.
        test.run(testResult);
View Full Code Here


                // Check if the test is aware whether or not it can control the broker life cycle, and if so provide
                // additional instrumentation for it to control the in-vm broker through.
                if (test instanceof BrokerLifecycleAware)
                {
                    BrokerLifecycleAware inVMTest = (BrokerLifecycleAware) test;
                    inVMTest.setInVmBrokers();
                    inVMTest.setLiveBroker(1);
                    inVMTest.setFailureMechanism(new CauseFailureInVM(inVMTest));
                }
            }
        }

        // Run the test.
View Full Code Here

                // Check if the test is aware whether or not it can control the broker life cycle, and if so provide
                // additional instrumentation for it to control the in-vm broker through.
                if (test instanceof BrokerLifecycleAware)
                {
                    BrokerLifecycleAware inVMTest = (BrokerLifecycleAware) test;
                    inVMTest.setInVmBrokers();
                    inVMTest.setLiveBroker(1);
                    inVMTest.setFailureMechanism(new CauseFailureInVM(inVMTest));
                }
            }
        }

        // Run the test.
View Full Code Here

TOP

Related Classes of org.apache.qpid.test.framework.BrokerLifecycleAware

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.