summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2005-04-19 12:42:40 +0000
committeraclement <aclement>2005-04-19 12:42:40 +0000
commitb97f1df229dbf37fc91fd15a64edbae4cc9d5766 (patch)
tree158c89bb1465e1f76a0906bc106b62a7cadd88a3
parenta172236de1104ff764befcd881fb5fd866d2ddc7 (diff)
downloadaspectj-b97f1df229dbf37fc91fd15a64edbae4cc9d5766.tar.gz
aspectj-b97f1df229dbf37fc91fd15a64edbae4cc9d5766.zip
new simple tests - one of which aborts...
-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"/>