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

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


        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


        BeanWithTwoParamInjectConstructor instance = getInstance(BeanWithTwoParamInjectConstructor.class);
        Assert.assertNotNull(instance);
        Assert.assertNotNull(instance.getUser());
        Assert.assertNotNull(instance.getAdministrator());

        User user = getInstance(User.class);
        Assert.assertNotNull(user);
        Assert.assertTrue(user.getSelf() == instance.getUser().getSelf());

        Administrator administrator = getInstance(Administrator.class);
        Assert.assertNotNull(administrator);
        Assert.assertTrue(administrator.getSelf() == instance.getAdministrator().getSelf());
    }
View Full Code Here

TOP

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

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.