| Modifier and Type | Method and Description |
|---|---|
| public < type of the class to mock T> T | Returns: the newly created proxythe class to mock by the factory toMock, InvocationHandler the handler that will be linked to the created proxy handler, Method[] the subset of mockedMethods, ConstructorArgs toMock's methods to mock, or
null to mock all methods.the constructor arguments to use, or null to use
heuristics to choose a constructor. constructorArgs)
|
| public InvocationHandler | Returns: the handler handling method calls for themocka mock instance previously returned by mock)createProxy.Returns the invocation handler for |
| createProxy | back to summary |
|---|---|
public <T> T createProxy(Class<T> toMock, InvocationHandler handler, Method[] mockedMethods, ConstructorArgs constructorArgs)
| |
| getInvocationHandler | back to summary |
|---|---|
| public InvocationHandler getInvocationHandler(Object mock) Returns the invocation handler for
| |