public interface PowerMockTestListener
Modifier and Type | Method and Description |
---|---|
void |
afterTestMethod(java.lang.Object testInstance,
java.lang.reflect.Method method,
java.lang.Object[] arguments,
TestMethodResult testResult)
Invoked after each test method.
|
void |
afterTestSuiteEnded(java.lang.Class<?> testClass,
java.lang.reflect.Method[] methods,
TestSuiteResult testResult)
Invoked after a test suite has ended.
|
void |
beforeTestMethod(java.lang.Object testInstance,
java.lang.reflect.Method method,
java.lang.Object[] arguments)
Invoked before each test method.
|
void |
beforeTestSuiteStarted(java.lang.Class<?> testClass,
java.lang.reflect.Method[] testMethods)
Invoked once before the test run has started.
|
void beforeTestSuiteStarted(java.lang.Class<?> testClass, java.lang.reflect.Method[] testMethods) throws java.lang.Exception
testClass
- The type of the test to be executed.testMethods
- The test methods that will be executed during the test.java.lang.Exception
- If something unexpected occurs.void beforeTestMethod(java.lang.Object testInstance, java.lang.reflect.Method method, java.lang.Object[] arguments) throws java.lang.Exception
testInstance
- The test case instance.method
- The test method that is currently executed.arguments
- The arguments passed to the test method if any. May be an
empty array but never null
.java.lang.Exception
- If something unexpected occurs.void afterTestMethod(java.lang.Object testInstance, java.lang.reflect.Method method, java.lang.Object[] arguments, TestMethodResult testResult) throws java.lang.Exception
method
- The test method that is currently executed.arguments
- The arguments passed to the test method if any. May be an
empty array but never null
.testResult
- The outcome of the test method.java.lang.Exception
- If something unexpected occurs.void afterTestSuiteEnded(java.lang.Class<?> testClass, java.lang.reflect.Method[] methods, TestSuiteResult testResult) throws java.lang.Exception
testClass
- The type of the test to be executed.methods
- The test methods that were executed during the test.testResult
- The outcome of the test suite.java.lang.Exception
- If something unexpected occurs.