Examples of SelfInterceptedClass


Examples of org.apache.webbeans.newtests.interceptors.resolution.interceptors.SelfInterceptedClass

                = new SelfInterceptorBeanBuilder<SelfInterceptedClass>(getWebBeansContext(), annotatedType, beanAttributes);
        ibb.defineSelfInterceptorRules();
        InterceptorBean<SelfInterceptedClass> bean = ibb.getBean();
        Assert.assertNotNull(bean);

        SelfInterceptedClass interceptedInstance = getInstance(SelfInterceptedClass.class);

        SelfInterceptedClass.interceptionCount = 0;
        interceptedInstance.someBusinessMethod();
        Assert.assertEquals(42, interceptedInstance.getMeaningOfLife());
        Assert.assertEquals(2, SelfInterceptedClass.interceptionCount);

        shutDownContainer();
    }
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.