Browse Source

255643: test and fix

tags/V1_6_3rc1
aclement 15 years ago
parent
commit
556625089b

+ 2
- 1
tests/features160/weavingJavaxPackage/A.java View File

@@ -3,9 +3,10 @@ package javax.foo;
public class A {
public static void main(String []argv) throws Exception {
new A().foo();
new B().foo();
}

public void foo() {
System.out.println("Method running");
System.out.println("(A) method running");
}
}

+ 8
- 0
tests/features160/weavingJavaxPackage/B.java View File

@@ -0,0 +1,8 @@
package javax.foo;

public class B {

public void foo() {
System.out.println("(B) method running");
}
}

+ 14
- 4
tests/src/org/aspectj/systemtest/ajc160/newfeatures-tests.xml View File

@@ -4,22 +4,32 @@
<suite>

<ajc-test dir="features160/weavingJavaxPackage" title="weave javax classes - no">
<compile files="A.java" />
<compile files="A.java B.java" />
<compile files="X.aj" outjar="code.jar"/>
<run class="javax.foo.A" classpath="code.jar" ltw="aop1.xml">
<stderr>
<line text="AspectJ Weaver Version"/>
<line text="register classloader"/>
<line text="using configuration"/>
<line text="register aspect X"/>
<line text="not being woven"/>
</stderr>
<stdout>
<line text="Method running"/>
<line text="(A) method running"/>
<line text="(B) method running"/>
</stdout>
</run>
</ajc-test>
<ajc-test dir="features160/weavingJavaxPackage" title="weave javax classes - yes">
<compile files="A.java" />
<compile files="A.java B.java" />
<compile files="X.aj" outjar="code.jar"/>
<run class="javax.foo.A" classpath="code.jar" ltw="aop2.xml">
<stdout>
<line text="advised"/>
<line text="Method running"/>
<line text="(A) method running"/>
<line text="advised"/>
<line text="(B) method running"/>
</stdout>
</run>
</ajc-test>

Loading…
Cancel
Save