Package org.jboss.cdi.tck.tests.implementation.builtin.metadata

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

Related Classes of org.jboss.cdi.tck.tests.implementation.builtin.metadata.YoghurtInterceptor

Copyright © 2018 www.massapicom. 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.