Package org.powermock.core.spi.support
Class AbstractPowerMockTestListenerBase
- java.lang.Object
-
- org.powermock.core.spi.support.AbstractPowerMockTestListenerBase
-
- All Implemented Interfaces:
PowerMockTestListener
- Direct Known Subclasses:
AnnotationEnabler,FieldDefaulter
public class AbstractPowerMockTestListenerBase extends java.lang.Object implements PowerMockTestListener
An empty implementation of thePowerMockTestListenerinterface. May be inherited by clients that wants to provide empty implementations of some of the interface methods.
-
-
Constructor Summary
Constructors Constructor Description AbstractPowerMockTestListenerBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterTestMethod(java.lang.Object testInstance, java.lang.reflect.Method method, java.lang.Object[] arguments, TestMethodResult testResult)Provides an empty implementation.voidafterTestSuiteEnded(java.lang.Class<?> testClass, java.lang.reflect.Method[] methods, TestSuiteResult testResult)Provides an empty implementation.voidbeforeTestMethod(java.lang.Object testInstance, java.lang.reflect.Method method, java.lang.Object[] arguments)Provides an empty implementation.voidbeforeTestSuiteStarted(java.lang.Class<?> testClass, java.lang.reflect.Method[] testMethods)Provides an empty implementation.
-
-
-
Method Detail
-
afterTestMethod
public void afterTestMethod(java.lang.Object testInstance, java.lang.reflect.Method method, java.lang.Object[] arguments, TestMethodResult testResult) throws java.lang.ExceptionProvides an empty implementation.- Specified by:
afterTestMethodin interfacePowerMockTestListenermethod- 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:
java.lang.Exception- If something unexpected occurs.
-
beforeTestMethod
public void beforeTestMethod(java.lang.Object testInstance, java.lang.reflect.Method method, java.lang.Object[] arguments) throws java.lang.ExceptionProvides 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:
java.lang.Exception- If something unexpected occurs.
-
beforeTestSuiteStarted
public void beforeTestSuiteStarted(java.lang.Class<?> testClass, java.lang.reflect.Method[] testMethods) throws java.lang.ExceptionProvides 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:
java.lang.Exception- If something unexpected occurs.
-
afterTestSuiteEnded
public void afterTestSuiteEnded(java.lang.Class<?> testClass, java.lang.reflect.Method[] methods, TestSuiteResult testResult) throws java.lang.ExceptionProvides 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:
java.lang.Exception- If something unexpected occurs.
-
-