protected class InjectModule.InjectTestListener extends TestListener
TestListener for this module| Modifier | Constructor and Description |
|---|---|
protected |
InjectModule.InjectTestListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterTestMethod(Object testObject,
Method testMethod,
Throwable throwable)
After test execution, if requested restore all values that were replaced in the static injection.
|
void |
beforeTestMethod(Object testObject,
Method testMethod)
Before executing a test method (i.e. after the fixture methods), the injection is performed, since
objects to inject or targets are possibly instantiated during the fixture.
|
afterCreateTestObject, afterTestTearDown, beforeTestClass, beforeTestSetUp, shouldInvokeTestMethodpublic void beforeTestMethod(Object testObject, Method testMethod)
beforeTestMethod in class TestListenertestObject - The test object, not nulltestMethod - The test method, not nullpublic void afterTestMethod(Object testObject, Method testMethod, Throwable throwable)
afterTestMethod in class TestListenertestObject - The test object, not nulltestMethod - The test method, not nullthrowable - The throwable thrown during the test, null if none was thrownCopyright © 2016. All Rights Reserved.