org.powermock.core.spi
Interface DefaultBehavior

All Known Subinterfaces:
MethodInvocationControl, NewInvocationControl<T>
All Known Implementing Classes:
EasyMockMethodInvocationControl, MockitoMethodInvocationControl, MockitoNewInvocationControl, NewInvocationControlImpl

public interface DefaultBehavior

Interface that provides the replay, verify and reset behavior for mock objects and classes.


Method Summary
 Object replay(Object... mocks)
          Replay the given objects or classes.
 Object reset(Object... mocks)
          Reset the given objects or classes.
 Object verify(Object... mocks)
          Verify the given objects or classes.
 

Method Detail

replay

Object replay(Object... mocks)
Replay the given objects or classes. May throw exception if replay is not needed or not supported.

Parameters:
mock - The object(s) to replay. May be null.
Returns:
the result of the replay (may be null).

verify

Object verify(Object... mocks)
Verify the given objects or classes. May throw exception if verify is not needed or not supported.

Parameters:
mock - The object(s) to verify. May be null.
Returns:
the result of the verification (may be null).

reset

Object reset(Object... mocks)
Reset the given objects or classes. May throw exception if reset is not needed or not supported.

Parameters:
mock - The object(s) to replay. May be null.
Returns:
the result of the replay (may be null).


Copyright © 2007-2012. All Rights Reserved.