aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test/java/org/aspectj/systemtest/ajc150/AnnotationPointcutsTests.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/test/java/org/aspectj/systemtest/ajc150/AnnotationPointcutsTests.java')
-rw-r--r--tests/src/test/java/org/aspectj/systemtest/ajc150/AnnotationPointcutsTests.java53
1 files changed, 53 insertions, 0 deletions
diff --git a/tests/src/test/java/org/aspectj/systemtest/ajc150/AnnotationPointcutsTests.java b/tests/src/test/java/org/aspectj/systemtest/ajc150/AnnotationPointcutsTests.java
new file mode 100644
index 000000000..4301a44c0
--- /dev/null
+++ b/tests/src/test/java/org/aspectj/systemtest/ajc150/AnnotationPointcutsTests.java
@@ -0,0 +1,53 @@
+/*******************************************************************************
+ * Copyright (c) 2004 IBM
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Andy Clement - initial API and implementation
+ *******************************************************************************/
+package org.aspectj.systemtest.ajc150;
+
+import java.io.File;
+
+import junit.framework.Test;
+
+import org.aspectj.testing.XMLBasedAjcTestCase;
+
+
+/**
+ * Tests the use of Annotations in pointcuts
+ */
+public class AnnotationPointcutsTests extends XMLBasedAjcTestCase {
+
+ public static Test suite() {
+ return XMLBasedAjcTestCase.loadSuite(AnnotationPointcutsTests.class);
+ }
+
+ protected File getSpecFile() {
+ return getClassResource("ajc150.xml");
+ }
+
+ // before(): call(@SimpleAnnotation * *(..)) { }
+ public void test001_usingAnnotationsInPointcuts() {
+ runTest("annotation matching on call");
+ }
+
+ public void test002_AtAnnotationMatching() {
+ runTest("at annotation matching");
+ }
+
+ public void test003_Within_Code() {
+ runTest("annotations and within(code)");
+ }
+
+ public void test004_Within() {
+ runTest("annotations and within");
+ }
+
+ // TODO extra tests
+ // 3) @annotation on the different join point kinds, matches with inherited annotation
+
+} \ No newline at end of file