* Test that autowiring can be done on a DefaultListableBeanFactory.
* @throws Exception
*/
public void testAutowireDefaultListableBeanFactory() throws Exception {
BeanFactory parent = BeanFactoryLoader.getBeanFactory("test.bootstrap");
DefaultListableBeanFactory context = new DefaultListableBeanFactory();
context.setParentBeanFactory(parent);
context.registerSingleton("this", this);
SpringDependencyInjectorTaskTest test = (SpringDependencyInjectorTaskTest) context.getBean("this");
context.autowireBeanProperties(test, AutowireCapableBeanFactory.AUTOWIRE_BY_NAME, false);
assertNotNull("Null test bean", test);
assertNotNull("Null properties", test.properties);
}