diff options
author | avasseur <avasseur> | 2005-05-10 15:44:11 +0000 |
---|---|---|
committer | avasseur <avasseur> | 2005-05-10 15:44:11 +0000 |
commit | 83655ff47c1af1ca58c8043626799e0483d5acd4 (patch) | |
tree | 0cd02ea9863cbbb759ab0df465dd60a584855b8f /tests/src | |
parent | 2c4f9d292a521703642169d8c066792d0e0802f5 (diff) | |
download | aspectj-83655ff47c1af1ca58c8043626799e0483d5acd4.tar.gz aspectj-83655ff47c1af1ca58c8043626799e0483d5acd4.zip |
fix 75442 thru lateTypeMungers, currently @AJaspectOf and perObject are lateTypeMungers. new LTW tests, some fix in the LTW test error reporting
Diffstat (limited to 'tests/src')
5 files changed, 76 insertions, 6 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc150/AllTestsAspectJ150.java b/tests/src/org/aspectj/systemtest/ajc150/AllTestsAspectJ150.java index 004eb0a0d..6069f845a 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/AllTestsAspectJ150.java +++ b/tests/src/org/aspectj/systemtest/ajc150/AllTestsAspectJ150.java @@ -12,6 +12,7 @@ package org.aspectj.systemtest.ajc150; import org.aspectj.systemtest.ajc150.ataspectj.AtAjSyntaxTests; import org.aspectj.systemtest.ajc150.ataspectj.AtAjMisuseTests; +import org.aspectj.systemtest.ajc150.ataspectj.AtAjLTWTests; import junit.framework.Test; import junit.framework.TestSuite; @@ -47,6 +48,7 @@ public class AllTestsAspectJ150 { suite.addTest(GenericsTests.suite()); suite.addTest(AtAjSyntaxTests.suite()); suite.addTest(AtAjMisuseTests.suite()); + suite.addTest(AtAjLTWTests.suite()); //$JUnit-END$ return suite; } diff --git a/tests/src/org/aspectj/systemtest/ajc150/ataspectj/AtAjLTWTests.java b/tests/src/org/aspectj/systemtest/ajc150/ataspectj/AtAjLTWTests.java new file mode 100644 index 000000000..0f820873e --- /dev/null +++ b/tests/src/org/aspectj/systemtest/ajc150/ataspectj/AtAjLTWTests.java @@ -0,0 +1,31 @@ +/******************************************************************************* + * Copyright (c) 2005 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://eclipse.org/legal/epl-v10.html + * + * Contributors: + * Alexandre Vasseur initial implementation + *******************************************************************************/ +package org.aspectj.systemtest.ajc150.ataspectj; + +import org.aspectj.testing.AutowiredXMLBasedAjcTestCase; +import junit.framework.Test; + +import java.io.File; + +/** + * @author <a href="mailto:alex AT gnilux DOT com">Alexandre Vasseur</a> + */ +public class AtAjLTWTests extends AutowiredXMLBasedAjcTestCase { + + public static Test suite() { + return AutowiredXMLBasedAjcTestCase.loadSuite(org.aspectj.systemtest.ajc150.ataspectj.AtAjLTWTests.class); + } + + protected File getSpecFile() { + return new File("../tests/src/org/aspectj/systemtest/ajc150/ataspectj/ltw.xml"); + } +} diff --git a/tests/src/org/aspectj/systemtest/ajc150/ataspectj/ltw.xml b/tests/src/org/aspectj/systemtest/ajc150/ataspectj/ltw.xml new file mode 100644 index 000000000..ae296871c --- /dev/null +++ b/tests/src/org/aspectj/systemtest/ajc150/ataspectj/ltw.xml @@ -0,0 +1,39 @@ +<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]> +<suite> + + <ajc-test dir="java5/ataspectj" title="RunThemAllWithJavacCompiledAndLTW"> + <ant file="ajc-ant.xml" target="javac.ltw"/> + </ajc-test> + + <ajc-test dir="java5/ataspectj" title="AjcLTW PerClauseTest -XnoWeave"> + <compile + files="ataspectj/PerClauseTest.java,ataspectj/PerClauseTestAspects.java,ataspectj/TestHelper.java" + options="-1.5 -XnoWeave"/> + <ant file="ajc-ant.xml" target="ltw.PerClauseTest" verbose="true"/> + </ajc-test> + + <ajc-test dir="java5/ataspectj" title="AjcLTW PerClauseTest -Xreweavable"> + <compile + files="ataspectj/PerClauseTest.java,ataspectj/PerClauseTestAspects.java,ataspectj/TestHelper.java" + options="-1.5 -Xreweavable"/> + <ant file="ajc-ant.xml" target="ltw.PerClauseTest" verbose="true"/> + </ajc-test> + +<!-- FIXME AV: todo by Andy--> +<!-- <ajc-test dir="java5/ataspectj" title="JavaCAjcLTW PerClauseTest">--> +<!-- <compile--> +<!-- files="ataspectj/PerClauseTest.java,ataspectj/TestHelper.java"--> +<!-- options="-1.5 -XnoWeave"/>--> +<!-- <comment>--> +<!-- aspectOf methods will be pushed in, ignore warning for adviceDidNotMatch but still do the logic for them--> +<!-- since such just added methods are an interesting case (percflow ajc$perCflowStack advice)--> +<!-- </comment>--> +<!-- <compile--> +<!-- files="ataspectj/PerClauseTestAspects.java"--> +<!-- options="-1.5 -Xdev:NoAtAspectJProcessing">--> +<!-- <message kind="warning"/>--> +<!-- </compile>--> +<!-- <ant file="ajc-ant.xml" target="ltw.PerClauseTest" verbose="true"/>--> +<!-- </ajc-test>--> + +</suite>
\ No newline at end of file diff --git a/tests/src/org/aspectj/systemtest/ajc150/ataspectj/misuse.xml b/tests/src/org/aspectj/systemtest/ajc150/ataspectj/misuse.xml index d9c0ba75c..5427a4a2c 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ataspectj/misuse.xml +++ b/tests/src/org/aspectj/systemtest/ajc150/ataspectj/misuse.xml @@ -15,7 +15,8 @@ <ajc-test dir="java5/ataspectj" pr="" title="class with @Before extending @Aspect class"> <compile files="ataspectj/misuse/Test006.java" options="-1.5 -Xdev:NoAtAspectJProcessing"> - <message kind="warning" line="11" text="Found @AspectJ annotations in a non @Aspect type 'ataspectj.misuse.Test006B'"/> + <!-- FIXME AV - optim in place. Check and remove useless test --> + <!--<message kind="warning" line="11" text="Found @AspectJ annotations in a non @Aspect type 'ataspectj.misuse.Test006B'"/>--> </compile> </ajc-test> diff --git a/tests/src/org/aspectj/systemtest/ajc150/ataspectj/syntax.xml b/tests/src/org/aspectj/systemtest/ajc150/ataspectj/syntax.xml index d839dda28..12a84bf09 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ataspectj/syntax.xml +++ b/tests/src/org/aspectj/systemtest/ajc150/ataspectj/syntax.xml @@ -81,9 +81,9 @@ </ajc-test> <ajc-test dir="java5/ataspectj" title="PerClause"> - <compile files="ataspectj/PerClauseTest.java,ataspectj/TestHelper.java" options="-1.5 -Xdev:NoAtAspectJProcessing"/> + <compile files="ataspectj/PerClauseTest.java,ataspectj/PerClauseTestAspects.java,ataspectj/TestHelper.java" options="-1.5 -Xdev:NoAtAspectJProcessing"/> <run class="ataspectj.PerClauseTest"/> - <compile files="ataspectj/PerClauseTest.java,ataspectj/TestHelper.java" options="-1.5"/> + <compile files="ataspectj/PerClauseTest.java,ataspectj/PerClauseTestAspects.java,ataspectj/TestHelper.java" options="-1.5"/> <run class="ataspectj.PerClauseTest"/> </ajc-test> @@ -94,7 +94,4 @@ <run class="ataspectj.AroundInlineMungerTest"/> </ajc-test> - <ajc-test dir="java5/ataspectj" title="RunThemAllWithJavacCompiledAndLTW"> - <ant file="ajc-ant.xml" target="all"/> - </ajc-test> </suite>
\ No newline at end of file |