diff options
author | Andy Clement <andrew.clement@gmail.com> | 2012-08-16 11:05:05 -0700 |
---|---|---|
committer | Andy Clement <andrew.clement@gmail.com> | 2012-08-16 11:05:05 -0700 |
commit | 3875260e02d5ac312c35ff034d7b75407b52820c (patch) | |
tree | f94ac23f2a0a66d60213830e80868439cada4c2b | |
parent | 5d0e1860cb5069b266ba70d33bc356d36e285a90 (diff) | |
download | aspectj-356694.tar.gz aspectj-356694.zip |
testcode 356594356694
-rw-r--r-- | tests/bugs171/pr356594/Code.aj | 14 | ||||
-rw-r--r-- | tests/bugs171/pr384398_2/A$InnerA.class | bin | 0 -> 382 bytes | |||
-rw-r--r-- | tests/bugs171/pr384398_2/A.class | bin | 0 -> 319 bytes | |||
-rw-r--r-- | tests/bugs171/pr384398_2/B.class | bin | 0 -> 636 bytes | |||
-rw-r--r-- | tests/src/org/aspectj/systemtest/AllTests17.java | 2 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc171/Ajc171Tests.java | 39 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc171/AllTestsAspectJ171.java | 25 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc171/ajc171.xml | 12 |
8 files changed, 92 insertions, 0 deletions
diff --git a/tests/bugs171/pr356594/Code.aj b/tests/bugs171/pr356594/Code.aj new file mode 100644 index 000000000..4dd38ea21 --- /dev/null +++ b/tests/bugs171/pr356594/Code.aj @@ -0,0 +1,14 @@ +import java.lang.annotation.*; + +@Retention(RetentionPolicy.RUNTIME) +@interface Foo {} +@Retention(RetentionPolicy.RUNTIME) +@interface Bar {} + +class C { +} + +aspect X { +declare @type: C: @Foo @Bar; +} + diff --git a/tests/bugs171/pr384398_2/A$InnerA.class b/tests/bugs171/pr384398_2/A$InnerA.class Binary files differnew file mode 100644 index 000000000..649091960 --- /dev/null +++ b/tests/bugs171/pr384398_2/A$InnerA.class diff --git a/tests/bugs171/pr384398_2/A.class b/tests/bugs171/pr384398_2/A.class Binary files differnew file mode 100644 index 000000000..8a42b52b9 --- /dev/null +++ b/tests/bugs171/pr384398_2/A.class diff --git a/tests/bugs171/pr384398_2/B.class b/tests/bugs171/pr384398_2/B.class Binary files differnew file mode 100644 index 000000000..3296bd351 --- /dev/null +++ b/tests/bugs171/pr384398_2/B.class diff --git a/tests/src/org/aspectj/systemtest/AllTests17.java b/tests/src/org/aspectj/systemtest/AllTests17.java index f026ae59a..37a02c350 100644 --- a/tests/src/org/aspectj/systemtest/AllTests17.java +++ b/tests/src/org/aspectj/systemtest/AllTests17.java @@ -7,12 +7,14 @@ import junit.framework.Test; import junit.framework.TestSuite; import org.aspectj.systemtest.ajc170.AllTestsAspectJ170; +import org.aspectj.systemtest.ajc171.AllTestsAspectJ171; public class AllTests17 { public static Test suite() { TestSuite suite = new TestSuite("AspectJ System Test Suite - JDK 1.7"); // $JUnit-BEGIN$ + suite.addTest(AllTestsAspectJ171.suite()); suite.addTest(AllTestsAspectJ170.suite()); suite.addTest(AllTests16.suite()); suite.addTest(AllTests15.suite()); diff --git a/tests/src/org/aspectj/systemtest/ajc171/Ajc171Tests.java b/tests/src/org/aspectj/systemtest/ajc171/Ajc171Tests.java new file mode 100644 index 000000000..344a11ea3 --- /dev/null +++ b/tests/src/org/aspectj/systemtest/ajc171/Ajc171Tests.java @@ -0,0 +1,39 @@ +/******************************************************************************* + * Copyright (c) 2008-2012 Contributors + * 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.ajc171; + +import java.io.File; + +import junit.framework.Test; + +import org.aspectj.testing.XMLBasedAjcTestCase; + +/** + * @author Andy Clement + */ +public class Ajc171Tests extends org.aspectj.testing.XMLBasedAjcTestCase { + +// public void testMultipleAnnos_356594() { +// runTest("multiple annos 1"); +// } + + // --- + + public static Test suite() { + return XMLBasedAjcTestCase.loadSuite(Ajc171Tests.class); + } + + @Override + protected File getSpecFile() { + return new File("../tests/src/org/aspectj/systemtest/ajc171/ajc171.xml"); + } + +} diff --git a/tests/src/org/aspectj/systemtest/ajc171/AllTestsAspectJ171.java b/tests/src/org/aspectj/systemtest/ajc171/AllTestsAspectJ171.java new file mode 100644 index 000000000..78e321b84 --- /dev/null +++ b/tests/src/org/aspectj/systemtest/ajc171/AllTestsAspectJ171.java @@ -0,0 +1,25 @@ +/******************************************************************************* + * Copyright (c) 2008 Contributors + * 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.ajc171; + +import junit.framework.Test; +import junit.framework.TestSuite; + +public class AllTestsAspectJ171 { + + public static Test suite() { + TestSuite suite = new TestSuite("AspectJ 1.7.1 tests"); + // $JUnit-BEGIN$ + suite.addTest(Ajc171Tests.suite()); + // $JUnit-END$ + return suite; + } +} diff --git a/tests/src/org/aspectj/systemtest/ajc171/ajc171.xml b/tests/src/org/aspectj/systemtest/ajc171/ajc171.xml new file mode 100644 index 000000000..981820a62 --- /dev/null +++ b/tests/src/org/aspectj/systemtest/ajc171/ajc171.xml @@ -0,0 +1,12 @@ +<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]> + +<suite> + + <ajc-test dir="bugs171/pr356594" title="multiple annos 1"> + <compile files="Code.aj" options="-1.5 -showWeaveInfo"> + <message kind="weave" text="'C' (Code.aj:8) is annotated with @Bar type annotation from 'X' (Code.aj:12)"/> + <message kind="weave" text="'C' (Code.aj:8) is annotated with @Foo type annotation from 'X' (Code.aj:12)"/> + </compile> + </ajc-test> + +</suite> |