|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PowerMockTestListener
This interface should be implemented by all PowerMock test listeners. The listener will be notified on the events present in this interface. Please note that a listener cannot hold state.
Method Summary | |
---|---|
void |
afterTestMethod(Object testInstance,
Method method,
Object[] arguments,
TestMethodResult testResult)
Invoked after each test method |
void |
afterTestSuiteEnded(Class<?> testClass,
Method[] methods,
TestSuiteResult testResult)
Invoked after a test suite has ended. |
void |
beforeTestMethod(Object testInstance,
Method method,
Object[] arguments)
Invoked before each test method. |
void |
beforeTestSuiteStarted(Class<?> testClass,
Method[] testMethods)
Invoked once before the test run has started. |
Method Detail |
---|
void beforeTestSuiteStarted(Class<?> testClass, Method[] testMethods) throws Exception
testClass
- The type of the test to be executed.testMethods
- The test methods that will be executed during the test.
Exception
- If something unexpected occurs.void beforeTestMethod(Object testInstance, Method method, Object[] arguments) throws 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
.
Exception
- If something unexpected occurs.void afterTestMethod(Object testInstance, Method method, Object[] arguments, TestMethodResult testResult) throws 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.
Exception
- If something unexpected occurs.void afterTestSuiteEnded(Class<?> testClass, Method[] methods, TestSuiteResult testResult) throws 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.
Exception
- If something unexpected occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |