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(Object testInstance,
Method method,
Object[] arguments,
TestMethodResult testResult)
Provides an empty implementation.
|
afterTestSuiteEnded, beforeTestMethod, beforeTestSuiteStarted
public void afterTestMethod(Object testInstance, Method method, Object[] arguments, TestMethodResult testResult) throws 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.Exception
- If something unexpected occurs.Copyright © 2019. All rights reserved.