Package org.apache.shiro.aop

Examples of org.apache.shiro.aop.MethodInterceptor.invoke()


public class AopAllianceMethodInterceptorAdapterTest {
    @Test
    public void testInvoke() throws Throwable {
        MethodInvocation allianceInvocation = createMock(MethodInvocation.class);
        MethodInterceptor mockShiroInterceptor = createMock(MethodInterceptor.class);
        expect(mockShiroInterceptor.invoke(anyObject(AopAllianceMethodInvocationAdapter.class))).andAnswer(new IAnswer<Object>() {
            public Object answer() throws Throwable {
                return getCurrentArguments()[0];
            }
        });
        final Object expectedValue = new Object();
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.