Code example for XmlBeanFactory

0
    BeanFactory factory;
 
    protected void setUp() throws Exception {
        super.setUp(); 
        ClassPathResource resource = new ClassPathResource("spring.xml");
        factory = new XmlBeanFactory(resource);
    } 
     
    public void testSomeBeans() { 
    	assertTrue(factory.containsBean("doc"));
    	assertTrue(factory.containsBean("noop"));
    } 
 
 
 
} 
Connect your IDE to all the code out there  Get Codota for Java