1 /*
2  * Copyright (c) 2007 Mockito contributors
3  * This program is made available under the terms of the MIT License.
4  */
5 package org.mockito.internal.invocation.realmethod;
6 
7 import java.io.Serializable;
8 
9 import org.mockito.internal.creation.MockitoMethodProxy;
10 
11 
12 public class CGLIBProxyRealMethod implements RealMethod, HasCGLIBMethodProxy, Serializable {
13 
14     private static final long serialVersionUID = -4596470901191501582L;
15     private final MockitoMethodProxy methodProxy;
16 
CGLIBProxyRealMethod(MockitoMethodProxy methodProxy)17     public CGLIBProxyRealMethod(MockitoMethodProxy methodProxy) {
18         this.methodProxy = methodProxy;
19     }
20 
invoke(Object target, Object[] arguments)21     public Object invoke(Object target, Object[] arguments) throws Throwable {
22         return methodProxy.invokeSuper(target, arguments);
23     }
24 
getMethodProxy()25     public MockitoMethodProxy getMethodProxy() {
26         return methodProxy;
27     }
28 }
29