123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <!-- Load-time weaving tests -->
-
- <ajc-test dir="ltw"
- title="Ensure 1st aspect is rewoven when weaving 2nd aspect"
- keywords="reweavable">
- <compile
- files="Main.java, Aspect1.aj"
- outjar="main1.jar"
- options="-showWeaveInfo"
- >
- <message kind="weave" text="method-execution(void Main.test1())' in Type 'Main' (Main.java:15) advised by before advice from 'Aspect1' (Aspect1.aj:16)"/>
- </compile>
- <compile
- classpath="main1.jar"
- files="Aspect2.aj"
- outjar="aspect2.jar"
- options="-showWeaveInfo"
- >
- </compile>
- <run class="Main" ltw="aop-ltwreweavable.xml">
- <stdout>
- <line text="Main.main"/>
- <line text="Main.test1"/>
- <line text="Main.test2"/>
- </stdout>
- <stderr>
- <line text="Aspect1.before_test1"/>
- <line text="Aspect2.before_test2"/>
- </stderr>
- </run>
- </ajc-test>
-
- <ajc-test dir="ltw"
- title="Ensure valid aop.xml file is generated"
- keywords="-outxml">
- <compile
- files="Main.java"
- outjar="main.jar"
- >
- </compile>
- <compile
- classpath="main.jar"
- files="Aspect1.aj, Aspect2.aj, pakkage/Aspect3.aj"
- outxmlfile="META-INF/aop.xml"
- >
- </compile>
- <run class="Main" ltw="">
- <stdout>
- <line text="Main.main"/>
- <line text="Main.test1"/>
- <line text="Main.test2"/>
- </stdout>
- <stderr>
- <line text="Aspect1.before_test1"/>
- <line text="Aspect2.before_test2"/>
- <line text="pakkage.Aspect3.before_test2"/>
- </stderr>
- </run>
- </ajc-test>
-
- <ajc-test dir="ltw"
- title="Ensure valid aop.xml is generated for -outjar"
- keywords="-outxml">
- <compile
- files="Main.java"
- outjar="main.jar"
- >
- </compile>
- <compile
- classpath="main.jar"
- files="Aspect1.aj, Aspect2.aj, pakkage/Aspect3.aj"
- outjar="aspects.jar"
- options="-outxml"
- >
- </compile>
- <run class="Main" ltw="">
- <stdout>
- <line text="Main.main"/>
- <line text="Main.test1"/>
- <line text="Main.test2"/>
- </stdout>
- <stderr>
- <line text="Aspect1.before_test1"/>
- <line text="Aspect2.before_test2"/>
- <line text="pakkage.Aspect3.before_test2"/>
- </stderr>
- </run>
- </ajc-test>
-
-
|