]> source.dussan.org Git - aspectj.git/commitdiff
new simple tests - one of which aborts...
authoraclement <aclement>
Tue, 19 Apr 2005 12:42:40 +0000 (12:42 +0000)
committeraclement <aclement>
Tue, 19 Apr 2005 12:42:40 +0000 (12:42 +0000)
tests/src/org/aspectj/systemtest/ajc150/ataspectj/AtAjSyntaxTests.java
tests/src/org/aspectj/systemtest/ajc150/ataspectj/atajc150-tests.xml

index 8d5b3dadfe3ea899a3fb8cfeb1871d5a9c6c9952..c60ffb2ba9944b0355c2347dc55e472b91338f82 100644 (file)
@@ -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");
     }
index 4de17dfb8eb8e09a3f32511326d994484584dabc..39668594eacd0fa433b1c4923e9b5f79efdfb529 100644 (file)
@@ -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"/>