public interface PowerMockTestListener
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.Copyright © 2007–2016. All rights reserved.