Class UnitTest

java.lang.Object
com.tibco.ep.testing.framework.UnitTest

public abstract class UnitTest extends Object

UnitTest accessor functions

Unit test cases can inherit from, or use a delegate of this class to access transactional abort mode, transactional deadlock detection, transactional leak detection and test timeouts. When using in junit test cases, call in @Before and @After functions :

 @Before
 public void initializeTest() {
     this.initialize();
 }

 @After
 public void completeTest() throws TransactionalMemoryLeakException, TransactionalDeadlockDetectedException {
     this.complete();
 }
 
By default, a unit test timeout is enabled with a value of DEFAULT_TIMEOUT_SECONDS seconds. If test execution exceeds this value a node snapshot is created in the node directory of the test node. The behavior associated with a test timeout can be changed using setTimeoutBehavior(Runnable). The test timeout value an be changed using setTimeoutSeconds(long) and timeouts can be disabled using disableTimeout()

To avoid test timeouts during debugging sessions, timeouts are automatically disabled if the JVM was started with a Java agent option (e.g -agentlib...)