Package net.sf.cglib.proxy

Examples of net.sf.cglib.proxy.MethodProxy.invoke()


    public void should_delegate_method_call_to_the_target() throws Throwable {
        //Given
        PropertyMeta propertyMeta = completeBean(Void.class, String.class).propertyName("name").accessors()
                .type(PropertyType.SIMPLE).build();
        MethodProxy proxy = mock(MethodProxy.class);
        when(proxy.invoke(target, args)).thenReturn("name");

        //When
        Object name = interceptor.intercept(target, propertyMeta.getGetter(), args, proxy);

        //Then
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.