|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Incubating public interface MockHandler
Mockito handler of an invocation on a mock. This is a core part of the API, the heart of Mockito.
See also the MockMaker
.
This api is work in progress. Do not provide your own implementations.
Mockito will provide you with the implementation via other MockMaker
methods.
Method Summary | |
---|---|
java.lang.Object |
handle(Invocation invocation)
Takes an invocation object and handles it. |
Method Detail |
---|
@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 handle
java.lang.Throwable
- Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |