polishing .beans tests
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
|
||||
|
||||
<beans>
|
||||
|
||||
<bean id="bean1" class="org.springframework.beans.factory.ConcurrentBeanFactoryTests$ConcurrentBean"
|
||||
scope="prototype">
|
||||
<property name="date" value="2004/08/08"/>
|
||||
</bean>
|
||||
|
||||
<bean id="bean2" class="org.springframework.beans.factory.ConcurrentBeanFactoryTests$ConcurrentBean"
|
||||
scope="prototype">
|
||||
<property name="date" value="2000/02/02"/>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
@@ -1,19 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
|
||||
|
||||
<!--
|
||||
Test data for ObjectFactoryCreatingFactoryBeanTests
|
||||
-->
|
||||
<beans>
|
||||
|
||||
<bean id="prototypeTarget" class="java.util.Date" scope="prototype"/>
|
||||
|
||||
<bean id="prototype" class="org.springframework.beans.factory.config.ObjectFactoryCreatingFactoryBean">
|
||||
<property name="targetBeanName"><idref local="prototypeTarget"/></property>
|
||||
</bean>
|
||||
|
||||
<bean id="testBean" class="org.springframework.beans.factory.config.ObjectFactoryCreatingFactoryBeanTests$TestBean">
|
||||
<property name="objectFactory"><ref local="prototype"/></property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
@@ -1,15 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
|
||||
|
||||
<beans>
|
||||
|
||||
<bean id="testBean" class="test.beans.TestBean">
|
||||
<property name="someIntegerArray">
|
||||
<list>
|
||||
<bean name="java.sql.Connection.TRANSACTION_SERIALIZABLE" class="org.springframework.beans.factory.config.FieldRetrievingFactoryBean"/>
|
||||
<bean name="java.sql.Connection.TRANSACTION_SERIALIZABLE" class="org.springframework.beans.factory.config.FieldRetrievingFactoryBean"/>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
@@ -1,62 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
|
||||
|
||||
<beans>
|
||||
|
||||
<bean id="tb" class="test.beans.TestBean" scope="prototype">
|
||||
<property name="age"><value>10</value></property>
|
||||
<property name="spouse">
|
||||
<bean class="test.beans.TestBean">
|
||||
<property name="age"><value>11</value></property>
|
||||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="otb" class="test.beans.TestBean">
|
||||
<property name="age"><value>98</value></property>
|
||||
<property name="spouse">
|
||||
<bean class="test.beans.TestBean">
|
||||
<property name="age"><value>99</value></property>
|
||||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="propertyPath1" class="org.springframework.beans.factory.config.PropertyPathFactoryBean">
|
||||
<property name="targetObject">
|
||||
<bean class="test.beans.TestBean">
|
||||
<property name="age"><value>12</value></property>
|
||||
</bean>
|
||||
</property>
|
||||
<property name="propertyPath"><value>age</value></property>
|
||||
</bean>
|
||||
|
||||
<bean id="propertyPath2" class="org.springframework.beans.factory.config.PropertyPathFactoryBean">
|
||||
<property name="targetBeanName"><value>tb</value></property>
|
||||
<property name="propertyPath"><value>spouse.age</value></property>
|
||||
</bean>
|
||||
|
||||
<bean id="tb.age" class="org.springframework.beans.factory.config.PropertyPathFactoryBean"/>
|
||||
|
||||
<bean id="otb.spouse" class="org.springframework.beans.factory.config.PropertyPathFactoryBean"/>
|
||||
|
||||
<bean id="tb.spouse" class="org.springframework.beans.factory.config.PropertyPathFactoryBean"/>
|
||||
|
||||
<bean id="tb.spouse.spouse" class="org.springframework.beans.factory.config.PropertyPathFactoryBean"/>
|
||||
|
||||
<bean id="propertyPath3" class="org.springframework.beans.factory.config.PropertyPathFactoryBean">
|
||||
<property name="targetBeanName"><value>tb</value></property>
|
||||
<property name="propertyPath"><value>spouse</value></property>
|
||||
<property name="resultType"><value>test.beans.TestBean</value></property>
|
||||
</bean>
|
||||
|
||||
<bean id="tbWithInner" class="test.beans.TestBean">
|
||||
<property name="age" value="10"/>
|
||||
<property name="spouse">
|
||||
<bean name="otb.spouse" class="org.springframework.beans.factory.config.PropertyPathFactoryBean"/>
|
||||
</property>
|
||||
<property name="friends">
|
||||
<bean name="otb.spouse" class="org.springframework.beans.factory.config.PropertyPathFactoryBean"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
@@ -1,9 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
|
||||
|
||||
<properties version="1.0">
|
||||
|
||||
<entry key="tb.array[0].age">99</entry>
|
||||
<entry key="tb.list[1].name">test</entry>
|
||||
|
||||
</properties>
|
||||
@@ -1,2 +0,0 @@
|
||||
tb.array[0].age=99
|
||||
tb.list[1].name=test
|
||||
@@ -22,7 +22,7 @@
|
||||
<util:property-path path="configuredBean.name"/>
|
||||
</property>
|
||||
<property name="someProperties">
|
||||
<util:properties location="classpath:/org/springframework/beans/factory/config/util.properties"/>
|
||||
<util:properties location="classpath:/org/springframework/beans/factory/xml/util.properties"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
@@ -147,35 +147,35 @@
|
||||
</bean>
|
||||
|
||||
<util:properties id="myProperties"
|
||||
location="classpath:/org/springframework/beans/factory/config/util.properties"/>
|
||||
location="classpath:/org/springframework/beans/factory/xml/util.properties"/>
|
||||
|
||||
<util:properties id="myScopedProperties"
|
||||
location="classpath:/org/springframework/beans/factory/config/util.properties" scope="prototype"/>
|
||||
location="classpath:/org/springframework/beans/factory/xml/util.properties" scope="prototype"/>
|
||||
|
||||
<util:properties id="myLocalProperties">
|
||||
<prop key="foo2">bar2</prop>
|
||||
</util:properties>
|
||||
|
||||
<util:properties id="myMergedProperties"
|
||||
location="classpath:/org/springframework/beans/factory/config/util.properties">
|
||||
location="classpath:/org/springframework/beans/factory/xml/util.properties">
|
||||
<prop key="foo2">bar2</prop>
|
||||
</util:properties>
|
||||
|
||||
<util:properties id="defaultLocalOverrideProperties"
|
||||
location="classpath:/org/springframework/beans/factory/config/util.properties">
|
||||
location="classpath:/org/springframework/beans/factory/xml/util.properties">
|
||||
<prop key="foo">local</prop>
|
||||
<prop key="foo2">local2</prop>
|
||||
</util:properties>
|
||||
|
||||
<util:properties id="trueLocalOverrideProperties"
|
||||
location="classpath:/org/springframework/beans/factory/config/util.properties"
|
||||
location="classpath:/org/springframework/beans/factory/xml/util.properties"
|
||||
local-override="true">
|
||||
<prop key="foo">local</prop>
|
||||
<prop key="foo2">local2</prop>
|
||||
</util:properties>
|
||||
|
||||
<util:properties id="falseLocalOverrideProperties"
|
||||
location="classpath:/org/springframework/beans/factory/config/util.properties"
|
||||
location="classpath:/org/springframework/beans/factory/xml/util.properties"
|
||||
local-override="false">
|
||||
<prop key="foo">local</prop>
|
||||
<prop key="foo2">local2</prop>
|
||||
|
||||
Reference in New Issue
Block a user