public class AbstractPowerMockTestListenerBase extends java.lang.Object implements PowerMockTestListener
PowerMockTestListener
interface. May
be inherited by clients that wants to provide empty implementations of some
of the interface methods.Constructor and Description |
---|
AbstractPowerMockTestListenerBase() |
Modifier and Type | Method and Description |
---|---|
void |
afterTestMethod(java.lang.Object testInstance,
java.lang.reflect.Method method,
java.lang.Object[] arguments,
TestMethodResult testResult)
Provides an empty implementation.
|
void |
afterTestSuiteEnded(java.lang.Class<?> testClass,
java.lang.reflect.Method[] methods,
TestSuiteResult testResult)
Provides an empty implementation.
|
void |
beforeTestMethod(java.lang.Object testInstance,
java.lang.reflect.Method method,
java.lang.Object[] arguments)
Provides an empty implementation.
|
void |
beforeTestSuiteStarted(java.lang.Class<?> testClass,
java.lang.reflect.Method[] testMethods)
Provides an empty implementation.
|
public void afterTestMethod(java.lang.Object testInstance, java.lang.reflect.Method method, java.lang.Object[] arguments, TestMethodResult testResult) throws java.lang.Exception
afterTestMethod
in interface PowerMockTestListener
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.public void beforeTestMethod(java.lang.Object testInstance, java.lang.reflect.Method method, java.lang.Object[] arguments) throws java.lang.Exception
beforeTestMethod
in interface PowerMockTestListener
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.public void beforeTestSuiteStarted(java.lang.Class<?> testClass, java.lang.reflect.Method[] testMethods) throws java.lang.Exception
beforeTestSuiteStarted
in interface PowerMockTestListener
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.public void afterTestSuiteEnded(java.lang.Class<?> testClass, java.lang.reflect.Method[] methods, TestSuiteResult testResult) throws java.lang.Exception
afterTestSuiteEnded
in interface PowerMockTestListener
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.