public final class AndroidClassProxyFactory extends Object implements IProxyFactory
| Constructor and Description |
|---|
AndroidClassProxyFactory() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
createProxy(Class<T> toMock,
InvocationHandler handler,
Method[] mockedMethods,
ConstructorArgs constructorArgs) |
InvocationHandler |
getInvocationHandler(Object mock)
Returns the invocation handler for
mock; |
public <T> T createProxy(Class<T> toMock, InvocationHandler handler, Method[] mockedMethods, ConstructorArgs constructorArgs)
createProxy in interface IProxyFactorytoMock - the class to mock by the factoryhandler - the handler that will be linked to the created proxymockedMethods - the subset of toMock's methods to mock, or
null to mock all methods.constructorArgs - the constructor arguments to use, or null to use
heuristics to choose a constructor.public InvocationHandler getInvocationHandler(Object mock)
IProxyFactorymock;getInvocationHandler in interface IProxyFactorymock - a mock instance previously returned by createProxy.mockCopyright © 2001–2014 EasyMock contributors. All rights reserved.