Examples of WithInheritedBindingTypeBean


Examples of org.apache.webbeans.newtests.interceptors.business.common.WithInheritedBindingTypeBean

        Object reference = getBeanManager().getReference(bean, WithInheritedBindingTypeBean.class, ctx);
        Assert.assertNotNull(reference);
       
        Assert.assertTrue(reference instanceof WithInheritedBindingTypeBean);
       
        WithInheritedBindingTypeBean beanInstance = (WithInheritedBindingTypeBean)reference;
       
        beanInstance.business();
       
       
        Assert.assertTrue(TransactionInterceptor.ECHO);
        Assert.assertTrue(SecureInterceptor.ECHO);
       
        ContextFactory.destroyRequestContext(null);
        ContextFactory.initRequestContext(null);
       
        reference = getBeanManager().getReference(bean, WithInheritedBindingTypeBean.class, ctx);
        beanInstance = (WithInheritedBindingTypeBean)reference;
        beanInstance.business();
       
        Assert.assertEquals(2, TransactionInterceptor.count);
       
        shutDownContainer();
       
View Full Code Here

Examples of org.apache.webbeans.newtests.interceptors.business.common.WithInheritedBindingTypeBean

        Object reference = getBeanManager().getReference(bean, WithInheritedBindingTypeBean.class, ctx);
        Assert.assertNotNull(reference);
       
        Assert.assertTrue(reference instanceof WithInheritedBindingTypeBean);
       
        WithInheritedBindingTypeBean beanInstance = (WithInheritedBindingTypeBean)reference;
       
        beanInstance.business();
       
       
        Assert.assertTrue(TransactionInterceptor.ECHO);
        Assert.assertTrue(SecureInterceptor.ECHO);
       
        ContextFactory.destroyRequestContext(null);
        ContextFactory.initRequestContext(null);
       
        reference = getBeanManager().getReference(bean, WithInheritedBindingTypeBean.class, ctx);
        beanInstance = (WithInheritedBindingTypeBean)reference;
        beanInstance.business();
       
        Assert.assertEquals(2, TransactionInterceptor.coount);
       
        shutDownContainer();
       
View Full Code Here

Examples of org.apache.webbeans.newtests.interceptors.business.common.WithInheritedBindingTypeBean

        Object reference = getBeanManager().getReference(bean, WithInheritedBindingTypeBean.class, ctx);
        Assert.assertNotNull(reference);
       
        Assert.assertTrue(reference instanceof WithInheritedBindingTypeBean);
       
        WithInheritedBindingTypeBean beanInstance = (WithInheritedBindingTypeBean)reference;
       
        beanInstance.business();
       
       
        Assert.assertTrue(TransactionInterceptor.ECHO);
        Assert.assertTrue(SecureInterceptor.ECHO);

        WebBeansContext webBeansContext = WebBeansContext.getInstance();
        webBeansContext.getContextFactory().destroyRequestContext(null);
        webBeansContext.getContextFactory().initRequestContext(null);

        reference = getBeanManager().getReference(bean, WithInheritedBindingTypeBean.class, ctx);
        beanInstance = (WithInheritedBindingTypeBean)reference;
        beanInstance.business();
       
        Assert.assertEquals(2, TransactionInterceptor.count);
       
        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.