]> source.dussan.org Git - aspectj.git/commitdiff
some annotation matching tests
authoraclement <aclement>
Wed, 10 Dec 2008 20:01:31 +0000 (20:01 +0000)
committeraclement <aclement>
Wed, 10 Dec 2008 20:01:31 +0000 (20:01 +0000)
weaver5/java5-testsrc/org/aspectj/matcher/tools/ReflectionWorldAdvancedPointcutExpressionTests.java [new file with mode: 0644]
weaver5/java5-testsrc/org/aspectj/weaver/AllWeaver5Tests.java

diff --git a/weaver5/java5-testsrc/org/aspectj/matcher/tools/ReflectionWorldAdvancedPointcutExpressionTests.java b/weaver5/java5-testsrc/org/aspectj/matcher/tools/ReflectionWorldAdvancedPointcutExpressionTests.java
new file mode 100644 (file)
index 0000000..62c17f4
--- /dev/null
@@ -0,0 +1,20 @@
+package org.aspectj.matcher.tools;
+
+import org.aspectj.matcher.tools.CommonAdvancedPointcutExpressionTests;
+import org.aspectj.weaver.World;
+import org.aspectj.weaver.reflect.ReflectionWorld;
+
+/**
+ * Run all the pointcut parsing/matching tests against a ReflectionWorld.
+ * 
+ * @author Andy Clement
+ */
+public class ReflectionWorldAdvancedPointcutExpressionTests extends CommonAdvancedPointcutExpressionTests {
+
+       protected World getWorld() {
+               World w = new ReflectionWorld(false, getClass().getClassLoader());
+               w.setBehaveInJava5Way(true);
+               return w;
+       }
+
+}
index 9075b23ab2568f62dd7c0f38148c6d4674d144a7..988470429527bf600b42b489451a49213199f396 100644 (file)
@@ -15,6 +15,7 @@ package org.aspectj.weaver;
 import junit.framework.Test;
 import junit.framework.TestSuite;
 
+import org.aspectj.matcher.tools.ReflectionWorldAdvancedPointcutExpressionTests;
 import org.aspectj.weaver.reflect.ReflectionWorldReferenceTypeTest;
 import org.aspectj.weaver.reflect.ReflectionWorldSpecificTest;
 import org.aspectj.weaver.tools.PointcutExpressionTest;
@@ -28,6 +29,7 @@ public class AllWeaver5Tests {
                suite.addTest(BcweaverModuleTests15.suite());
                suite.addTestSuite(ReflectionWorldReferenceTypeTest.class);
                suite.addTestSuite(PointcutExpressionTest.class);
+               suite.addTestSuite(ReflectionWorldAdvancedPointcutExpressionTests.class);
                suite.addTestSuite(ReflectionWorldSpecificTest.class);
                // $JUnit-END$
                return suite;