@Incubating public interface MockHandler extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
handle(Invocation invocation)
Takes an invocation object and handles it.
|
@Incubating java.lang.Object handle(Invocation invocation) throws java.lang.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 handlejava.lang.Throwable
- Throwable