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