Use Gradle test fixture support for spring-beans and spring-context

See gh-23550
This commit is contained in:
Sam Brannen
2019-12-28 17:13:39 +01:00
parent 5718bf424b
commit 61d4ee594d
585 changed files with 2270 additions and 1618 deletions

View File

@@ -4,7 +4,7 @@
<beans>
<!-- Simple target -->
<bean id="target" class="org.springframework.tests.sample.beans.DerivedTestBean">
<bean id="target" class="org.springframework.beans.test.fixtures.beans.DerivedTestBean">
<property name="name"><value>custom</value></property>
<property name="age"><value>666</value></property>
</bean>

View File

@@ -3,12 +3,12 @@
<beans>
<bean id="targetDependency" class="org.springframework.tests.sample.beans.TestBean">
<bean id="targetDependency" class="org.springframework.beans.test.fixtures.beans.TestBean">
<property name="name"><value>dependency</value></property>
</bean>
<!-- Simple target -->
<bean id="target" class="org.springframework.tests.sample.beans.DerivedTestBean" lazy-init="true">
<bean id="target" class="org.springframework.beans.test.fixtures.beans.DerivedTestBean" lazy-init="true">
<property name="name"><value>custom</value></property>
<property name="age"><value>666</value></property>
<property name="spouse"><ref bean="targetDependency"/></property>
@@ -22,16 +22,16 @@
<property name="transactionManager"><ref bean="mockMan"/></property>
<property name="transactionAttributeSource">
<value>
org.springframework.tests.sample.beans.ITestBean.s*=PROPAGATION_MANDATORY
org.springframework.tests.sample.beans.AgeHolder.setAg*=PROPAGATION_REQUIRED
org.springframework.tests.sample.beans.ITestBean.set*= PROPAGATION_SUPPORTS , readOnly
org.springframework.beans.test.fixtures.beans.ITestBean.s*=PROPAGATION_MANDATORY
org.springframework.beans.test.fixtures.beans.AgeHolder.setAg*=PROPAGATION_REQUIRED
org.springframework.beans.test.fixtures.beans.ITestBean.set*= PROPAGATION_SUPPORTS , readOnly
</value>
</property>
</bean>
<bean id="proxyFactory1" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="proxyInterfaces">
<value>org.springframework.tests.sample.beans.ITestBean</value>
<value>org.springframework.beans.test.fixtures.beans.ITestBean</value>
</property>
<property name="interceptorNames">
<list>

View File

@@ -28,6 +28,6 @@
<bean id="transactionManager" class="org.springframework.tests.transaction.CallCountingTransactionManager"/>
<bean id="testBean" class="org.springframework.tests.sample.beans.TestBean"/>
<bean id="testBean" class="org.springframework.beans.test.fixtures.beans.TestBean"/>
</beans>