public interface PowerMockTestNotifier
Modifier and Type | Method and Description |
---|---|
void |
notifyAfterTestMethod(boolean successful)
Notifies all listeners with the "after test method ended" event.
|
void |
notifyAfterTestMethod(Object testInstance,
Method testMethod,
Object[] arguments,
TestMethodResult testResult)
Notifies all listeners with the "after test method ended" event.
|
void |
notifyAfterTestSuiteEnded(Class<?> testClass,
Method[] methods,
TestSuiteResult testResult)
Notifies all listeners with the "after test suite ended" event.
|
void |
notifyBeforeTestMethod(Object testInstance,
Method testMethod,
Object[] arguments)
Notifies all listeners with the "before test method started" event.
|
void |
notifyBeforeTestSuiteStarted(Class<?> testClass,
Method[] testMethods)
Notifies all listeners with the "before test suite started" event.
|
void notifyBeforeTestMethod(Object testInstance, Method testMethod, Object[] arguments)
testInstance
- instance of testtestMethod
- test method to be executedarguments
- arguments of test methodsvoid notifyAfterTestMethod(Object testInstance, Method testMethod, Object[] arguments, TestMethodResult testResult)
testInstance
- instance of testtestMethod
- test method to be executedarguments
- arguments of test methodstestResult
- result of running of testvoid notifyAfterTestMethod(boolean successful)
notifyBeforeTestMethod(Object, Method, Object[])
must have been
called before this method. Otherwise revert to using the
notifyAfterTestMethod(Object, Method, Object[], TestMethodResult)
method.successful
- true
if the test was successful,
false
otherwise.void notifyBeforeTestSuiteStarted(Class<?> testClass, Method[] testMethods)
testClass
- class of test suitetestMethods
- test case methodsvoid notifyAfterTestSuiteEnded(Class<?> testClass, Method[] methods, TestSuiteResult testResult)
testClass
- class of test suitemethods
- test case methodstestResult
- result of running of testCopyright © 2019. All rights reserved.