org.mockito.invocation
public interface MockHandler extends Serializable
Modifier and Type | Method and Description |
---|---|
Object |
handle(Invocation invocation)
Takes an invocation object and handles it.
|
Object handle(Invocation invocation) throws Throwable
The default implementation provided by Mockito handles invocations by recording method calls on mocks for further verification, captures the stubbing information when mock is stubbed, returns the stubbed values for invocations that have been stubbed, and much more.
invocation
- The invocation to handleThrowable
- Throwable