1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- /*******************************************************************************
- * Copyright (c) 2004 IBM
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-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 new File("../tests/src/org/aspectj/systemtest/ajc150/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
-
- }
|