Class AbstractPowerMockTestListenerBase
java.lang.Object
org.powermock.core.spi.support.AbstractPowerMockTestListenerBase
- All Implemented Interfaces:
PowerMockTestListener
- Direct Known Subclasses:
AnnotationEnabler, FieldDefaulter
An empty implementation of the
PowerMockTestListener interface. May
be inherited by clients that wants to provide empty implementations of some
of the interface methods.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterTestMethod(Object testInstance, Method method, Object[] arguments, TestMethodResult testResult) Provides an empty implementation.voidafterTestSuiteEnded(Class<?> testClass, Method[] methods, TestSuiteResult testResult) Provides an empty implementation.voidbeforeTestMethod(Object testInstance, Method method, Object[] arguments) Provides an empty implementation.voidbeforeTestSuiteStarted(Class<?> testClass, Method[] testMethods) Provides an empty implementation.
-
Constructor Details
-
AbstractPowerMockTestListenerBase
public AbstractPowerMockTestListenerBase()
-
-
Method Details
-
afterTestMethod
public void afterTestMethod(Object testInstance, Method method, Object[] arguments, TestMethodResult testResult) throws Exception Provides an empty implementation.- Specified by:
afterTestMethodin interfacePowerMockTestListener- Parameters:
method- The test method that is currently executed.arguments- The arguments passed to the test method if any. May be an empty array but nevernull.testResult- The outcome of the test method.- Throws:
Exception- If something unexpected occurs.
-
beforeTestMethod
public void beforeTestMethod(Object testInstance, Method method, Object[] arguments) throws Exception Provides an empty implementation.- Specified by:
beforeTestMethodin interfacePowerMockTestListener- Parameters:
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 nevernull.- Throws:
Exception- If something unexpected occurs.
-
beforeTestSuiteStarted
Provides an empty implementation.- Specified by:
beforeTestSuiteStartedin interfacePowerMockTestListener- Parameters:
testClass- The type of the test to be executed.testMethods- The test methods that will be executed during the test.- Throws:
Exception- If something unexpected occurs.
-
afterTestSuiteEnded
public void afterTestSuiteEnded(Class<?> testClass, Method[] methods, TestSuiteResult testResult) throws Exception Provides an empty implementation.- Specified by:
afterTestSuiteEndedin interfacePowerMockTestListener- Parameters:
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.- Throws:
Exception- If something unexpected occurs.
-