123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
-
- <suite>
-
- <ajc-test dir="features167/overweaving/getset" title="getset - 1">
- <compile files="A.aj B.aj Class1.java Class2.java" options="-1.5"/>
- <run class="Class1">
- <stdout>
- <line text="B:set(String Class1.message)"/>
- <line text="A:get(PrintStream java.lang.System.out)"/>
- <line text="A:get(String Class1.message)"/>
- <line text="Class1.main"/>
- </stdout>
- </run>
-
- <run class="Class2">
- <stdout>
- <line text="B:set(String Class2.message)"/>
- <line text="A:get(PrintStream java.lang.System.out)"/>
- <line text="A:get(String Class2.message)"/>
- <line text="Class2.main"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="features167/overweaving/getset" title="getset - 2">
- <compile files="A.aj Class1.java" options="-1.5"/>
- <compile files="B.aj" options="-1.5 -Xlint:ignore"/>
- <compile files="Class2.java" options="-1.5 -Xlint:ignore"/>
- <run class="Class1" ltw="aop.xml">
- <stdout>
- <!-- should be advised by both, but was *already* advised by A during first weave -->
- <line text="B:set(String Class1.message)"/>
- <line text="A:get(PrintStream java.lang.System.out)"/>
- <line text="A:get(String Class1.message)"/>
- <line text="Class1.main"/>
- </stdout>
- </run>
-
- <run class="Class2" ltw="aop.xml">
- <stdout>
- <line text="B:set(String Class2.message)"/>
- <line text="A:get(PrintStream java.lang.System.out)"/>
- <line text="A:get(String Class2.message)"/>
- <line text="Class2.main"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="features167/overweaving/getsetTJP" title="getset - tjp - 1">
- <compile files="A.aj Class1.java" options="-1.5"/>
- <compile files="B.aj" options="-1.5 -Xlint:ignore"/>
- <compile files="Class2.java" options="-1.5 -Xlint:ignore"/>
- <run class="Class1" ltw="aop.xml">
- <stdout>
- <!-- should be advised by both, but was *already* advised by A during first weave -->
- <line text="B:set(String Class1.message)"/>
- <line text="A:get(PrintStream java.lang.System.out)"/>
- <line text="A:get(String Class1.message)"/>
- <line text="Class1.main"/>
- </stdout>
- </run>
-
- <run class="Class2" ltw="aop.xml">
- <stdout>
- <line text="B:set(String Class2.message)"/>
- <line text="A:get(PrintStream java.lang.System.out)"/>
- <line text="A:get(String Class2.message)"/>
- <line text="Class2.main"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="features167/overweaving/calls" title="calls - 1">
- <compile files="A.aj B.aj Class1.java Class2.java" options="-1.5"/>
- <run class="Class1">
- <stdout>
- <line text="B:call(void java.io.PrintStream.println(String))"/>
- <line text="A:call(void java.io.PrintStream.println(String))"/>
- <line text="Class1.main"/>
- </stdout>
- </run>
-
- <run class="Class2">
- <stdout>
- <line text="B:call(void java.io.PrintStream.println(String))"/>
- <line text="A:call(void java.io.PrintStream.println(String))"/>
- <line text="Class2.main"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="features167/overweaving/calls" title="calls - 2">
- <compile files="A.aj Class1.java" options="-1.5"/>
- <compile files="B.aj" options="-1.5 -Xlint:ignore"/>
- <compile files="Class2.java" options="-1.5 -Xlint:ignore"/>
- <run class="Class1" ltw="aop.xml">
- <stdout>
- <!-- should be advised by both, but was *already* advised by A during first weave -->
- <line text="A:call(void java.io.PrintStream.println(String))"/>
- <line text="B:call(void java.io.PrintStream.println(String))"/>
- <line text="Class1.main"/>
- </stdout>
- </run>
-
- <run class="Class2" ltw="aop.xml">
- <stdout>
- <line text="B:call(void java.io.PrintStream.println(String))"/>
- <line text="A:call(void java.io.PrintStream.println(String))"/>
- <line text="Class2.main"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="features167/overweaving/callsTJP" title="calls - tjp - 1">
- <compile files="A.aj Class1.java" options="-1.5"/>
- <compile files="B.aj" options="-1.5 -Xlint:ignore"/>
- <compile files="Class2.java" options="-1.5 -Xlint:ignore"/>
- <run class="Class1" ltw="aop.xml">
- <stdout>
- <!-- should be advised by both, but was *already* advised by A during first weave -->
- <line text="A:call(void java.io.PrintStream.println(String))"/>
- <line text="B:call(void java.io.PrintStream.println(String))"/>
- <line text="Class1.main"/>
- </stdout>
- </run>
-
- <run class="Class2" ltw="aop.xml">
- <stdout>
- <line text="B:call(void java.io.PrintStream.println(String))"/>
- <line text="A:call(void java.io.PrintStream.println(String))"/>
- <line text="Class2.main"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="features167/overweaving/messy2" title="really messy">
- <compile files="A.aj Class1.java" options="-1.5"/>
- <compile files="B.aj" options="-1.5 -Xlint:ignore"/>
- <compile files="Class2.java" options="-1.5 -Xlint:ignore"/>
- <run class="Class1" ltw="aop.xml">
- <stdout>
- <!-- should be advised by both, but was *already* advised by A during first weave -->
- <line text="B:execution(void Class1.main(String[]))"/>
- <line text="A:execution(void Class1.main(String[]))"/>
- <line text="Class1.main"/>
- </stdout>
- </run>
-
- <run class="Class2" ltw="aop.xml">
- <stdout>
- <line text="B:execution(void Class2.main(String[]))"/>
- <line text="A:execution(void Class2.main(String[]))"/>
- <line text="Class2.main"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="features167/overweaving" title="simple">
- <compile files="A.aj C.java" options="-1.5"/>
- <compile files="X.aj" options="-1.5 -Xlint:ignore"/>
- <run class="com.andy.C" ltw="aop.xml">
- <stdout>
- <line text="AspectX>>execution(void com.andy.C.main(String[]))"/>
- <line text="AspectA>>execution(void com.andy.C.main(String[]))"/>
- <line text="AspectX>>execution(void com.andy.C.run())"/>
- <line text="hello andy"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="features167/overweaving/messy" title="messy">
- <compile files="A.aj C.java" options="-1.5"/>
- <compile files="X.aj" options="-1.5 -Xlint:ignore"/>
- <run class="com.andy.C" ltw="aop.xml">
- <stdout>
- <line text="X:execution(void com.andy.C.main(String[]))"/>
- <line text="A:execution(void com.andy.C.main(String[]))"/>
- <line text="X:execution(void com.andy.C.run())"/>
- <line text="hello andy"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="features167/overweaving/cflow" title="cflow">
- <compile files="A.aj C.java" options="-1.5"/>
- <compile files="X.aj" options="-1.5 -Xlint:ignore"/>
- <run class="com.andy.C" ltw="aop.xml">
- <stdout>
- <line text="X:execution(void com.andy.C.main(String[]))"/>
- <line text="A:execution(void com.andy.C.main(String[]))"/>
- <line text="X:execution(void com.andy.C.run())"/>
- <line text="hello andy"/>
- </stdout>
- </run>
- </ajc-test>
-
- </suite>
|