org.unitils
Class UnitilsInvocationTestBase
java.lang.Object
org.unitils.UnitilsInvocationTestBase
public abstract class UnitilsInvocationTestBase
- extends Object
Base class for the invocation listener tests.
- Author:
- Filip Neven, Tim Ducheyne
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tracingTestListener
protected TracingTestListener tracingTestListener
testFramework
protected TracingTestListener.TestFramework testFramework
testExecutor
protected TestExecutor testExecutor
UnitilsInvocationTestBase
public UnitilsInvocationTestBase(TracingTestListener.TestFramework testFramework,
TestExecutor testExecutor)
storeOriginalTestListener
public static void storeOriginalTestListener()
restoreOrginalTestListener
public static void restoreOrginalTestListener()
init
public void init()
throws Exception
- Sets up the test installing the tracing test listener that will record all method invocations during the test.
The current test listeners are stored so that they can be restored during the class tear down.
Also re-initializes the base-classes so that, for example, beforeAll() will be called another time.
- Throws:
Exception
cleanUp
public void cleanUp()
throws Exception
- Throws:
Exception
assertInvocationOrder
public void assertInvocationOrder(Class<?> testClass1,
Class<?> testClass2)
throws Exception
- Throws:
Exception
assertInvocation
protected void assertInvocation(TracingTestListener.Invocation invocation,
Class<?> testClass,
TracingTestListener.TestFramework... testFrameworks)
assertNoMoreInvocations
protected void assertNoMoreInvocations()
isApplicableFor
protected boolean isApplicableFor(TracingTestListener.TestFramework[] testFrameworks)
Copyright © 2011. All Rights Reserved.