public class FieldDefaulter extends AbstractPowerMockTestListenerBase
null
, an int
field is set to 0 and so on.Constructor and Description |
---|
FieldDefaulter() |
Modifier and Type | Method and Description |
---|---|
void |
afterTestMethod(java.lang.Object testInstance,
java.lang.reflect.Method method,
java.lang.Object[] arguments,
TestMethodResult testResult)
Provides an empty implementation.
|
afterTestSuiteEnded, beforeTestMethod, beforeTestSuiteStarted
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 PowerMockTestListener
afterTestMethod
in class AbstractPowerMockTestListenerBase
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.java.lang.Exception
- If something unexpected occurs.