public class AbstractPowerMockTestListenerBase extends 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(Object testInstance,
Method method,
Object[] arguments,
TestMethodResult testResult)
Provides an empty implementation.
|
void |
afterTestSuiteEnded(Class<?> testClass,
Method[] methods,
TestSuiteResult testResult)
Provides an empty implementation.
|
void |
beforeTestMethod(Object testInstance,
Method method,
Object[] arguments)
Provides an empty implementation.
|
void |
beforeTestSuiteStarted(Class<?> testClass,
Method[] testMethods)
Provides an empty implementation.
|
public void afterTestMethod(Object testInstance, Method method, Object[] arguments, TestMethodResult testResult) throws Exception
afterTestMethod in interface PowerMockTestListenermethod - 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.Exception - If something unexpected occurs.public void beforeTestMethod(Object testInstance, Method method, Object[] arguments) throws Exception
beforeTestMethod in interface PowerMockTestListenertestInstance - 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.Exception - If something unexpected occurs.public void beforeTestSuiteStarted(Class<?> testClass, Method[] testMethods) throws Exception
beforeTestSuiteStarted in interface PowerMockTestListenertestClass - The type of the test to be executed.testMethods - The test methods that will be executed during the test.Exception - If something unexpected occurs.public void afterTestSuiteEnded(Class<?> testClass, Method[] methods, TestSuiteResult testResult) throws Exception
afterTestSuiteEnded in interface PowerMockTestListenertestClass - 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.Exception - If something unexpected occurs.Copyright © 2007–2015. All rights reserved.