]> source.dussan.org Git - aspectj.git/commitdiff
122460
authoraclement <aclement>
Mon, 3 May 2010 17:48:00 +0000 (17:48 +0000)
committeraclement <aclement>
Mon, 3 May 2010 17:48:00 +0000 (17:48 +0000)
tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java
tests/src/org/aspectj/systemtest/ajc169/ajc169.xml

index 040496b6cda94142f2d37764bb44c06173bc7523..0a8b44c40e67089f2bcd13f591ecf2dd0f39e355 100644 (file)
@@ -18,6 +18,21 @@ import org.aspectj.testing.XMLBasedAjcTestCase;
 
 public class Ajc169Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
 
+       // control test - weaves everything
+       public void testScopingLTW_122460_1() {
+               runTest("scoping ltw - 1");
+       }
+
+       // scoped to one type
+       public void testScopingLTW_122460_2() {
+               runTest("scoping ltw - 2");
+       }
+
+       // scope is '!*' - nothing woven
+       public void testScopingLTW_122460_3() {
+               runTest("scoping ltw - 3");
+       }
+
        public void testDeclareSoftCall_307009_1() {
                runTest("declare soft and call - 1");
        }
index db502f80dede9b63e23f82e7da17d33ea0a1bcfe..63fadedaf54055d3f44c7a2c5af625a2c2f6424b 100644 (file)
@@ -2,6 +2,39 @@
 
 <suite>
 
+  <ajc-test dir="bugs169/pr122460/one" title="scoping ltw - 3">
+     <compile files="A.java" options="-1.5 -Xlint:ignore" outjar="aspects.jar"/>
+     <compile files="Code.java Runner.java"/>
+     <run class="code.Code" ltw="aop_none.xml" classpath="aspects.jar">
+     <stdout>
+     <line text="running"/>
+     </stdout>
+     </run>
+  </ajc-test>
+  
+  <ajc-test dir="bugs169/pr122460/one" title="scoping ltw - 1">
+     <compile files="A.java" options="-1.5 -Xlint:ignore" outjar="aspects.jar"/>
+     <compile files="Code.java Runner.java"/>
+     <run class="code.Code" ltw="aop.xml" classpath="aspects.jar">
+     <stdout>
+     <line text="intercepted class code.Code"/>
+     <line text="intercepted class runner.Runner"/>
+     <line text="running"/>
+     </stdout>
+     </run>
+  </ajc-test>
+  
+  <ajc-test dir="bugs169/pr122460/one" title="scoping ltw - 2">
+     <compile files="A.java" options="-1.5 -Xlint:ignore" outjar="aspects.jar"/>
+     <compile files="Code.java Runner.java"/>
+     <run class="code.Code" ltw="aop_codeonly.xml" classpath="aspects.jar">
+     <stdout>
+     <line text="intercepted class code.Code"/>
+     <line text="running"/>
+     </stdout>
+     </run>
+  </ajc-test>
+  
    <ajc-test dir="bugs169/pr307009" title="declare soft and call - 1">
        <compile files="Test.java Test2.java Ann.java Bug.aj" options="-1.5 -showWeaveInfo">
                <message kind="weave" text="Softening exceptions in type 'Test' (Test.java:4) as defined by aspect 'Bug' (Bug.aj:3)"/>