Examples of YoghurtInterceptor


Examples of org.jboss.cdi.tck.tests.implementation.builtin.metadata.YoghurtInterceptor

    public void testInterceptorMetadata() {

        Interceptor<?> interceptor = getCurrentManager()
                .resolveInterceptors(InterceptionType.AROUND_INVOKE, new Frozen.Literal()).iterator().next();
        Bean<?> sessionBean = getUniqueBean(Yoghurt.class);
        YoghurtInterceptor fatYoghurtInterceptor = yoghurt.getInterceptorInstance();
        assertEquals(interceptor, fatYoghurtInterceptor.getBean());
        assertEquals(interceptor, fatYoghurtInterceptor.getInterceptor());
        assertEquals(sessionBean, fatYoghurtInterceptor.getInterceptedBean());
    }
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.