public class UnitilsInvocationExceptionTest (Code)
Test for the flows in case an exception occurs in one of the listener or test methods for JUnit3 (
UnitilsJUnit3 ),
JUnit4 (@link UnitilsJUnit4TestClassRunner}) and TestNG (
UnitilsTestNG ).
Except for some minor differences, the flows for all these test frameworks
are expected to be the same (see assertInvocationOrder* methods).
author: Tim Ducheyne author: Filip Neven See Also:UnitilsJUnit3Test_TestClass1 See Also:UnitilsJUnit4Test_TestClass1 See Also:UnitilsTestNGTest_TestClass1
Method Summary
public static void
classSetUp() Sets up the test by installing the tracing test listener that will record all method invocations during the test.
public static void
classTearDown() This will put back the old test listeners that were replaced by the tracing test listener.
public void
setUp() Sets up the test by clearing the previous recorded method invocations.
Sets up the test by 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.
Sets up the test by clearing the previous recorded method invocations. This will also re-initiliaze
the base-classes so that, for example beforeAll() will be called another time.