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");
}
<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)"/>