|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.powermock.core.spi.support.AbstractPowerMockTestListenerBase
org.powermock.core.testlisteners.FieldDefaulter
public class FieldDefaulter
A test listener that automatically set all instance fields to their default
values after each test method. E.g. an object field is set to
null, an int field is set to 0 and so on.
| Constructor Summary | |
|---|---|
FieldDefaulter()
|
|
| Method Summary | |
|---|---|
void |
afterTestMethod(java.lang.Object testInstance,
java.lang.reflect.Method method,
java.lang.Object[] arguments,
TestMethodResult testResult)
Provides an empty implementation. |
| Methods inherited from class org.powermock.core.spi.support.AbstractPowerMockTestListenerBase |
|---|
afterTestSuiteEnded, beforeTestMethod, beforeTestSuiteStarted |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FieldDefaulter()
| Method Detail |
|---|
public void afterTestMethod(java.lang.Object testInstance,
java.lang.reflect.Method method,
java.lang.Object[] arguments,
TestMethodResult testResult)
throws java.lang.Exception
AbstractPowerMockTestListenerBase
afterTestMethod in interface PowerMockTestListenerafterTestMethod in class AbstractPowerMockTestListenerBasemethod - 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.
java.lang.Exception - If something unexpected occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||