diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/AspectJExpressionPointcutTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/AspectJExpressionPointcutTests.java index 8b47fede6a2..b1678c9d7c8 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/AspectJExpressionPointcutTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/AspectJExpressionPointcutTests.java @@ -32,11 +32,11 @@ import org.springframework.aop.MethodMatcher; import org.springframework.aop.Pointcut; import org.springframework.aop.framework.ProxyFactory; import org.springframework.aop.support.DefaultPointcutAdvisor; -import org.springframework.beans.IOther; -import org.springframework.beans.ITestBean; -import org.springframework.beans.TestBean; -import org.springframework.beans.factory.BeanFactory; -import org.springframework.beans.factory.support.DefaultListableBeanFactory; + +import test.beans.IOther; +import test.beans.ITestBean; +import test.beans.TestBean; +import test.beans.subpkg.DeepBean; /** * @author Rob Harrop @@ -66,7 +66,7 @@ public final class AspectJExpressionPointcutTests { @Test public void testMatchExplicit() { - String expression = "execution(int org.springframework.beans.TestBean.getAge())"; + String expression = "execution(int test.beans.TestBean.getAge())"; Pointcut pointcut = getPointcut(expression); ClassFilter classFilter = pointcut.getClassFilter(); @@ -127,8 +127,8 @@ public final class AspectJExpressionPointcutTests { * @throws SecurityException */ private void testThisOrTarget(String which) throws SecurityException, NoSuchMethodException { - String matchesTestBean = which + "(org.springframework.beans.TestBean)"; - String matchesIOther = which + "(org.springframework.beans.IOther)"; + String matchesTestBean = which + "(test.beans.TestBean)"; + String matchesIOther = which + "(test.beans.IOther)"; AspectJExpressionPointcut testBeanPc = new AspectJExpressionPointcut(); testBeanPc.setExpression(matchesTestBean); @@ -155,7 +155,7 @@ public final class AspectJExpressionPointcutTests { } private void testWithinPackage(boolean matchSubpackages) throws SecurityException, NoSuchMethodException { - String withinBeansPackage = "within(org.springframework.beans."; + String withinBeansPackage = "within(test.beans."; // Subpackages are matched by ** if (matchSubpackages) { withinBeansPackage += "."; @@ -166,10 +166,9 @@ public final class AspectJExpressionPointcutTests { assertTrue(withinBeansPc.matches(TestBean.class)); assertTrue(withinBeansPc.matches(getAge, TestBean.class)); - assertEquals(matchSubpackages, withinBeansPc.matches(BeanFactory.class)); + assertEquals(matchSubpackages, withinBeansPc.matches(DeepBean.class)); assertEquals(matchSubpackages, withinBeansPc.matches( - DefaultListableBeanFactory.class.getMethod("getBeanDefinitionCount", (Class[])null), - DefaultListableBeanFactory.class)); + DeepBean.class.getMethod("aMethod", String.class), DeepBean.class)); assertFalse(withinBeansPc.matches(String.class)); assertFalse(withinBeansPc.matches(OtherIOther.class.getMethod("absquatulate", (Class[])null), OtherIOther.class)); @@ -214,7 +213,7 @@ public final class AspectJExpressionPointcutTests { @Test public void testMatchWithArgs() throws Exception { - String expression = "execution(void org.springframework.beans.TestBean.setSomeNumber(Number)) && args(Double)"; + String expression = "execution(void test.beans.TestBean.setSomeNumber(Number)) && args(Double)"; Pointcut pointcut = getPointcut(expression); ClassFilter classFilter = pointcut.getClassFilter(); @@ -235,7 +234,7 @@ public final class AspectJExpressionPointcutTests { @Test public void testSimpleAdvice() { - String expression = "execution(int org.springframework.beans.TestBean.getAge())"; + String expression = "execution(int test.beans.TestBean.getAge())"; CallCountingInterceptor interceptor = new CallCountingInterceptor(); @@ -254,7 +253,7 @@ public final class AspectJExpressionPointcutTests { @Test public void testDynamicMatchingProxy() { - String expression = "execution(void org.springframework.beans.TestBean.setSomeNumber(Number)) && args(Double)"; + String expression = "execution(void test.beans.TestBean.setSomeNumber(Number)) && args(Double)"; CallCountingInterceptor interceptor = new CallCountingInterceptor(); @@ -273,7 +272,7 @@ public final class AspectJExpressionPointcutTests { @Test public void testInvalidExpression() { - String expression = "execution(void org.springframework.beans.TestBean.setSomeNumber(Number) && args(Double)"; + String expression = "execution(void test.beans.TestBean.setSomeNumber(Number) && args(Double)"; try { getPointcut(expression).getClassFilter(); // call to getClassFilter forces resolution @@ -315,7 +314,7 @@ public final class AspectJExpressionPointcutTests { @Test public void testWithUnsupportedPointcutPrimitive() throws Exception { - String expression = "call(int org.springframework.beans.TestBean.getAge())"; + String expression = "call(int test.beans.TestBean.getAge())"; try { getPointcut(expression).getClassFilter(); // call to getClassFilter forces resolution... diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/BeanNamePointcutMatchingTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/BeanNamePointcutMatchingTests.java index 9120b02cc3a..ce148b7faa4 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/BeanNamePointcutMatchingTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/BeanNamePointcutMatchingTests.java @@ -19,7 +19,8 @@ package org.springframework.aop.aspectj; import static org.junit.Assert.*; import org.junit.Test; -import org.springframework.beans.TestBean; + +import test.beans.TestBean; /** * Tests for matching of bean() pointcut designator. diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/MethodInvocationProceedingJoinPointTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/MethodInvocationProceedingJoinPointTests.java index d77649f2843..bedc4f52505 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/MethodInvocationProceedingJoinPointTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/MethodInvocationProceedingJoinPointTests.java @@ -33,8 +33,9 @@ import org.springframework.aop.framework.AopContext; import org.springframework.aop.framework.ProxyFactory; import org.springframework.aop.interceptor.ExposeInvocationInterceptor; import org.springframework.aop.support.AopUtils; -import org.springframework.beans.ITestBean; -import org.springframework.beans.TestBean; + +import test.beans.ITestBean; +import test.beans.TestBean; /** * @author Rod Johnson diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/TigerAspectJExpressionPointcutTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/TigerAspectJExpressionPointcutTests.java index 83ee0227908..9877171a60a 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/TigerAspectJExpressionPointcutTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/TigerAspectJExpressionPointcutTests.java @@ -26,10 +26,10 @@ import java.util.Map; import org.junit.Before; import org.junit.Test; -import org.springframework.beans.TestBean; import test.annotation.EmptySpringAnnotation; import test.annotation.transaction.Tx; +import test.beans.TestBean; /** @@ -70,7 +70,7 @@ public final class TigerAspectJExpressionPointcutTests { @Test public void testMatchGenericArgument() { - String expression = "execution(* set*(java.util.List) )"; + String expression = "execution(* set*(java.util.List) )"; AspectJExpressionPointcut ajexp = new AspectJExpressionPointcut(); ajexp.setExpression(expression); diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/TypePatternClassFilterTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/TypePatternClassFilterTests.java index b01447ed5e7..a9202dfee2d 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/TypePatternClassFilterTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/TypePatternClassFilterTests.java @@ -20,12 +20,13 @@ import static org.junit.Assert.*; import org.junit.Test; import org.springframework.aop.framework.autoproxy.CountingTestBean; -import org.springframework.beans.IOther; -import org.springframework.beans.ITestBean; -import org.springframework.beans.TestBean; import org.springframework.beans.factory.BeanFactory; import org.springframework.beans.factory.support.DefaultListableBeanFactory; +import test.beans.IOther; +import test.beans.ITestBean; +import test.beans.TestBean; + /** * Unit tests for the {@link TypePatternClassFilter} class. * @@ -43,7 +44,7 @@ public final class TypePatternClassFilterTests { @Test public void testValidPatternMatching() { - TypePatternClassFilter tpcf = new TypePatternClassFilter("org.springframework.beans.*"); + TypePatternClassFilter tpcf = new TypePatternClassFilter("test.beans.*"); assertTrue("Must match: in package", tpcf.matches(TestBean.class)); assertTrue("Must match: in package", tpcf.matches(ITestBean.class)); assertTrue("Must match: in package", tpcf.matches(IOther.class)); @@ -54,7 +55,7 @@ public final class TypePatternClassFilterTests { @Test public void testSubclassMatching() { - TypePatternClassFilter tpcf = new TypePatternClassFilter("org.springframework.beans.ITestBean+"); + TypePatternClassFilter tpcf = new TypePatternClassFilter("test.beans.ITestBean+"); assertTrue("Must match: in package", tpcf.matches(TestBean.class)); assertTrue("Must match: in package", tpcf.matches(ITestBean.class)); assertTrue("Must match: in package", tpcf.matches(CountingTestBean.class)); diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/annotation/AbstractAspectJAdvisorFactoryTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/annotation/AbstractAspectJAdvisorFactoryTests.java index f3f043e618e..83e1653cd11 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/annotation/AbstractAspectJAdvisorFactoryTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/annotation/AbstractAspectJAdvisorFactoryTests.java @@ -45,8 +45,6 @@ import org.springframework.aop.framework.AopConfigException; import org.springframework.aop.framework.ProxyFactory; import org.springframework.aop.interceptor.ExposeInvocationInterceptor; import org.springframework.aop.support.AopUtils; -import org.springframework.beans.ITestBean; -import org.springframework.beans.TestBean; import org.springframework.core.OrderComparator; import org.springframework.core.Ordered; import org.springframework.core.annotation.Order; @@ -54,6 +52,8 @@ import org.springframework.util.ObjectUtils; import test.aspect.PerTargetAspect; import test.aspect.TwoAdviceAspect; +import test.beans.ITestBean; +import test.beans.TestBean; import test.mixin.DefaultLockable; import test.mixin.Lockable; @@ -638,7 +638,7 @@ public abstract class AbstractAspectJAdvisorFactoryTests { } - @Aspect("pertypewithin(org.springframework.beans.IOther+)") + @Aspect("pertypewithin(test.beans.IOther+)") public static class PerTypeWithinAspect { public int count; @@ -847,7 +847,7 @@ public abstract class AbstractAspectJAdvisorFactoryTests { @Aspect - @DeclarePrecedence("org.springframework..*") + @DeclarePrecedence("test..*") public static class DeclarePrecedenceShouldSucceed { @Pointcut("execution(int *.getAge())") @@ -960,7 +960,7 @@ abstract class AbstractMakeModifiable { @Aspect class MakeITestBeanModifiable extends AbstractMakeModifiable { - @DeclareParents(value = "org.springframework.beans.ITestBean+", + @DeclareParents(value = "test.beans.ITestBean+", defaultImpl=ModifiableImpl.class) public static MutableModifable mixin; diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/annotation/ArgumentBindingTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/annotation/ArgumentBindingTests.java index 0060b243c1e..5f108cb56da 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/annotation/ArgumentBindingTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/annotation/ArgumentBindingTests.java @@ -28,8 +28,9 @@ import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Pointcut; import org.junit.Test; import org.springframework.aop.aspectj.AspectJAdviceParameterNameDiscoverer; -import org.springframework.beans.ITestBean; -import org.springframework.beans.TestBean; + +import test.beans.ITestBean; +import test.beans.TestBean; /** * @author Adrian Colyer diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/annotation/AspectJPointcutAdvisorTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/annotation/AspectJPointcutAdvisorTests.java index db7b55d6412..fb91a3d4881 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/annotation/AspectJPointcutAdvisorTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/aspectj/annotation/AspectJPointcutAdvisorTests.java @@ -23,9 +23,9 @@ import org.springframework.aop.Pointcut; import org.springframework.aop.aspectj.AspectJExpressionPointcut; import org.springframework.aop.aspectj.AspectJExpressionPointcutTests; import org.springframework.aop.framework.AopConfigException; -import org.springframework.beans.TestBean; import test.aspect.PerTargetAspect; +import test.beans.TestBean; /** diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/config/AopNamespaceHandlerEventTests-context.xml b/org.springframework.aop/src/test/java/org/springframework/aop/config/AopNamespaceHandlerEventTests-context.xml index 157ffe66781..939493b2eb0 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/config/AopNamespaceHandlerEventTests-context.xml +++ b/org.springframework.aop/src/test/java/org/springframework/aop/config/AopNamespaceHandlerEventTests-context.xml @@ -20,7 +20,7 @@ - + diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/config/AopNamespaceHandlerPointcutErrorTests-pointcutDuplication.xml b/org.springframework.aop/src/test/java/org/springframework/aop/config/AopNamespaceHandlerPointcutErrorTests-pointcutDuplication.xml index e5c02022290..472b91f7183 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/config/AopNamespaceHandlerPointcutErrorTests-pointcutDuplication.xml +++ b/org.springframework.aop/src/test/java/org/springframework/aop/config/AopNamespaceHandlerPointcutErrorTests-pointcutDuplication.xml @@ -14,7 +14,7 @@ - + diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/config/AopNamespaceHandlerPointcutErrorTests-pointcutMissing.xml b/org.springframework.aop/src/test/java/org/springframework/aop/config/AopNamespaceHandlerPointcutErrorTests-pointcutMissing.xml index 712c5c783ba..7654895ccee 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/config/AopNamespaceHandlerPointcutErrorTests-pointcutMissing.xml +++ b/org.springframework.aop/src/test/java/org/springframework/aop/config/AopNamespaceHandlerPointcutErrorTests-pointcutMissing.xml @@ -14,7 +14,7 @@ - + diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/framework/AopProxyUtilsTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/framework/AopProxyUtilsTests.java index 33bb6b4e9da..dda6cf20b1a 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/framework/AopProxyUtilsTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/framework/AopProxyUtilsTests.java @@ -26,8 +26,9 @@ import java.util.List; import org.junit.Test; import org.springframework.aop.SpringProxy; -import org.springframework.beans.ITestBean; -import org.springframework.beans.TestBean; + +import test.beans.ITestBean; +import test.beans.TestBean; /** * @author Rod Johnson diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/framework/IntroductionBenchmarkTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/framework/IntroductionBenchmarkTests.java index c533c08acba..a8623ba81c7 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/framework/IntroductionBenchmarkTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/framework/IntroductionBenchmarkTests.java @@ -18,10 +18,11 @@ package org.springframework.aop.framework; import org.junit.Test; import org.springframework.aop.support.DelegatingIntroductionInterceptor; -import org.springframework.beans.ITestBean; -import org.springframework.beans.TestBean; import org.springframework.util.StopWatch; +import test.beans.ITestBean; +import test.beans.TestBean; + /** * Benchmarks for introductions. * diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/framework/MethodInvocationTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/framework/MethodInvocationTests.java index 99502e29851..4fdbbc0126b 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/framework/MethodInvocationTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/framework/MethodInvocationTests.java @@ -25,7 +25,8 @@ import java.util.List; import org.aopalliance.intercept.MethodInterceptor; import org.aopalliance.intercept.MethodInvocation; import org.junit.Test; -import org.springframework.beans.TestBean; + +import test.beans.TestBean; /** * @author Rod Johnson diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/framework/ProxyFactoryTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/framework/ProxyFactoryTests.java index c778802f8d6..1cb396cabbb 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/framework/ProxyFactoryTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/framework/ProxyFactoryTests.java @@ -32,11 +32,11 @@ import org.springframework.aop.support.AopUtils; import org.springframework.aop.support.DefaultIntroductionAdvisor; import org.springframework.aop.support.DefaultPointcutAdvisor; import org.springframework.aop.support.DelegatingIntroductionInterceptor; -import org.springframework.beans.IOther; -import org.springframework.beans.ITestBean; -import org.springframework.beans.TestBean; import test.advice.MethodCounter; +import test.beans.IOther; +import test.beans.ITestBean; +import test.beans.TestBean; import test.interceptor.NopInterceptor; import test.util.TimeStamped; diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/framework/autoproxy/CountingTestBean.java b/org.springframework.aop/src/test/java/org/springframework/aop/framework/autoproxy/CountingTestBean.java index 6ec5d89ed41..9bc22615ab9 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/framework/autoproxy/CountingTestBean.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/framework/autoproxy/CountingTestBean.java @@ -20,7 +20,7 @@ package org.springframework.aop.framework.autoproxy; -import org.springframework.beans.TestBean; +import test.beans.TestBean; /** * @author Juergen Hoeller diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/interceptor/ConcurrencyThrottleInterceptorTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/interceptor/ConcurrencyThrottleInterceptorTests.java index 5d72d4f0068..9b3aaf6d9a3 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/interceptor/ConcurrencyThrottleInterceptorTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/interceptor/ConcurrencyThrottleInterceptorTests.java @@ -24,10 +24,10 @@ import org.junit.Test; import org.springframework.aop.framework.Advised; import org.springframework.aop.framework.ProxyFactory; -import org.springframework.beans.DerivedTestBean; -import org.springframework.beans.ITestBean; -import org.springframework.beans.TestBean; +import test.beans.DerivedTestBean; +import test.beans.ITestBean; +import test.beans.TestBean; import test.util.SerializationTestUtils; /** diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/interceptor/ExposeBeanNameAdvisorsTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/interceptor/ExposeBeanNameAdvisorsTests.java index 3ae9f408ba7..cc105bebcd6 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/interceptor/ExposeBeanNameAdvisorsTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/interceptor/ExposeBeanNameAdvisorsTests.java @@ -20,10 +20,11 @@ import static org.junit.Assert.*; import org.junit.Test; import org.springframework.aop.framework.ProxyFactory; -import org.springframework.beans.ITestBean; -import org.springframework.beans.TestBean; import org.springframework.beans.factory.NamedBean; +import test.beans.ITestBean; +import test.beans.TestBean; + /** * @author Rod Johnson * @author Chris Beams diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/interceptor/ExposeInvocationInterceptorTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/interceptor/ExposeInvocationInterceptorTests.java index 9f53a141dca..e624c4152a3 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/interceptor/ExposeInvocationInterceptorTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/interceptor/ExposeInvocationInterceptorTests.java @@ -21,11 +21,12 @@ import junit.framework.TestCase; import org.aopalliance.intercept.MethodInvocation; import org.junit.Test; -import org.springframework.beans.ITestBean; -import org.springframework.beans.TestBean; import org.springframework.beans.factory.xml.XmlBeanFactory; import org.springframework.core.io.ClassPathResource; +import test.beans.ITestBean; +import test.beans.TestBean; + /** * Non-XML tests are in AbstractAopProxyTests * diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/support/AbstractRegexpMethodPointcutTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/support/AbstractRegexpMethodPointcutTests.java index 1248e396369..b230ed72605 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/support/AbstractRegexpMethodPointcutTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/support/AbstractRegexpMethodPointcutTests.java @@ -22,8 +22,8 @@ import java.io.IOException; import org.junit.Before; import org.junit.Test; -import org.springframework.beans.TestBean; +import test.beans.TestBean; import test.util.SerializationTestUtils; /** diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/support/AopUtilsTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/support/AopUtilsTests.java index 9e0bfd252e5..23155444d51 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/support/AopUtilsTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/support/AopUtilsTests.java @@ -26,8 +26,8 @@ import org.springframework.aop.MethodMatcher; import org.springframework.aop.Pointcut; import org.springframework.aop.interceptor.ExposeInvocationInterceptor; import org.springframework.aop.target.EmptyTargetSource; -import org.springframework.beans.TestBean; +import test.beans.TestBean; import test.interceptor.NopInterceptor; import test.util.SerializationTestUtils; diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/support/ClassFiltersTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/support/ClassFiltersTests.java index 074dccdce62..3c9f37ef137 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/support/ClassFiltersTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/support/ClassFiltersTests.java @@ -20,10 +20,11 @@ import static org.junit.Assert.*; import org.junit.Test; import org.springframework.aop.ClassFilter; -import org.springframework.beans.ITestBean; -import org.springframework.beans.TestBean; import org.springframework.core.NestedRuntimeException; +import test.beans.ITestBean; +import test.beans.TestBean; + /** * @author Rod Johnson * @author Chris Beams diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/support/ComposablePointcutTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/support/ComposablePointcutTests.java index c31340b023e..85b40b9112e 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/support/ComposablePointcutTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/support/ComposablePointcutTests.java @@ -24,9 +24,10 @@ import org.junit.Test; import org.springframework.aop.ClassFilter; import org.springframework.aop.MethodMatcher; import org.springframework.aop.Pointcut; -import org.springframework.beans.TestBean; import org.springframework.core.NestedRuntimeException; +import test.beans.TestBean; + /** * @author Rod Johnson * @author Chris Beams diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/support/ControlFlowPointcutTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/support/ControlFlowPointcutTests.java index 16a573e88b4..a8645364a6e 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/support/ControlFlowPointcutTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/support/ControlFlowPointcutTests.java @@ -21,9 +21,9 @@ import static org.junit.Assert.*; import org.junit.Test; import org.springframework.aop.Pointcut; import org.springframework.aop.framework.ProxyFactory; -import org.springframework.beans.ITestBean; -import org.springframework.beans.TestBean; +import test.beans.ITestBean; +import test.beans.TestBean; import test.interceptor.NopInterceptor; /** diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/support/DelegatingIntroductionInterceptorTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/support/DelegatingIntroductionInterceptorTests.java index 72677482da6..4cb0036c471 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/support/DelegatingIntroductionInterceptorTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/support/DelegatingIntroductionInterceptorTests.java @@ -26,13 +26,13 @@ import org.junit.Test; import org.springframework.aop.IntroductionAdvisor; import org.springframework.aop.IntroductionInterceptor; import org.springframework.aop.framework.ProxyFactory; -import org.springframework.beans.INestedTestBean; -import org.springframework.beans.ITestBean; -import org.springframework.beans.NestedTestBean; -import org.springframework.beans.Person; -import org.springframework.beans.SerializablePerson; -import org.springframework.beans.TestBean; +import test.beans.INestedTestBean; +import test.beans.ITestBean; +import test.beans.NestedTestBean; +import test.beans.Person; +import test.beans.SerializablePerson; +import test.beans.TestBean; import test.interceptor.SerializableNopInterceptor; import test.util.SerializationTestUtils; import test.util.TimeStamped; diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/support/MethodMatchersTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/support/MethodMatchersTests.java index 07638571b51..4df8bcde48e 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/support/MethodMatchersTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/support/MethodMatchersTests.java @@ -22,10 +22,10 @@ import java.lang.reflect.Method; import org.junit.Test; import org.springframework.aop.MethodMatcher; -import org.springframework.beans.IOther; -import org.springframework.beans.ITestBean; -import org.springframework.beans.TestBean; +import test.beans.IOther; +import test.beans.ITestBean; +import test.beans.TestBean; import test.util.SerializationTestUtils; /** diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/support/NameMatchMethodPointcutTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/support/NameMatchMethodPointcutTests.java index 97888ce0e28..b69cfbca10b 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/support/NameMatchMethodPointcutTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/support/NameMatchMethodPointcutTests.java @@ -22,9 +22,9 @@ import org.junit.Before; import org.junit.Test; import org.springframework.aop.framework.Advised; import org.springframework.aop.framework.ProxyFactory; -import org.springframework.beans.Person; -import org.springframework.beans.SerializablePerson; +import test.beans.Person; +import test.beans.SerializablePerson; import test.interceptor.NopInterceptor; import test.interceptor.SerializableNopInterceptor; import test.util.SerializationTestUtils; diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/support/PointcutsTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/support/PointcutsTests.java index 5090e8f03e7..eb008c7f30e 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/support/PointcutsTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/support/PointcutsTests.java @@ -23,7 +23,8 @@ import java.lang.reflect.Method; import org.junit.Test; import org.springframework.aop.ClassFilter; import org.springframework.aop.Pointcut; -import org.springframework.beans.TestBean; + +import test.beans.TestBean; /** * @author Rod Johnson diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/support/RegexpMethodPointcutAdvisorIntegrationTests-context.xml b/org.springframework.aop/src/test/java/org/springframework/aop/support/RegexpMethodPointcutAdvisorIntegrationTests-context.xml index 9633d442444..343232a0e90 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/support/RegexpMethodPointcutAdvisorIntegrationTests-context.xml +++ b/org.springframework.aop/src/test/java/org/springframework/aop/support/RegexpMethodPointcutAdvisorIntegrationTests-context.xml @@ -4,7 +4,7 @@ - + custom 666 @@ -21,15 +21,15 @@ - org.springframework.beans.ITestBean + test.beans.ITestBean settersAdvisor - org.springframework.beans.Person + test.beans.Person - + serializableSettersAdvised @@ -48,7 +48,7 @@ - org.springframework.beans.ITestBean + test.beans.ITestBean true diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/support/RegexpMethodPointcutAdvisorIntegrationTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/support/RegexpMethodPointcutAdvisorIntegrationTests.java index 96fd84fedc1..73cbe440237 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/support/RegexpMethodPointcutAdvisorIntegrationTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/support/RegexpMethodPointcutAdvisorIntegrationTests.java @@ -20,13 +20,13 @@ import static org.junit.Assert.assertEquals; import org.junit.Test; import org.springframework.aop.framework.Advised; -import org.springframework.beans.ITestBean; -import org.springframework.beans.Person; -import org.springframework.beans.TestBean; import org.springframework.beans.factory.BeanFactory; import org.springframework.beans.factory.xml.XmlBeanFactory; import org.springframework.core.io.ClassPathResource; +import test.beans.ITestBean; +import test.beans.Person; +import test.beans.TestBean; import test.interceptor.NopInterceptor; import test.interceptor.SerializableNopInterceptor; import test.util.SerializationTestUtils; diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/target/CommonsPoolTargetSourceProxyTests-context.xml b/org.springframework.aop/src/test/java/org/springframework/aop/target/CommonsPoolTargetSourceProxyTests-context.xml index 47bacce831c..75be80560ee 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/target/CommonsPoolTargetSourceProxyTests-context.xml +++ b/org.springframework.aop/src/test/java/org/springframework/aop/target/CommonsPoolTargetSourceProxyTests-context.xml @@ -3,7 +3,7 @@ - + diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/target/CommonsPoolTargetSourceProxyTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/target/CommonsPoolTargetSourceProxyTests.java index f6166291498..ebef892a94f 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/target/CommonsPoolTargetSourceProxyTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/target/CommonsPoolTargetSourceProxyTests.java @@ -20,11 +20,12 @@ import static org.junit.Assert.assertTrue; import org.junit.Test; import org.springframework.aop.support.AopUtils; -import org.springframework.beans.ITestBean; import org.springframework.beans.factory.support.DefaultListableBeanFactory; import org.springframework.beans.factory.xml.XmlBeanDefinitionReader; import org.springframework.core.io.ClassPathResource; +import test.beans.ITestBean; + /** * @author Rob Harrop * @author Chris Beams diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/target/HotSwappableTargetSourceTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/target/HotSwappableTargetSourceTests.java index 933e301041b..196acfdd0e5 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/target/HotSwappableTargetSourceTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/target/HotSwappableTargetSourceTests.java @@ -24,11 +24,11 @@ import org.junit.Test; import org.springframework.aop.framework.Advised; import org.springframework.aop.framework.ProxyFactory; import org.springframework.aop.support.DefaultPointcutAdvisor; -import org.springframework.beans.Person; -import org.springframework.beans.SerializablePerson; import org.springframework.beans.factory.xml.XmlBeanFactory; import org.springframework.core.io.ClassPathResource; +import test.beans.Person; +import test.beans.SerializablePerson; import test.beans.SideEffectBean; import test.interceptor.SerializableNopInterceptor; import test.util.SerializationTestUtils; diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/target/LazyInitTargetSourceTests-customTarget.xml b/org.springframework.aop/src/test/java/org/springframework/aop/target/LazyInitTargetSourceTests-customTarget.xml index 09782ac5c02..9bfe5dfd960 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/target/LazyInitTargetSourceTests-customTarget.xml +++ b/org.springframework.aop/src/test/java/org/springframework/aop/target/LazyInitTargetSourceTests-customTarget.xml @@ -3,7 +3,7 @@ - + 10 diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/target/LazyInitTargetSourceTests-singleton.xml b/org.springframework.aop/src/test/java/org/springframework/aop/target/LazyInitTargetSourceTests-singleton.xml index 0b2d472135a..74b1fe0ec22 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/target/LazyInitTargetSourceTests-singleton.xml +++ b/org.springframework.aop/src/test/java/org/springframework/aop/target/LazyInitTargetSourceTests-singleton.xml @@ -3,7 +3,7 @@ - + 10 diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/target/LazyInitTargetSourceTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/target/LazyInitTargetSourceTests.java index e4b3860a74f..13e28df7df4 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/target/LazyInitTargetSourceTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/target/LazyInitTargetSourceTests.java @@ -21,10 +21,11 @@ import static org.junit.Assert.*; import java.util.Set; import org.junit.Test; -import org.springframework.beans.ITestBean; import org.springframework.beans.factory.xml.XmlBeanFactory; import org.springframework.core.io.ClassPathResource; +import test.beans.ITestBean; + /** * @author Juergen Hoeller * @author Rob Harrop diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/target/PrototypeBasedTargetSourceTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/target/PrototypeBasedTargetSourceTests.java index 51f45db6131..fc4b5120601 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/target/PrototypeBasedTargetSourceTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/target/PrototypeBasedTargetSourceTests.java @@ -21,11 +21,11 @@ import static org.junit.Assert.*; import org.junit.Test; import org.springframework.aop.TargetSource; import org.springframework.beans.MutablePropertyValues; -import org.springframework.beans.SerializablePerson; -import org.springframework.beans.TestBean; import org.springframework.beans.factory.support.DefaultListableBeanFactory; import org.springframework.beans.factory.support.RootBeanDefinition; +import test.beans.SerializablePerson; +import test.beans.TestBean; import test.util.SerializationTestUtils; /** diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/target/ThreadLocalTargetSourceTests-context.xml b/org.springframework.aop/src/test/java/org/springframework/aop/target/ThreadLocalTargetSourceTests-context.xml index a20ef2788b8..24ccf836775 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/target/ThreadLocalTargetSourceTests-context.xml +++ b/org.springframework.aop/src/test/java/org/springframework/aop/target/ThreadLocalTargetSourceTests-context.xml @@ -34,12 +34,12 @@ - + Rod - + Kerry diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/target/ThreadLocalTargetSourceTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/target/ThreadLocalTargetSourceTests.java index f2c8713bc32..7332562f2ba 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/target/ThreadLocalTargetSourceTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/target/ThreadLocalTargetSourceTests.java @@ -20,10 +20,10 @@ import static org.junit.Assert.*; import org.junit.Before; import org.junit.Test; -import org.springframework.beans.ITestBean; import org.springframework.beans.factory.xml.XmlBeanFactory; import org.springframework.core.io.ClassPathResource; +import test.beans.ITestBean; import test.beans.SideEffectBean; diff --git a/org.springframework.aop/src/test/java/org/springframework/beans/IndexedTestBean.java b/org.springframework.aop/src/test/java/org/springframework/beans/IndexedTestBean.java deleted file mode 100644 index 24f28a960fd..00000000000 --- a/org.springframework.aop/src/test/java/org/springframework/beans/IndexedTestBean.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright 2002-2006 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.springframework.beans; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.SortedMap; -import java.util.SortedSet; -import java.util.TreeSet; - -/** - * @author Juergen Hoeller - * @since 11.11.2003 - */ -public class IndexedTestBean { - - private TestBean[] array; - - private Collection collection; - - private List list; - - private Set set; - - private SortedSet sortedSet; - - private Map map; - - private SortedMap sortedMap; - - - public IndexedTestBean() { - this(true); - } - - public IndexedTestBean(boolean populate) { - if (populate) { - populate(); - } - } - - public void populate() { - TestBean tb0 = new TestBean("name0", 0); - TestBean tb1 = new TestBean("name1", 0); - TestBean tb2 = new TestBean("name2", 0); - TestBean tb3 = new TestBean("name3", 0); - TestBean tb4 = new TestBean("name4", 0); - TestBean tb5 = new TestBean("name5", 0); - TestBean tb6 = new TestBean("name6", 0); - TestBean tb7 = new TestBean("name7", 0); - TestBean tbX = new TestBean("nameX", 0); - TestBean tbY = new TestBean("nameY", 0); - this.array = new TestBean[] {tb0, tb1}; - this.list = new ArrayList(); - this.list.add(tb2); - this.list.add(tb3); - this.set = new TreeSet(); - this.set.add(tb6); - this.set.add(tb7); - this.map = new HashMap(); - this.map.put("key1", tb4); - this.map.put("key2", tb5); - this.map.put("key.3", tb5); - List list = new ArrayList(); - list.add(tbX); - list.add(tbY); - this.map.put("key4", list); - } - - - public TestBean[] getArray() { - return array; - } - - public void setArray(TestBean[] array) { - this.array = array; - } - - public Collection getCollection() { - return collection; - } - - public void setCollection(Collection collection) { - this.collection = collection; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public Set getSet() { - return set; - } - - public void setSet(Set set) { - this.set = set; - } - - public SortedSet getSortedSet() { - return sortedSet; - } - - public void setSortedSet(SortedSet sortedSet) { - this.sortedSet = sortedSet; - } - - public Map getMap() { - return map; - } - - public void setMap(Map map) { - this.map = map; - } - - public SortedMap getSortedMap() { - return sortedMap; - } - - public void setSortedMap(SortedMap sortedMap) { - this.sortedMap = sortedMap; - } - -} \ No newline at end of file diff --git a/org.springframework.aop/src/test/java/org/springframework/beans/Colour.java b/org.springframework.aop/src/test/java/test/beans/Colour.java similarity index 96% rename from org.springframework.aop/src/test/java/org/springframework/beans/Colour.java rename to org.springframework.aop/src/test/java/test/beans/Colour.java index 01e73f96740..8793fd3f94b 100644 --- a/org.springframework.aop/src/test/java/org/springframework/beans/Colour.java +++ b/org.springframework.aop/src/test/java/test/beans/Colour.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.beans; +package test.beans; import org.springframework.core.enums.ShortCodedLabeledEnum; diff --git a/org.springframework.aop/src/test/java/org/springframework/beans/DerivedTestBean.java b/org.springframework.aop/src/test/java/test/beans/DerivedTestBean.java similarity index 97% rename from org.springframework.aop/src/test/java/org/springframework/beans/DerivedTestBean.java rename to org.springframework.aop/src/test/java/test/beans/DerivedTestBean.java index db326041c36..8cb213cefe4 100644 --- a/org.springframework.aop/src/test/java/org/springframework/beans/DerivedTestBean.java +++ b/org.springframework.aop/src/test/java/test/beans/DerivedTestBean.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.beans; +package test.beans; import java.io.Serializable; @@ -25,6 +25,7 @@ import org.springframework.beans.factory.DisposableBean; * @author Juergen Hoeller * @since 21.08.2003 */ +@SuppressWarnings("serial") public class DerivedTestBean extends TestBean implements Serializable, BeanNameAware, DisposableBean { private String beanName; diff --git a/org.springframework.aop/src/test/java/org/springframework/beans/INestedTestBean.java b/org.springframework.aop/src/test/java/test/beans/INestedTestBean.java similarity index 95% rename from org.springframework.aop/src/test/java/org/springframework/beans/INestedTestBean.java rename to org.springframework.aop/src/test/java/test/beans/INestedTestBean.java index 7d87547b5f7..228109c284a 100644 --- a/org.springframework.aop/src/test/java/org/springframework/beans/INestedTestBean.java +++ b/org.springframework.aop/src/test/java/test/beans/INestedTestBean.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.beans; +package test.beans; public interface INestedTestBean { diff --git a/org.springframework.aop/src/test/java/org/springframework/beans/IOther.java b/org.springframework.aop/src/test/java/test/beans/IOther.java similarity index 94% rename from org.springframework.aop/src/test/java/org/springframework/beans/IOther.java rename to org.springframework.aop/src/test/java/test/beans/IOther.java index 797486ec44e..734235aa068 100644 --- a/org.springframework.aop/src/test/java/org/springframework/beans/IOther.java +++ b/org.springframework.aop/src/test/java/test/beans/IOther.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.springframework.beans; +package test.beans; public interface IOther { diff --git a/org.springframework.aop/src/test/java/org/springframework/beans/ITestBean.java b/org.springframework.aop/src/test/java/test/beans/ITestBean.java similarity index 90% rename from org.springframework.aop/src/test/java/org/springframework/beans/ITestBean.java rename to org.springframework.aop/src/test/java/test/beans/ITestBean.java index cdf5ef510dd..74f371b0547 100644 --- a/org.springframework.aop/src/test/java/org/springframework/beans/ITestBean.java +++ b/org.springframework.aop/src/test/java/test/beans/ITestBean.java @@ -14,12 +14,12 @@ * limitations under the License. */ -package org.springframework.beans; +package test.beans; import java.io.IOException; /** - * Interface used for {@link org.springframework.beans.TestBean}. + * Interface used for {@link test.beans.TestBean}. * *

Two methods are the same as on Person, but if this * extends person it breaks quite a few tests.. @@ -58,8 +58,6 @@ public interface ITestBean { INestedTestBean getLawyer(); - IndexedTestBean getNestedIndexedBean(); - /** * Increment the age by one. * @return the previous age diff --git a/org.springframework.aop/src/test/java/org/springframework/beans/NestedTestBean.java b/org.springframework.aop/src/test/java/test/beans/NestedTestBean.java similarity index 97% rename from org.springframework.aop/src/test/java/org/springframework/beans/NestedTestBean.java rename to org.springframework.aop/src/test/java/test/beans/NestedTestBean.java index a06e15d150b..d3fde438b67 100644 --- a/org.springframework.aop/src/test/java/org/springframework/beans/NestedTestBean.java +++ b/org.springframework.aop/src/test/java/test/beans/NestedTestBean.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.beans; +package test.beans; /** * Simple nested test bean used for testing bean factories, AOP framework etc. diff --git a/org.springframework.aop/src/test/java/org/springframework/beans/Person.java b/org.springframework.aop/src/test/java/test/beans/Person.java similarity index 96% rename from org.springframework.aop/src/test/java/org/springframework/beans/Person.java rename to org.springframework.aop/src/test/java/test/beans/Person.java index af3bb924f7e..d163756b4e2 100644 --- a/org.springframework.aop/src/test/java/org/springframework/beans/Person.java +++ b/org.springframework.aop/src/test/java/test/beans/Person.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.beans; +package test.beans; /** * diff --git a/org.springframework.aop/src/test/java/org/springframework/beans/SerializablePerson.java b/org.springframework.aop/src/test/java/test/beans/SerializablePerson.java similarity index 96% rename from org.springframework.aop/src/test/java/org/springframework/beans/SerializablePerson.java rename to org.springframework.aop/src/test/java/test/beans/SerializablePerson.java index 66a41f51131..e0a1839c0c1 100644 --- a/org.springframework.aop/src/test/java/org/springframework/beans/SerializablePerson.java +++ b/org.springframework.aop/src/test/java/test/beans/SerializablePerson.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.beans; +package test.beans; import java.io.Serializable; @@ -25,6 +25,7 @@ import org.springframework.util.ObjectUtils; * * @author Rod Johnson */ +@SuppressWarnings("serial") public class SerializablePerson implements Person, Serializable { private String name; diff --git a/org.springframework.aop/src/test/java/org/springframework/beans/TestBean.java b/org.springframework.aop/src/test/java/test/beans/TestBean.java similarity index 96% rename from org.springframework.aop/src/test/java/org/springframework/beans/TestBean.java rename to org.springframework.aop/src/test/java/test/beans/TestBean.java index 82d243e8ca6..8f14fd61a2c 100644 --- a/org.springframework.aop/src/test/java/org/springframework/beans/TestBean.java +++ b/org.springframework.aop/src/test/java/test/beans/TestBean.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.beans; +package test.beans; import java.io.IOException; import java.util.ArrayList; @@ -79,8 +79,6 @@ public class TestBean implements ITestBean, IOther, Comparable { private INestedTestBean lawyer = new NestedTestBean(); - private IndexedTestBean nestedIndexedBean; - private boolean destroyed; private Number someNumber; @@ -329,14 +327,6 @@ public class TestBean implements ITestBean, IOther, Comparable { this.someBoolean = someBoolean; } - public IndexedTestBean getNestedIndexedBean() { - return nestedIndexedBean; - } - - public void setNestedIndexedBean(IndexedTestBean nestedIndexedBean) { - this.nestedIndexedBean = nestedIndexedBean; - } - public List getOtherColours() { return otherColours; } diff --git a/org.springframework.aop/src/test/java/test/beans/subpkg/DeepBean.java b/org.springframework.aop/src/test/java/test/beans/subpkg/DeepBean.java new file mode 100644 index 00000000000..7920111e2e8 --- /dev/null +++ b/org.springframework.aop/src/test/java/test/beans/subpkg/DeepBean.java @@ -0,0 +1,32 @@ +/* + * Copyright 2002-2008 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package test.beans.subpkg; + +import org.springframework.aop.aspectj.AspectJExpressionPointcutTests; + +/** + * Used for testing pointcut matching. + * + * @see AspectJExpressionPointcutTests#testWithinRootAndSubpackages() + * + * @author Chris Beams + */ +public class DeepBean { + public void aMethod(String foo) { + // no-op + } +} diff --git a/org.springframework.aop/src/test/java/test/util/SerializationTestUtils.java b/org.springframework.aop/src/test/java/test/util/SerializationTestUtils.java index e6aed97ff44..cdee0289809 100644 --- a/org.springframework.aop/src/test/java/test/util/SerializationTestUtils.java +++ b/org.springframework.aop/src/test/java/test/util/SerializationTestUtils.java @@ -18,7 +18,8 @@ import java.io.OutputStream; import java.io.Serializable; import org.junit.Test; -import org.springframework.beans.TestBean; + +import test.beans.TestBean; /** * Utilities for testing serializability of objects.