Browse Source

introducing common.beans.* packaging and externals; experimenting with sharing SideEffectBean

conversation
Chris Beams 16 years ago
parent
commit
08eeb52e57
  1. 3
      org.springframework.aop/src/test/java/org/springframework/aop/target/HotSwappableTargetSourceTests.java
  2. 3
      org.springframework.aop/src/test/java/org/springframework/aop/target/PrototypeTargetSourceTests.java
  3. 3
      org.springframework.aop/src/test/java/org/springframework/aop/target/ThreadLocalTargetSourceTests.java
  4. 4
      org.springframework.aop/src/test/java/org/springframework/aop/target/hotSwapTests.xml
  5. 4
      org.springframework.aop/src/test/java/org/springframework/aop/target/prototypeTests.xml
  6. 2
      org.springframework.aop/src/test/java/org/springframework/aop/target/threadLocalTests.xml
  7. 3
      org.springframework.beans/src/test/java/org/springframework/beans/factory/DefaultListableBeanFactoryTests.java
  8. 2
      org.springframework.core/src/test/java/common/beans/core/SideEffectBean.java
  9. 3
      org.springframework.testsuite/src/test/java/org/springframework/aop/framework/ProxyFactoryBeanTests.java
  10. 4
      org.springframework.testsuite/src/test/java/org/springframework/aop/framework/prototypeTests.xml
  11. 3
      org.springframework.testsuite/src/test/java/org/springframework/aop/target/CommonsPoolTargetSourceTests.java
  12. 2
      org.springframework.testsuite/src/test/java/org/springframework/aop/target/commonsPoolTests.xml

3
org.springframework.aop/src/test/java/org/springframework/aop/target/HotSwappableTargetSourceTests.java

@ -24,7 +24,6 @@ import org.junit.Test; @@ -24,7 +24,6 @@ import org.junit.Test;
import org.springframework.aop.framework.Advised;
import org.springframework.aop.framework.ProxyFactory;
import org.springframework.aop.interceptor.SerializableNopInterceptor;
import org.springframework.aop.interceptor.SideEffectBean;
import org.springframework.aop.support.DefaultPointcutAdvisor;
import org.springframework.beans.Person;
import org.springframework.beans.SerializablePerson;
@ -32,6 +31,8 @@ import org.springframework.beans.factory.xml.XmlBeanFactory; @@ -32,6 +31,8 @@ import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;
import org.springframework.util.SerializationTestUtils;
import common.beans.core.SideEffectBean;
/**
* @author Rod Johnson
* @author Chris Beams

3
org.springframework.aop/src/test/java/org/springframework/aop/target/PrototypeTargetSourceTests.java

@ -20,11 +20,12 @@ import static org.junit.Assert.assertEquals; @@ -20,11 +20,12 @@ import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
import org.springframework.aop.interceptor.SideEffectBean;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;
import common.beans.core.SideEffectBean;
/**
* @author Rod Johnson
* @author Chris Beams

3
org.springframework.aop/src/test/java/org/springframework/aop/target/ThreadLocalTargetSourceTests.java

@ -20,11 +20,12 @@ import static org.junit.Assert.*; @@ -20,11 +20,12 @@ import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import org.springframework.aop.interceptor.SideEffectBean;
import org.springframework.beans.ITestBean;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;
import common.beans.core.SideEffectBean;
/**
* @author Rod Johnson
* @author Chris Beams

4
org.springframework.aop/src/test/java/org/springframework/aop/target/hotSwapTests.xml

@ -4,11 +4,11 @@ @@ -4,11 +4,11 @@
<beans>
<!-- Simple target -->
<bean id="target1" class="org.springframework.aop.interceptor.SideEffectBean">
<bean id="target1" class="common.beans.core.SideEffectBean">
<property name="count"><value>10</value></property>
</bean>
<bean id="target2" class="org.springframework.aop.interceptor.SideEffectBean" scope="singleton">
<bean id="target2" class="common.beans.core.SideEffectBean" scope="singleton">
<property name="count"><value>20</value></property>
</bean>

4
org.springframework.aop/src/test/java/org/springframework/aop/target/prototypeTests.xml

@ -4,11 +4,11 @@ @@ -4,11 +4,11 @@
<beans>
<!-- Simple target -->
<bean id="test" class="org.springframework.aop.interceptor.SideEffectBean">
<bean id="test" class="common.beans.core.SideEffectBean">
<property name="count"><value>10</value></property>
</bean>
<bean id="prototypeTest" class="org.springframework.aop.interceptor.SideEffectBean" scope="prototype">
<bean id="prototypeTest" class="common.beans.core.SideEffectBean" scope="prototype">
<property name="count"><value>10</value></property>
</bean>

2
org.springframework.aop/src/test/java/org/springframework/aop/target/threadLocalTests.xml

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
<beans>
<bean id="prototypeTest" class="org.springframework.aop.interceptor.SideEffectBean" scope="prototype">
<bean id="prototypeTest" class="common.beans.core.SideEffectBean" scope="prototype">
<property name="count"><value>10</value></property>
</bean>

3
org.springframework.beans/src/test/java/org/springframework/beans/factory/DefaultListableBeanFactoryTests.java

@ -67,13 +67,14 @@ import org.springframework.beans.factory.support.PropertiesBeanDefinitionReader; @@ -67,13 +67,14 @@ import org.springframework.beans.factory.support.PropertiesBeanDefinitionReader;
import org.springframework.beans.factory.support.RootBeanDefinition;
import org.springframework.beans.factory.xml.ConstructorDependenciesBean;
import org.springframework.beans.factory.xml.DependenciesBean;
import org.springframework.beans.factory.xml.SideEffectBean;
import org.springframework.beans.propertyeditors.CustomNumberEditor;
import org.springframework.core.MethodParameter;
import org.springframework.core.io.Resource;
import org.springframework.core.io.UrlResource;
import org.springframework.util.StopWatch;
import common.beans.core.SideEffectBean;
/**
* Tests properties population and autowire behavior.
*

2
org.springframework.testsuite/src/test/java/org/springframework/aop/interceptor/SideEffectBean.java → org.springframework.core/src/test/java/common/beans/core/SideEffectBean.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.aop.interceptor;
package common.beans.core;
/**
* Bean that changes state on a business invocation, so that

3
org.springframework.testsuite/src/test/java/org/springframework/aop/framework/ProxyFactoryBeanTests.java

@ -37,7 +37,6 @@ import org.springframework.aop.IntroductionAdvisor; @@ -37,7 +37,6 @@ import org.springframework.aop.IntroductionAdvisor;
import org.springframework.aop.IntroductionInterceptor;
import org.springframework.aop.interceptor.DebugInterceptor;
import org.springframework.aop.interceptor.NopInterceptor;
import org.springframework.aop.interceptor.SideEffectBean;
import org.springframework.aop.support.AopUtils;
import org.springframework.aop.support.DefaultIntroductionAdvisor;
import org.springframework.aop.support.DefaultPointcutAdvisor;
@ -57,6 +56,8 @@ import org.springframework.context.TestListener; @@ -57,6 +56,8 @@ import org.springframework.context.TestListener;
import org.springframework.core.io.ClassPathResource;
import org.springframework.util.SerializationTestUtils;
import common.beans.core.SideEffectBean;
/**
* @author Rod Johnson
* @author Juergen Hoeller

4
org.springframework.testsuite/src/test/java/org/springframework/aop/framework/prototypeTests.xml

@ -7,11 +7,11 @@ @@ -7,11 +7,11 @@
<beans>
<!-- Simple target -->
<bean id="test" class="org.springframework.aop.interceptor.SideEffectBean">
<bean id="test" class="common.beans.core.SideEffectBean">
<property name="count"><value>10</value></property>
</bean>
<bean id="prototypeTarget" class="org.springframework.aop.interceptor.SideEffectBean" scope="prototype">
<bean id="prototypeTarget" class="common.beans.core.SideEffectBean" scope="prototype">
<property name="count"><value>10</value></property>
</bean>

3
org.springframework.testsuite/src/test/java/org/springframework/aop/target/CommonsPoolTargetSourceTests.java

@ -25,7 +25,6 @@ import org.junit.After; @@ -25,7 +25,6 @@ import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.springframework.aop.framework.Advised;
import org.springframework.aop.interceptor.SideEffectBean;
import org.springframework.beans.Person;
import org.springframework.beans.SerializablePerson;
import org.springframework.beans.factory.xml.XmlBeanFactory;
@ -33,6 +32,8 @@ import org.springframework.context.support.StaticApplicationContext; @@ -33,6 +32,8 @@ import org.springframework.context.support.StaticApplicationContext;
import org.springframework.core.io.ClassPathResource;
import org.springframework.util.SerializationTestUtils;
import common.beans.core.SideEffectBean;
/**
* Tests for pooling invoker interceptor.
* TODO: need to make these tests stronger: it's hard to

2
org.springframework.testsuite/src/test/java/org/springframework/aop/target/commonsPoolTests.xml

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
<beans>
<bean id="prototypeTest" class="org.springframework.aop.interceptor.SideEffectBean" scope="prototype">
<bean id="prototypeTest" class="common.beans.core.SideEffectBean" scope="prototype">
<property name="count"><value>10</value></property>
</bean>

Loading…
Cancel
Save