aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.matcher/testsrc
diff options
context:
space:
mode:
authoraclement <aclement>2011-04-01 03:46:11 +0000
committeraclement <aclement>2011-04-01 03:46:11 +0000
commit293a0756b25fd1e9c7cd2623d2e28e78aa797f06 (patch)
tree99fccbe5bd2e8a8ad687d45bf903364f3dbac7bc /org.aspectj.matcher/testsrc
parent8b2d3861e5481fb2f80c98c3fc7651d54f8c69aa (diff)
downloadaspectj-293a0756b25fd1e9c7cd2623d2e28e78aa797f06.tar.gz
aspectj-293a0756b25fd1e9c7cd2623d2e28e78aa797f06.zip
341446: adjust test structure to avoid inclusion of incorrect (level50) classes in packaged jars
Diffstat (limited to 'org.aspectj.matcher/testsrc')
-rw-r--r--org.aspectj.matcher/testsrc/org/aspectj/matcher/tools/CommonAdvancedPointcutExpressionTests.java8
-rw-r--r--org.aspectj.matcher/testsrc/testdata/AnnotatedClass.java11
-rw-r--r--org.aspectj.matcher/testsrc/testdata/MethodLevelAnnotation.java5
-rw-r--r--org.aspectj.matcher/testsrc/testdata/SomeAnnotation.java6
4 files changed, 22 insertions, 8 deletions
diff --git a/org.aspectj.matcher/testsrc/org/aspectj/matcher/tools/CommonAdvancedPointcutExpressionTests.java b/org.aspectj.matcher/testsrc/org/aspectj/matcher/tools/CommonAdvancedPointcutExpressionTests.java
index e5fa8b0c0..2d3669748 100644
--- a/org.aspectj.matcher/testsrc/org/aspectj/matcher/tools/CommonAdvancedPointcutExpressionTests.java
+++ b/org.aspectj.matcher/testsrc/org/aspectj/matcher/tools/CommonAdvancedPointcutExpressionTests.java
@@ -25,14 +25,6 @@ import org.aspectj.weaver.tools.StandardPointcutParser;
*
* This is based on the Reflection oriented PointcutExpressionTest in the weaver project.
*
- * TESTDATA. The testdata for these tests is kept in org.aspectj.matcher/testdata. It is a series of .java files that need to be
- * compiled and available at runtime. Since they are java5 (they include annotations) they cannot be in a source folder for the
- * project, so they are compiled separately and then jar'd into a testdata.jar file in that folder. This folder is defined to be on
- * the classpath for org.aspectj.matcher, this enables them to be seen by a simple world that uses the classpath of the matcher
- * project as the definition of what it can see. Other worlds, for example JDT World, will need to have those types defined in a
- * project that is accessible in the JDT World instance. Because these tests exercise Java5 matching, the concrete ReflectionWorld
- * subtype is not defined in here, it is defined in weaver5 (messy, but works well).
- *
* @author Andy Clement
*/
public abstract class CommonAdvancedPointcutExpressionTests extends TestCase {
diff --git a/org.aspectj.matcher/testsrc/testdata/AnnotatedClass.java b/org.aspectj.matcher/testsrc/testdata/AnnotatedClass.java
new file mode 100644
index 000000000..80dbda413
--- /dev/null
+++ b/org.aspectj.matcher/testsrc/testdata/AnnotatedClass.java
@@ -0,0 +1,11 @@
+package testdata;
+
+@SomeAnnotation
+public class AnnotatedClass {
+
+ @MethodLevelAnnotation
+ public void annotatedMethod() { }
+
+ public void nonAnnotatedMethod() {
+ }
+}
diff --git a/org.aspectj.matcher/testsrc/testdata/MethodLevelAnnotation.java b/org.aspectj.matcher/testsrc/testdata/MethodLevelAnnotation.java
new file mode 100644
index 000000000..2f46dd8ab
--- /dev/null
+++ b/org.aspectj.matcher/testsrc/testdata/MethodLevelAnnotation.java
@@ -0,0 +1,5 @@
+package testdata;
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.RUNTIME)
+@interface MethodLevelAnnotation {}
diff --git a/org.aspectj.matcher/testsrc/testdata/SomeAnnotation.java b/org.aspectj.matcher/testsrc/testdata/SomeAnnotation.java
new file mode 100644
index 000000000..25a4991d6
--- /dev/null
+++ b/org.aspectj.matcher/testsrc/testdata/SomeAnnotation.java
@@ -0,0 +1,6 @@
+package testdata;
+
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.RUNTIME)
+@interface SomeAnnotation {}