]> source.dussan.org Git - aspectj.git/commitdiff
declare @type xml testcode
authorAndy Clement <andrew.clement@gmail.com>
Mon, 16 Apr 2012 22:02:02 +0000 (15:02 -0700)
committerAndy Clement <andrew.clement@gmail.com>
Mon, 16 Apr 2012 22:02:02 +0000 (15:02 -0700)
tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java
tests/src/org/aspectj/systemtest/ajc170/ajc170.xml

index b51ce51f3327caf2ed55f7bd6b0cce4923ccde6a..47329f52ac21aa8eb5b383374ddf1fbb5409aa8c 100644 (file)
@@ -51,6 +51,10 @@ public class Ajc170Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
 //             runTest("dec at field ordering 2");
 //     }
        
+       public void testXmlDefsDeclareAnnoType() {
+               runTest("xml defined dec anno - type");
+       }
+       
        public void testXmlDefsDeclareAnnoMethod() {
                runTest("xml defined dec at method");
        }
index a9069d531e1d35a431fbf60933b56aad885e5ede..300dd9454e8cdfd3b48948a7fef1f66cca055caf 100644 (file)
        </stdout>
      </run>
    </ajc-test>
+   
+   <ajc-test dir="bugs170/xmldefs" title="xml defined dec anno - type">
+     <compile files="Hello7.java Anno7.java" options="-1.5"/>
+     <run class="Hello7" ltw="aop7.xml">
+       <stdout>
+           <line text="Annotations on Hello7? true"/>
+           <line text="Annotation count is 1"/>
+           <line text="@Anno"/>
+       </stdout>
+     </run>
+   </ajc-test>
  
     <ajc-test dir="bugs170/pr73507" title="public ITDfs - 1">
       <compile files="Case1.java" options="-1.5"/>