Package org.apache.webbeans.newtests.injection.constructor.beans

Examples of org.apache.webbeans.newtests.injection.constructor.beans.BeanWithSingleParamInjectConstructor


    @Test
    public void testSingleParamCtInjection() throws Exception
    {
        startContainer(BeanWithSingleParamInjectConstructor.class, User.class);

        BeanWithSingleParamInjectConstructor instance = getInstance(BeanWithSingleParamInjectConstructor.class);
        Assert.assertNotNull(instance);
        Assert.assertNotNull(instance.getUser());

        User user = getInstance(User.class);
        Assert.assertNotNull(user);

        Assert.assertTrue(user.getSelf() == instance.getUser().getSelf());
    }
View Full Code Here

TOP

Related Classes of org.apache.webbeans.newtests.injection.constructor.beans.BeanWithSingleParamInjectConstructor

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.