git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1506 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Mark Pollack
2009-07-10 04:02:08 +00:00
parent 0d92d4afb3
commit bed23619b7
2 changed files with 65 additions and 23 deletions
@@ -659,29 +659,6 @@ public final class PropertyResourceConfigurerTests {
assertEquals("mytest", tb.getTouchy());
}
@Ignore // this test was breaking after the 3.0 repackaging
@Test
public void testPropertyPlaceholderConfigurerWithAutowireByType() {
// StaticApplicationContext ac = new StaticApplicationContext();
// MutablePropertyValues pvs = new MutablePropertyValues();
// pvs.addPropertyValue("touchy", "${test}");
// ac.registerSingleton("tb", TestBean.class, pvs);
// pvs = new MutablePropertyValues();
// pvs.addPropertyValue("target", new RuntimeBeanReference("tb"));
// // uncomment when fixing this test
// // ac.registerSingleton("tbProxy", org.springframework.aop.framework.ProxyFactoryBean.class, pvs);
// pvs = new MutablePropertyValues();
// Properties props = new Properties();
// props.put("test", "mytest");
// pvs.addPropertyValue("properties", new Properties(props));
// RootBeanDefinition ppcDef = new RootBeanDefinition(PropertyPlaceholderConfigurer.class, pvs);
// ppcDef.setAutowireMode(RootBeanDefinition.AUTOWIRE_BY_TYPE);
// ac.registerBeanDefinition("configurer", ppcDef);
// ac.refresh();
// TestBean tb = (TestBean) ac.getBean("tb");
// assertEquals("mytest", tb.getTouchy());
}
@Test
public void testPropertyPlaceholderConfigurerWithAliases() {
factory.registerBeanDefinition("tb",