Package org.mockito.invocation
Interface MockHandler
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
InternalMockHandler<T>
-
Method Summary
Modifier and TypeMethodDescriptionhandle
(Invocation invocation) Takes an invocation object and handles it.
-
Method Details
-
handle
Takes an invocation object and handles it.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.
- Parameters:
invocation
- The invocation to handle- Returns:
- Result
- Throws:
Throwable
- Throwable
-