| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public <T> T | createProxy(Class<T>
the 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)Implements org. |
| public InvocationHandler | getInvocationHandler(Object
a mock instance previously returned by mock)createProxy.Implements org. mock;
|
| JavaProxyFactory | back to summary |
|---|---|
| public JavaProxyFactory() | |
| createProxy | back to summary |
|---|---|
| public <T> T createProxy(Class<T> toMock, InvocationHandler handler, Method[] mockedMethods, ConstructorArgs constructorArgs) Implements org.
| |
| getInvocationHandler | back to summary |
|---|---|
| public InvocationHandler getInvocationHandler(Object mock) Implements org. Doc from org. Returns the invocation handler for
| |