Package org.powermock.core.spi
Interface DefaultBehavior
- All Known Subinterfaces:
MethodInvocationControl,NewInvocationControl<T>
- All Known Implementing Classes:
EasyMockMethodInvocationControl,EasyMockNewInvocationControl,MockitoMethodInvocationControl,MockitoNewInvocationControl
public interface DefaultBehavior
Interface that provides the replay, verify and reset behavior for mock
objects and classes.
-
Method Summary
-
Method Details
-
replay
Replay the given objects or classes. May throw exception if replay is not needed or not supported.- Parameters:
mocks- The object(s) to replay. May benull.- Returns:
- the result of the replay (may be
null).
-
reset
Reset the given objects or classes. May throw exception if reset is not needed or not supported.- Parameters:
mocks- The object(s) to replay. May benull.- Returns:
- the result of the replay (may be
null).
-