Examples of RoseAppContext


Examples of net.paoding.rose.scanning.context.RoseAppContext

public class RoseAppContextTest extends TestCase {

    public void testRoseAppContext() {

        RoseAppContext rose = new RoseAppContext();

        Assert.assertNotNull(rose.getBean("autowireBean"));
        Assert.assertNotNull(rose.getBean("autowireBean2"));

        Assert.assertEquals(AutowireBean.class, rose.getBean("autowireBean").getClass());
        Assert.assertEquals(AutowireBean2.class, rose.getBean("autowireBean2").getClass());

        Assert.assertEquals(rose.getBean("autowireBean"), rose.getBean(AutowireBean.class));
        Assert.assertEquals(rose.getBean("autowireBean2"), rose.getBean(AutowireBean2.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.