org.apache.qpid.test.framework.qpid
Class CauseFailureInVM

java.lang.Object
  extended by org.apache.qpid.test.framework.qpid.CauseFailureInVM
All Implemented Interfaces:
CauseFailure

public class CauseFailureInVM
extends Object
implements CauseFailure

CRC Card
Responsibilities Collaborations
Cause messaging broker failure on the active in-vm broker. TransportConnection, ApplicationRegistry


Constructor Summary
CauseFailureInVM(BrokerLifecycleAware inVMTest)
          Creates an automated failure mechanism for testing against in-vm brokers.
 
Method Summary
 void causeFailure()
          Causes the active message broker to fail.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CauseFailureInVM

public CauseFailureInVM(BrokerLifecycleAware inVMTest)
Creates an automated failure mechanism for testing against in-vm brokers. The test to create the mechanism for is specified, and as this failure is for in-vm brokers, the test must be BrokerLifecycleAware. The test must also report that it is currently being run against an in-vm broker, and it is a runtime error if it is not, as the creator of this failure mechanism should already have checked that it is.

Parameters:
inVMTest - The test case to create an automated failure mechanism for.
Method Detail

causeFailure

public void causeFailure()
Causes the active message broker to fail.

Specified by:
causeFailure in interface CauseFailure


Licensed to the Apache Software Foundation