Examples of DependentScopedBean


Examples of org.apache.webbeans.newtests.interceptors.beans.DependentScopedBean

        Assert.assertTrue(DependentScopedBean.POST_CONSTRUCT);
       
        Assert.assertTrue(!DependentScopedBean.PRE_DESTROY);
       
        DependentScopedBean dbean = (DependentScopedBean)reference;
        dbean.sayHello();
        //X TODO this should finally work! Assert.assertTrue(DependentInterceptor.refCount == 1);
       
        Assert.assertTrue(DependentScopedBean.SAY_HELLO);
               
        bean.destroy(dbean, ctx);
View Full Code Here

Examples of org.apache.webbeans.newtests.interceptors.beans.DependentScopedBean

        Assert.assertTrue(DependentScopedBean.POST_CONSTRUCT);
       
        Assert.assertTrue(!DependentScopedBean.PRE_DESTROY);
       
        DependentScopedBean dbean = (DependentScopedBean)reference;
        dbean.sayHello();
       
        Assert.assertTrue(DependentScopedBean.SAY_HELLO);
               
        bean.destroy(dbean, ctx);
       
View Full Code Here

Examples of org.apache.webbeans.newtests.interceptors.beans.DependentScopedBean

        Assert.assertTrue(DependentScopedBean.POST_CONSTRUCT);
       
        Assert.assertTrue(!DependentScopedBean.PRE_DESTROY);
       
        DependentScopedBean dbean = (DependentScopedBean)reference;
        dbean.sayHello();

        //X TODO this should finally work!
        //X Assert.assertTrue(DependentInterceptor.refCount == 1);
       
        Assert.assertTrue(DependentScopedBean.SAY_HELLO);
View Full Code Here

Examples of org.apache.webbeans.newtests.interceptors.beans.DependentScopedBean

        Assert.assertTrue(DependentScopedBean.POST_CONSTRUCT);
       
        Assert.assertTrue(!DependentScopedBean.PRE_DESTROY);
       
        DependentScopedBean dbean = (DependentScopedBean)reference;
        dbean.sayHello();

        Assert.assertTrue(DependentInterceptor.refCount == 1);
       
        Assert.assertTrue(DependentScopedBean.SAY_HELLO);

        try {
            dbean.throwException();
        }
        catch (Exception e) {
            Assert.assertNotNull(DependentInterceptor.exceptionTarget);
            Assert.assertTrue(DependentInterceptor.exceptionTarget.equals(DependentScopedBean.class));
        }
View Full Code Here

Examples of org.apache.webbeans.newtests.interceptors.beans.DependentScopedBean

        Assert.assertTrue(DependentScopedBean.POST_CONSTRUCT);
       
        Assert.assertTrue(!DependentScopedBean.PRE_DESTROY);
       
        DependentScopedBean dbean = (DependentScopedBean)reference;
        dbean.sayHello();

        Assert.assertTrue(DependentInterceptor.refCount == 1);
       
        Assert.assertTrue(DependentScopedBean.SAY_HELLO);

        try {
            dbean.throwException();
        }
        catch (Exception e) {
            Assert.assertTrue(DependentInterceptor.exceptionTarget.equals(DependentScopedBean.class));
        }
           
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.