Package org.apache.webbeans.newtests.producer.beans

Examples of org.apache.webbeans.newtests.producer.beans.PrivateProducedBean


    @Test
    public void testHiddenProducerMethods()
    {
        startContainer(PrivateProducedBean.class, ProtectedProducedBean.class, SampleProducerOwner.class, SomeUserBean.class);

        PrivateProducedBean privateProducedBean = getInstance(PrivateProducedBean.class);
        Assert.assertNotNull(privateProducedBean);
        Assert.assertEquals(42, privateProducedBean.getMeaningOfLife());

        ProtectedProducedBean protectedProducedBean = getInstance(ProtectedProducedBean.class);
        Assert.assertNotNull(protectedProducedBean);
        Assert.assertEquals(42, privateProducedBean.getMeaningOfLife());
    }
View Full Code Here

TOP

Related Classes of org.apache.webbeans.newtests.producer.beans.PrivateProducedBean

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.