Class MockInvocationHandler
java.lang.Object
mockit.internal.reflection.MockInvocationHandler
- All Implemented Interfaces:
InvocationHandler
Handles invocations to all kinds of mock implementations created for interfaces and annotation types through any of
the mocking APIs.
The java.lang.Object methods equals, hashCode, and toString are
handled in a meaningful way, returning a value that makes sense for the proxy instance. The special
Annotation contracts for these three methods is not observed, though, since it would require
making dynamic calls to the mocked annotation attributes.
Any other method invocation is handled by simply returning the default value according to the method's return type (as defined in DefaultValues).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
MockInvocationHandler
public MockInvocationHandler()
-
-
Method Details
-
newMockedInstance
-
invoke
-