aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/ataspectj/AtAjSyntaxTests.java9
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/ataspectj/atajc150-tests.xml12
2 files changed, 21 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc150/ataspectj/AtAjSyntaxTests.java b/tests/src/org/aspectj/systemtest/ajc150/ataspectj/AtAjSyntaxTests.java
index 8d5b3dadf..c60ffb2ba 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/ataspectj/AtAjSyntaxTests.java
+++ b/tests/src/org/aspectj/systemtest/ajc150/ataspectj/AtAjSyntaxTests.java
@@ -31,6 +31,15 @@ public class AtAjSyntaxTests extends XMLBasedAjcTestCase {
return new File("../tests/src/org/aspectj/systemtest/ajc150/ataspectj/atajc150.xml");
}
+// FIXME ATAJ Crashes because of specifying issingleton
+// public void testSimpleBefore() {
+// runTest("SimpleBefore");
+// }
+
+ public void testSimpleAfter() {
+ runTest("SimpleAfter");
+ }
+
public void testSingletonAspectBinding() {
runTest("singletonAspectBindings");
}
diff --git a/tests/src/org/aspectj/systemtest/ajc150/ataspectj/atajc150-tests.xml b/tests/src/org/aspectj/systemtest/ajc150/ataspectj/atajc150-tests.xml
index 4de17dfb8..39668594e 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/ataspectj/atajc150-tests.xml
+++ b/tests/src/org/aspectj/systemtest/ajc150/ataspectj/atajc150-tests.xml
@@ -1,5 +1,17 @@
<!-- @AspectJ v1.5.0 Tests -->
+ <ajc-test dir="java5/ataspectj" title="SimpleBefore">
+ <compile files="SimpleBefore.java" options="-1.5 -showWeaveInfo -XnoInline"/>
+ <run class="SimpleBefore"/>
+ </ajc-test>
+
+ <ajc-test dir="java5/ataspectj" title="SimpleAfter">
+ <compile files="SimpleAfter.java" options="-1.5 -showWeaveInfo -XnoInline">
+ <message kind="weave" text="(SimpleAfter.java:13) advised by after advice from 'SimpleAfter$X'"/>
+ </compile>
+ <run class="SimpleAfter"/>
+ </ajc-test>
+
<ajc-test dir="java5/ataspectj" title="singletonAspectBindings">
<compile files="ataspectj/SingletonAspectBindingsTest.java,ataspectj/TestHelper.java" options="-1.5 -XnoInline"/>
<run class="ataspectj.SingletonAspectBindingsTest"/>