Package org.dayatang.ioc.test

Examples of org.dayatang.ioc.test.Service


        return new SpringInstanceProvider("applicationContext.xml");
    }

    @Test
    public void testGetInstanceByFactoryBean() {
        Service service = provider.getInstance(MyService1.class);
        assertEquals("I am Service 1", service.sayHello());
    }
View Full Code Here


    return new SpringInstanceProvider(SpringConfiguration.class);
  }

    @Test
    public void testGetInstanceByFactoryBean() {
        Service service = provider.getInstance(MyService1.class);
        assertEquals("I am Service 1", service.sayHello());
    }
View Full Code Here

TOP

Related Classes of org.dayatang.ioc.test.Service

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.