org.mockito.internal
Class MockHandler<T>
java.lang.Object
org.mockito.internal.MockHandler<T>
- Type Parameters:
T - type of mock object to handle
- All Implemented Interfaces:
- net.sf.cglib.proxy.Callback, net.sf.cglib.proxy.MethodInterceptor, MockAwareInterceptor<T>
public class MockHandler<T>
- extends java.lang.Object
- implements MockAwareInterceptor<T>
Invocation handler set on mock objects.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockHandler
public MockHandler(java.lang.String mockName,
MockingProgress mockingProgress,
MatchersBinder matchersBinder)
intercept
public java.lang.Object intercept(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args,
net.sf.cglib.proxy.MethodProxy methodProxy)
throws java.lang.Throwable
- Specified by:
intercept in interface net.sf.cglib.proxy.MethodInterceptor- Specified by:
intercept in interface MockAwareInterceptor<T>
- Throws:
java.lang.Throwable
verifyNoMoreInteractions
public void verifyNoMoreInteractions()
voidMethodStubbable
public VoidMethodStubbable<T> voidMethodStubbable()
setMock
public void setMock(T mock)
- Specified by:
setMock in interface MockAwareInterceptor<T>
getRegisteredInvocations
public java.util.List<Invocation> getRegisteredInvocations()
getMockName
public java.lang.String getMockName()