org.unitils.io
Class IOModule.IOTestListener
java.lang.Object
org.unitils.core.TestListener
org.unitils.io.IOModule.IOTestListener
- Enclosing class:
- IOModule
protected class IOModule.IOTestListener
- extends TestListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fileContentAnnotationHandler
protected FileContentAnnotationHandler fileContentAnnotationHandler
tempFileAnnotationHandler
protected TempFileAnnotationHandler tempFileAnnotationHandler
tempDirAnnotationHandler
protected TempDirAnnotationHandler tempDirAnnotationHandler
IOModule.IOTestListener
public IOModule.IOTestListener(FileContentAnnotationHandler fileContentAnnotationHandler,
TempFileAnnotationHandler tempFileAnnotationHandler,
TempDirAnnotationHandler tempDirAnnotationHandler)
beforeTestSetUp
public void beforeTestSetUp(Object testObject,
Method testMethod)
- Description copied from class:
TestListener
- Invoked before the test setup (eg @Before) is run.
This can be overridden to for example initialize the test-fixture.
- Overrides:
beforeTestSetUp
in class TestListener
- Parameters:
testObject
- The test instance, not nulltestMethod
- The test method, not null
afterTestMethod
public void afterTestMethod(Object testObject,
Method testMethod,
Throwable testThrowable)
- Description copied from class:
TestListener
- Invoked after the test run but before the test tear down (e.g. @After).
This can be overridden to for example add assertions for testing the result of the test.
It the before method or the test raised an exception, this exception will be passed to the method.
- Overrides:
afterTestMethod
in class TestListener
- Parameters:
testObject
- The test instance, not nulltestMethod
- The test method, not nulltestThrowable
- The throwable thrown during the test or beforeTestMethod, null if none was thrown
Copyright © 2011. All Rights Reserved.