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 607d68f5e5d..79931bd682e 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 @@ -28,8 +28,9 @@ import org.junit.Before; import org.junit.Test; import org.springframework.beans.TestBean; -import example.annotations.EmptySpringAnnotation; -import example.annotations.transaction.Tx; +import test.annotation.EmptySpringAnnotation; +import test.annotation.transaction.Tx; + /** * Java5-specific AspectJExpressionPointcutTests. @@ -117,26 +118,26 @@ public class TigerAspectJExpressionPointcutTests { @Test public void testMatchAnnotationOnClassWithAtWithin() throws SecurityException, NoSuchMethodException { - String expression = "@within(example.annotations.transaction.Tx)"; + String expression = "@within(test.annotation.transaction.Tx)"; testMatchAnnotationOnClass(expression); } @Test public void testMatchAnnotationOnClassWithoutBinding() throws SecurityException, NoSuchMethodException { - String expression = "within(@example.annotations.transaction.Tx *)"; + String expression = "within(@test.annotation.transaction.Tx *)"; testMatchAnnotationOnClass(expression); } @Test public void testMatchAnnotationOnClassWithSubpackageWildcard() throws SecurityException, NoSuchMethodException { - String expression = "within(@(example.annotations..*) *)"; + String expression = "within(@(test.annotation..*) *)"; AspectJExpressionPointcut springAnnotatedPc = testMatchAnnotationOnClass(expression); assertFalse(springAnnotatedPc.matches(TestBean.class.getMethod("setName", String.class), TestBean.class)); assertTrue(springAnnotatedPc.matches(SpringAnnotated.class.getMethod("foo", (Class[]) null), SpringAnnotated.class)); - expression = "within(@(example.annotations.transaction..*) *)"; + expression = "within(@(test.annotation.transaction..*) *)"; AspectJExpressionPointcut springTxAnnotatedPc = testMatchAnnotationOnClass(expression); assertFalse(springTxAnnotatedPc.matches(SpringAnnotated.class.getMethod("foo", (Class[]) null), SpringAnnotated.class)); @@ -144,7 +145,7 @@ public class TigerAspectJExpressionPointcutTests { @Test public void testMatchAnnotationOnClassWithExactPackageWildcard() throws SecurityException, NoSuchMethodException { - String expression = "within(@(example.annotations.transaction.*) *)"; + String expression = "within(@(test.annotation.transaction.*) *)"; testMatchAnnotationOnClass(expression); } @@ -162,7 +163,7 @@ public class TigerAspectJExpressionPointcutTests { @Test public void testAnnotationOnMethodWithFQN() throws SecurityException, NoSuchMethodException { - String expression = "@annotation(example.annotations.transaction.Tx)"; + String expression = "@annotation(test.annotation.transaction.Tx)"; AspectJExpressionPointcut ajexp = new AspectJExpressionPointcut(); ajexp.setExpression(expression); @@ -176,7 +177,7 @@ public class TigerAspectJExpressionPointcutTests { @Test public void testAnnotationOnMethodWithWildcard() throws SecurityException, NoSuchMethodException { - String expression = "execution(@(example.annotations..*) * *(..))"; + String expression = "execution(@(test.annotation..*) * *(..))"; AspectJExpressionPointcut anySpringMethodAnnotation = new AspectJExpressionPointcut(); anySpringMethodAnnotation.setExpression(expression); @@ -190,7 +191,7 @@ public class TigerAspectJExpressionPointcutTests { @Test public void testAnnotationOnMethodArgumentsWithFQN() throws SecurityException, NoSuchMethodException { - String expression = "@args(*, example.annotations.EmptySpringAnnotation))"; + String expression = "@args(*, test.annotation.EmptySpringAnnotation))"; AspectJExpressionPointcut takesSpringAnnotatedArgument2 = new AspectJExpressionPointcut(); takesSpringAnnotatedArgument2.setExpression(expression); @@ -219,7 +220,7 @@ public class TigerAspectJExpressionPointcutTests { @Test public void testAnnotationOnMethodArgumentsWithWildcards() throws SecurityException, NoSuchMethodException { - String expression = "execution(* *(*, @(example..*) *))"; + String expression = "execution(* *(*, @(test..*) *))"; AspectJExpressionPointcut takesSpringAnnotatedArgument2 = new AspectJExpressionPointcut(); takesSpringAnnotatedArgument2.setExpression(expression); 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 484c8110f70..865e5f1f3a6 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 @@ -31,7 +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; +import test.beans.SideEffectBean; + /** * @author Rod Johnson diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/target/PrototypeTargetSourceTests.java b/org.springframework.aop/src/test/java/org/springframework/aop/target/PrototypeTargetSourceTests.java index 994007f9250..478518d803b 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/target/PrototypeTargetSourceTests.java +++ b/org.springframework.aop/src/test/java/org/springframework/aop/target/PrototypeTargetSourceTests.java @@ -24,7 +24,8 @@ import org.springframework.beans.factory.BeanFactory; import org.springframework.beans.factory.xml.XmlBeanFactory; import org.springframework.core.io.ClassPathResource; -import common.beans.core.SideEffectBean; +import test.beans.SideEffectBean; + /** * @author Rod Johnson 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 90abac5c97e..bc13e330e96 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 @@ -24,7 +24,8 @@ import org.springframework.beans.ITestBean; import org.springframework.beans.factory.xml.XmlBeanFactory; import org.springframework.core.io.ClassPathResource; -import common.beans.core.SideEffectBean; +import test.beans.SideEffectBean; + /** * @author Rod Johnson diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/target/hotSwapTests.xml b/org.springframework.aop/src/test/java/org/springframework/aop/target/hotSwapTests.xml index a9c339c9c19..04cc623d30b 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/target/hotSwapTests.xml +++ b/org.springframework.aop/src/test/java/org/springframework/aop/target/hotSwapTests.xml @@ -4,11 +4,11 @@ - + 10 - + 20 diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/target/prototypeTests.xml b/org.springframework.aop/src/test/java/org/springframework/aop/target/prototypeTests.xml index 2e4616737de..524fa796776 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/target/prototypeTests.xml +++ b/org.springframework.aop/src/test/java/org/springframework/aop/target/prototypeTests.xml @@ -4,11 +4,11 @@ - + 10 - + 10 diff --git a/org.springframework.aop/src/test/java/org/springframework/aop/target/threadLocalTests.xml b/org.springframework.aop/src/test/java/org/springframework/aop/target/threadLocalTests.xml index 0e203b61963..20b48443046 100644 --- a/org.springframework.aop/src/test/java/org/springframework/aop/target/threadLocalTests.xml +++ b/org.springframework.aop/src/test/java/org/springframework/aop/target/threadLocalTests.xml @@ -3,7 +3,7 @@ - + 10 diff --git a/org.springframework.aop/src/test/java/example/annotations/EmptySpringAnnotation.java b/org.springframework.aop/src/test/java/test/annotation/EmptySpringAnnotation.java similarity index 96% rename from org.springframework.aop/src/test/java/example/annotations/EmptySpringAnnotation.java rename to org.springframework.aop/src/test/java/test/annotation/EmptySpringAnnotation.java index daf8aa488f8..60c43c858ff 100644 --- a/org.springframework.aop/src/test/java/example/annotations/EmptySpringAnnotation.java +++ b/org.springframework.aop/src/test/java/test/annotation/EmptySpringAnnotation.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package example.annotations; +package test.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/org.springframework.aop/src/test/java/example/annotations/transaction/Tx.java b/org.springframework.aop/src/test/java/test/annotation/transaction/Tx.java similarity index 96% rename from org.springframework.aop/src/test/java/example/annotations/transaction/Tx.java rename to org.springframework.aop/src/test/java/test/annotation/transaction/Tx.java index 31f96df9c63..138d2410903 100644 --- a/org.springframework.aop/src/test/java/example/annotations/transaction/Tx.java +++ b/org.springframework.aop/src/test/java/test/annotation/transaction/Tx.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package example.annotations.transaction; +package test.annotation.transaction; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; diff --git a/org.springframework.aop/src/test/java/common/beans/core/SideEffectBean.java b/org.springframework.aop/src/test/java/test/beans/SideEffectBean.java similarity index 97% rename from org.springframework.aop/src/test/java/common/beans/core/SideEffectBean.java rename to org.springframework.aop/src/test/java/test/beans/SideEffectBean.java index 39d1f88db17..ea8279e2c2d 100644 --- a/org.springframework.aop/src/test/java/common/beans/core/SideEffectBean.java +++ b/org.springframework.aop/src/test/java/test/beans/SideEffectBean.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package common.beans.core; +package test.beans; /** * Bean that changes state on a business invocation, so that