public final class ObjectMethodsFilter extends Object implements InvocationHandler, Serializable
equals, hashCode, toString,
and finalize in a special way. Then, for other calls, it delegates to the mock handler.| Constructor and Description |
|---|
ObjectMethodsFilter(Class<?> toMock,
MockInvocationHandler delegate,
String name) |
| Modifier and Type | Method and Description |
|---|---|
MockInvocationHandler |
getDelegate() |
String |
getName() |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
public ObjectMethodsFilter(Class<?> toMock, MockInvocationHandler delegate, String name)
public String getName()
public final Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke in interface InvocationHandlerThrowablepublic MockInvocationHandler getDelegate()
Copyright © 2001–2024 EasyMock contributors. All rights reserved.