|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.powermock.tests.utils.impl.PowerMockTestNotifierImpl
public class PowerMockTestNotifierImpl
Utility class that may be used by PowerMock test runners to notify listeners.
Uses the MockRepository to set and get state.
| Constructor Summary | |
|---|---|
PowerMockTestNotifierImpl(PowerMockTestListener[] powerMockTestListeners)
Create a new instance with the following parameters. |
|
| Method Summary | |
|---|---|
void |
notifyAfterTestMethod(boolean successful)
Notifies all listeners with the "after test method ended" event. |
void |
notifyAfterTestMethod(java.lang.Object testInstance,
java.lang.reflect.Method method,
java.lang.Object[] arguments,
TestMethodResult testResult)
Notifies all listeners with the "after test method ended" event. |
void |
notifyAfterTestSuiteEnded(java.lang.Class<?> testClass,
java.lang.reflect.Method[] methods,
TestSuiteResult testResult)
Notifies all listeners with the "after test suite ended" event. |
void |
notifyBeforeTestMethod(java.lang.Object testInstance,
java.lang.reflect.Method testMethod,
java.lang.Object[] arguments)
Notifies all listeners with the "before test method started" event. |
void |
notifyBeforeTestSuiteStarted(java.lang.Class<?> testClass,
java.lang.reflect.Method[] testMethods)
Notifies all listeners with the "before test suite started" event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PowerMockTestNotifierImpl(PowerMockTestListener[] powerMockTestListeners)
powerMockTestListeners - The PowerMock listeners that will be notified.| Method Detail |
|---|
public void notifyAfterTestMethod(java.lang.Object testInstance,
java.lang.reflect.Method method,
java.lang.Object[] arguments,
TestMethodResult testResult)
notifyAfterTestMethod in interface PowerMockTestNotifier
public void notifyAfterTestSuiteEnded(java.lang.Class<?> testClass,
java.lang.reflect.Method[] methods,
TestSuiteResult testResult)
notifyAfterTestSuiteEnded in interface PowerMockTestNotifier
public void notifyBeforeTestMethod(java.lang.Object testInstance,
java.lang.reflect.Method testMethod,
java.lang.Object[] arguments)
notifyBeforeTestMethod in interface PowerMockTestNotifier
public void notifyBeforeTestSuiteStarted(java.lang.Class<?> testClass,
java.lang.reflect.Method[] testMethods)
notifyBeforeTestSuiteStarted in interface PowerMockTestNotifierpublic void notifyAfterTestMethod(boolean successful)
PowerMockTestNotifier.notifyBeforeTestMethod(Object, Method, Object[]) must have been
called before this method. Otherwise revert to using the
PowerMockTestNotifier.notifyAfterTestMethod(Object, Method, Object[], TestMethodResult)
method.
notifyAfterTestMethod in interface PowerMockTestNotifiersuccessful - true if the test was successful,
false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||