123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379 |
- <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
-
- <!-- AspectJ v1.5.1 Tests -->
- <suite>
-
-
- <ajc-test dir="features151/ataround" title="code style - basic">
- <compile files="X1.java" options="-1.5"/>
- <run class="X1">
- <stderr>
- <line text="advice from code aspect"/>
- <line text="faked"/>
- </stderr>
- </run>
- </ajc-test>
-
- <ajc-test dir="features151/ataround" title="annotation style - basic - noinline">
- <compile files="A1.java" options="-1.5 -XnoInline"/>
- <run class="A1">
- <stderr>
- <line text="advice from ataj aspect"/>
- <line text="faked"/>
- </stderr>
- </run>
- </ajc-test>
-
- <ajc-test dir="features151/ataround" title="annotation style - basic">
- <compile files="A1.java" options="-1.5"/>
- <run class="A1">
- <stderr>
- <line text="advice from ataj aspect"/>
- <line text="faked"/>
- </stderr>
- </run>
- </ajc-test>
-
-
-
-
- <ajc-test dir="features151/ataround" title="code style - correct usage, binding and passing same target for call">
- <compile files="X4.java" options="-1.5"/>
- <run class="X4">
- <stderr>
- <line text="advice from code aspect"/>
- <line text="1faked"/>
- </stderr>
- </run>
- </ajc-test>
-
- <ajc-test dir="features151/ataround" title="annotation style - correct usage, binding and passing same target for call - noinline">
- <compile files="A4.java" options="-1.5 -XnoInline"/>
- <run class="A4">
- <stderr>
- <line text="advice from ataj aspect"/>
- <line text="1faked"/>
- </stderr>
- </run>
- </ajc-test>
-
- <ajc-test dir="features151/ataround" title="annotation style - correct usage, binding and passing same target for call">
- <compile files="A4.java" options="-1.5"/>
- <run class="A4">
- <stderr>
- <line text="advice from ataj aspect"/>
- <line text="1faked"/>
- </stderr>
- </run>
- </ajc-test>
-
-
-
-
- <ajc-test dir="features151/ataround" title="code style - correct usage, binding and passing new target for call">
- <compile files="X42.java" options="-1.5"/>
- <run class="X42">
- <stderr>
- <line text="advice from code aspect"/>
- <line text="2faked"/>
- </stderr>
- </run>
- </ajc-test>
-
- <ajc-test dir="features151/ataround" title="annotation style - correct usage, binding and passing new target for call - noinline">
- <compile files="A42.java" options="-1.5 -XnoInline"/>
- <run class="A42">
- <stderr>
- <line text="advice from ataj aspect"/>
- <line text="2faked"/>
- </stderr>
- </run>
- </ajc-test>
-
- <ajc-test dir="features151/ataround" title="annotation style - correct usage, binding and passing new target for call">
- <compile files="A42.java" options="-1.5"/>
- <run class="A42">
- <stderr>
- <line text="advice from ataj aspect"/>
- <line text="2faked"/>
- </stderr>
- </run>
- </ajc-test>
-
-
-
-
-
- <ajc-test dir="features151/ataround" title="code style - forget to pass target">
- <compile files="X2.java" options="-1.5">
- <message kind="error" line="7" text="too few arguments to proceed, expected 2"/>
- </compile>
- </ajc-test>
-
- <ajc-test dir="features151/ataround" title="annotation style - forget to pass target">
- <compile files="A2.java" options="-1.5">
- <message kind="error" line="7" text="too few arguments to proceed, expected 2"/>
- </compile>
- </ajc-test>
-
-
-
-
- <ajc-test dir="features151/ataround" title="code style - bind this on call - change on proceed - no effect">
- <compile files="X7.java" options="-1.5"/>
- <run class="X7">
- <stderr>
- <line text="advice from code aspect"/>
- <line text="1faked"/>
- </stderr>
- </run>
- </ajc-test>
-
- <ajc-test dir="features151/ataround" title="annotation style - bind this on call - change on proceed - no effect - noinline">
- <compile files="A7.java" options="-1.5 -XnoInline"/>
- <run class="A7">
- <stderr>
- <line text="advice from ataj aspect"/>
- <line text="1faked"/>
- </stderr>
- </run>
- </ajc-test>
-
- <ajc-test dir="features151/ataround" title="annotation style - bind this on call - change on proceed - no effect">
- <compile files="A7.java" options="-1.5"/>
- <run class="A7">
- <stderr>
- <line text="advice from ataj aspect"/>
- <line text="1faked"/>
- </stderr>
- </run>
- </ajc-test>
-
-
-
- <ajc-test dir="features151/ataround" title="code style - bind this on execution - change on proceed - works">
- <compile files="X8.java" options="-1.5"/>
- <run class="X8">
- <stderr>
- <line text="advice from code aspect"/>
- <line text="2faked"/>
- </stderr>
- </run>
- </ajc-test>
-
- <ajc-test dir="features151/ataround" title="annotation style - bind this on execution - change on proceed - works - noinline">
- <compile files="A8.java" options="-1.5 -XnoInline"/>
- <run class="A8">
- <stderr>
- <line text="advice from ataj aspect"/>
- <line text="2faked"/>
- </stderr>
- </run>
- </ajc-test>
-
- <ajc-test dir="features151/ataround" title="annotation style - bind this on execution - change on proceed - works">
- <compile files="A8.java" options="-1.5"/>
- <run class="A8">
- <stderr>
- <line text="advice from ataj aspect"/>
- <line text="2faked"/>
- </stderr>
- </run>
- </ajc-test>
-
-
-
-
- <ajc-test dir="features151/ataround" title="code style - incorrect arg types">
- <compile files="X3.java" options="-1.5">
- <message kind="error" line="7" text="Type mismatch: cannot convert from String to M"/>
- <message kind="error" line="7" text="Type mismatch: cannot convert from M to String"/>
- </compile>
- </ajc-test>
-
- <ajc-test dir="features151/ataround" title="annotation style - incorrect arg types">
- <compile files="A3.java" options="-1.5">
- <message kind="error" line="7" text="too few arguments to proceed, expected 2"/>
- </compile>
- </ajc-test>
-
-
-
-
- <ajc-test dir="features151/ataround" title="code style - bind this and target on execution - change on proceed - works">
- <compile files="X9.java" options="-1.5"/>
- <run class="X9">
- <stderr>
- <line text="advice from code aspect"/>
- <line text="3faked"/>
- </stderr>
- </run>
- </ajc-test>
-
- <ajc-test dir="features151/ataround" title="annotation style - bind this and target on execution - change on proceed - works - noinline">
- <compile files="A9.java" options="-1.5 -XnoInline"/>
- <run class="A9">
- <stderr>
- <line text="advice from ataj aspect"/>
- <line text="3faked"/>
- </stderr>
- </run>
- </ajc-test>
-
- <ajc-test dir="features151/ataround" title="annotation style - bind this and target on execution - change on proceed - works">
- <compile files="A9.java" options="-1.5"/>
- <run class="A9">
- <stderr>
- <line text="advice from ataj aspect"/>
- <line text="3faked"/>
- </stderr>
- </run>
- </ajc-test>
-
-
-
-
-
- <ajc-test dir="features151/ataround" title="code style - bind this and target on call - change on proceed - works">
- <compile files="X10.java" options="-1.5"/>
- <run class="X10">
- <stderr>
- <line text="advice from code aspect"/>
- <line text="3faked"/>
- </stderr>
- </run>
- </ajc-test>
-
- <ajc-test dir="features151/ataround" title="annotation style - bind this and target on call - change on proceed - works - noinline">
- <compile files="A10.java" options="-1.5"/>
- <run class="A10">
- <stderr>
- <line text="advice from ataj aspect"/>
- <line text="3faked"/>
- </stderr>
- </run>
- </ajc-test>
-
- <ajc-test dir="features151/ataround" title="annotation style - bind this and target on call - change on proceed - works">
- <compile files="A10.java" options="-1.5"/>
- <run class="A10">
- <stderr>
- <line text="advice from ataj aspect"/>
- <line text="3faked"/>
- </stderr>
- </run>
- </ajc-test>
-
-
-
-
- <ajc-test dir="features151/ataround" title="breaking it - one">
- <compile files="Break1.java" options="-1.5"/>
- <run class="Break1">
- <stderr>
- <line text="advice from ataj aspect"/>
- <line text="1faked"/>
- </stderr>
- </run>
- </ajc-test>
-
- <ajc-test dir="features151/ataround" title="breaking it - two">
- <compile files="Break2.java" options="-1.5"/>
- <run class="Break2">
- <stderr>
- <line text="advice from ataj aspect"/>
- <line text="1faked"/>
- </stderr>
- </run>
- </ajc-test>
-
-
- <ajc-test dir="features151/ataround" title="bug case one">
- <compile files="BugCase1.java" options="-1.5"/>
- <run class="BugCase1">
- <stderr>
- <line text="advice running"/>
- <line text="Setting age to 10"/>
- </stderr>
- </run>
- </ajc-test>
-
- <ajc-test dir="features151/ataround" title="bug case two">
- <compile files="BugCase2.java" options="-1.5"/>
- <run class="BugCase2">
- <stderr>
- <line text="advice running"/>
- <line text="Setting age to 10"/>
- </stderr>
- </run>
- </ajc-test>
-
-
- <ajc-test dir="features151/ataround" title="multiple args">
- <compile files="MultipleArgs.java" options="-1.5"/>
- <run class="MultipleArgs">
- <stderr>
- <line text="advice running"/>
- <line text="advice running"/>
- <line text="advice running"/>
- </stderr>
- </run>
- </ajc-test>
-
-
-
-
-
-
-
- <ajc-test dir="features151/ataround" title="code style - changing target for call - reverse order">
- <compile files="X6.java" options="-1.5"/>
- <run class="X6">
- <stderr>
- <line text="advice from code aspect"/>
- <line text="2faked"/>
- </stderr>
- </run>
- </ajc-test>
-
- <ajc-test dir="features151/ataround" title="annotation style - changing target for call - reverse order">
- <compile files="A6.java" options="-1.5"/>
- <run class="A6">
- <stderr>
- <line text="advice from ataj aspect"/>
- <line text="2faked"/>
- </stderr>
- </run>
- </ajc-test>
-
-
-
-
-
-
-
-
-
-
-
- <ajc-test dir="features151/ataround" title="code style - works with subset of arguments in advice">
- <compile files="X11.java" options="-1.5"/>
- <run class="X11">
- <stderr>
- <line text="advice from code aspect"/>
- <line text="3x_z"/>
- </stderr>
- </run>
- </ajc-test>
-
- <ajc-test dir="features151/ataround" title="annotation style - works with subset of arguments in advice">
- <compile files="A11.java" options="-1.5"/>
- <run class="A11">
- <stderr>
- <line text="advice from code aspect"/>
- <line text="3x_z"/>
- </stderr>
- </run>
- </ajc-test>
-
- </suite>
|