Package com.alibaba.citrus.service.dataresolver.data

Examples of com.alibaba.citrus.service.dataresolver.data.ContextAwareResolver.resolve()


        // RequestResolver
        ContextAwareResolver resolver0 = (ContextAwareResolver) resolvers[0];
        ContextAwareResolver resolver1 = (ContextAwareResolver) resolvers[1];

        assertTrue(resolver0.resolve() instanceof HttpServletRequest);
        assertEquals("111", resolver1.resolve());

        // ����extraObject: MethodParameter
        MethodParameter param0 = resolver0.getContext().getExtraObject(MethodParameter.class);
        assertEquals(HttpServletRequest.class, param0.getParameterType());
        assertEquals(0, param0.getParameterIndex());
View Full Code Here


        // RequestResolver
        ContextAwareResolver resolver0 = (ContextAwareResolver) resolvers[0];
        ContextAwareResolver resolver1 = (ContextAwareResolver) resolvers[1];

        assertTrue(resolver0.resolve() instanceof HttpServletRequest);
        assertEquals("111", resolver1.resolve());

        // 包含extraObject: MethodParameter
        MethodParameter param0 = resolver0.getContext().getExtraObject(MethodParameter.class);
        assertEquals(HttpServletRequest.class, param0.getParameterType());
        assertEquals(0, param0.getParameterIndex());
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.