You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ataround.xml 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <!-- AspectJ v1.5.1 Tests -->
  3. <suite>
  4. <ajc-test dir="features151/ataround" title="code style - basic">
  5. <compile files="X1.java" options="-1.5"/>
  6. <run class="X1">
  7. <stderr>
  8. <line text="advice from code aspect"/>
  9. <line text="faked"/>
  10. </stderr>
  11. </run>
  12. </ajc-test>
  13. <ajc-test dir="features151/ataround" title="annotation style - basic - noinline">
  14. <compile files="A1.java" options="-1.5 -XnoInline"/>
  15. <run class="A1">
  16. <stderr>
  17. <line text="advice from ataj aspect"/>
  18. <line text="faked"/>
  19. </stderr>
  20. </run>
  21. </ajc-test>
  22. <ajc-test dir="features151/ataround" title="annotation style - basic">
  23. <compile files="A1.java" options="-1.5"/>
  24. <run class="A1">
  25. <stderr>
  26. <line text="advice from ataj aspect"/>
  27. <line text="faked"/>
  28. </stderr>
  29. </run>
  30. </ajc-test>
  31. <ajc-test dir="features151/ataround" title="code style - correct usage, binding and passing same target for call">
  32. <compile files="X4.java" options="-1.5"/>
  33. <run class="X4">
  34. <stderr>
  35. <line text="advice from code aspect"/>
  36. <line text="1faked"/>
  37. </stderr>
  38. </run>
  39. </ajc-test>
  40. <ajc-test dir="features151/ataround" title="annotation style - correct usage, binding and passing same target for call - noinline">
  41. <compile files="A4.java" options="-1.5 -XnoInline"/>
  42. <run class="A4">
  43. <stderr>
  44. <line text="advice from ataj aspect"/>
  45. <line text="1faked"/>
  46. </stderr>
  47. </run>
  48. </ajc-test>
  49. <ajc-test dir="features151/ataround" title="annotation style - correct usage, binding and passing same target for call">
  50. <compile files="A4.java" options="-1.5"/>
  51. <run class="A4">
  52. <stderr>
  53. <line text="advice from ataj aspect"/>
  54. <line text="1faked"/>
  55. </stderr>
  56. </run>
  57. </ajc-test>
  58. <ajc-test dir="features151/ataround" title="code style - correct usage, binding and passing new target for call">
  59. <compile files="X42.java" options="-1.5"/>
  60. <run class="X42">
  61. <stderr>
  62. <line text="advice from code aspect"/>
  63. <line text="2faked"/>
  64. </stderr>
  65. </run>
  66. </ajc-test>
  67. <ajc-test dir="features151/ataround" title="annotation style - correct usage, binding and passing new target for call - noinline">
  68. <compile files="A42.java" options="-1.5 -XnoInline"/>
  69. <run class="A42">
  70. <stderr>
  71. <line text="advice from ataj aspect"/>
  72. <line text="2faked"/>
  73. </stderr>
  74. </run>
  75. </ajc-test>
  76. <ajc-test dir="features151/ataround" title="annotation style - correct usage, binding and passing new target for call">
  77. <compile files="A42.java" options="-1.5"/>
  78. <run class="A42">
  79. <stderr>
  80. <line text="advice from ataj aspect"/>
  81. <line text="2faked"/>
  82. </stderr>
  83. </run>
  84. </ajc-test>
  85. <ajc-test dir="features151/ataround" title="code style - forget to pass target">
  86. <compile files="X2.java" options="-1.5">
  87. <message kind="error" line="7" text="too few arguments to proceed, expected 2"/>
  88. </compile>
  89. </ajc-test>
  90. <ajc-test dir="features151/ataround" title="annotation style - forget to pass target">
  91. <compile files="A2.java" options="-1.5">
  92. <message kind="error" line="7" text="too few arguments to proceed, expected 2"/>
  93. </compile>
  94. </ajc-test>
  95. <ajc-test dir="features151/ataround" title="code style - bind this on call - change on proceed - no effect">
  96. <compile files="X7.java" options="-1.5"/>
  97. <run class="X7">
  98. <stderr>
  99. <line text="advice from code aspect"/>
  100. <line text="1faked"/>
  101. </stderr>
  102. </run>
  103. </ajc-test>
  104. <ajc-test dir="features151/ataround" title="annotation style - bind this on call - change on proceed - no effect - noinline">
  105. <compile files="A7.java" options="-1.5 -XnoInline"/>
  106. <run class="A7">
  107. <stderr>
  108. <line text="advice from ataj aspect"/>
  109. <line text="1faked"/>
  110. </stderr>
  111. </run>
  112. </ajc-test>
  113. <ajc-test dir="features151/ataround" title="annotation style - bind this on call - change on proceed - no effect">
  114. <compile files="A7.java" options="-1.5"/>
  115. <run class="A7">
  116. <stderr>
  117. <line text="advice from ataj aspect"/>
  118. <line text="1faked"/>
  119. </stderr>
  120. </run>
  121. </ajc-test>
  122. <ajc-test dir="features151/ataround" title="code style - bind this on execution - change on proceed - works">
  123. <compile files="X8.java" options="-1.5"/>
  124. <run class="X8">
  125. <stderr>
  126. <line text="advice from code aspect"/>
  127. <line text="2faked"/>
  128. </stderr>
  129. </run>
  130. </ajc-test>
  131. <ajc-test dir="features151/ataround" title="annotation style - bind this on execution - change on proceed - works - noinline">
  132. <compile files="A8.java" options="-1.5 -XnoInline"/>
  133. <run class="A8">
  134. <stderr>
  135. <line text="advice from ataj aspect"/>
  136. <line text="2faked"/>
  137. </stderr>
  138. </run>
  139. </ajc-test>
  140. <ajc-test dir="features151/ataround" title="annotation style - bind this on execution - change on proceed - works">
  141. <compile files="A8.java" options="-1.5"/>
  142. <run class="A8">
  143. <stderr>
  144. <line text="advice from ataj aspect"/>
  145. <line text="2faked"/>
  146. </stderr>
  147. </run>
  148. </ajc-test>
  149. <ajc-test dir="features151/ataround" title="code style - incorrect arg types">
  150. <compile files="X3.java" options="-1.5">
  151. <message kind="error" line="7" text="Type mismatch: cannot convert from String to M"/>
  152. <message kind="error" line="7" text="Type mismatch: cannot convert from M to String"/>
  153. </compile>
  154. </ajc-test>
  155. <ajc-test dir="features151/ataround" title="annotation style - incorrect arg types">
  156. <compile files="A3.java" options="-1.5">
  157. <message kind="error" line="7" text="too few arguments to proceed, expected 2"/>
  158. </compile>
  159. </ajc-test>
  160. <ajc-test dir="features151/ataround" title="code style - bind this and target on execution - change on proceed - works">
  161. <compile files="X9.java" options="-1.5"/>
  162. <run class="X9">
  163. <stderr>
  164. <line text="advice from code aspect"/>
  165. <line text="3faked"/>
  166. </stderr>
  167. </run>
  168. </ajc-test>
  169. <ajc-test dir="features151/ataround" title="annotation style - bind this and target on execution - change on proceed - works - noinline">
  170. <compile files="A9.java" options="-1.5 -XnoInline"/>
  171. <run class="A9">
  172. <stderr>
  173. <line text="advice from ataj aspect"/>
  174. <line text="3faked"/>
  175. </stderr>
  176. </run>
  177. </ajc-test>
  178. <ajc-test dir="features151/ataround" title="annotation style - bind this and target on execution - change on proceed - works">
  179. <compile files="A9.java" options="-1.5"/>
  180. <run class="A9">
  181. <stderr>
  182. <line text="advice from ataj aspect"/>
  183. <line text="3faked"/>
  184. </stderr>
  185. </run>
  186. </ajc-test>
  187. <ajc-test dir="features151/ataround" title="code style - bind this and target on call - change on proceed - works">
  188. <compile files="X10.java" options="-1.5"/>
  189. <run class="X10">
  190. <stderr>
  191. <line text="advice from code aspect"/>
  192. <line text="3faked"/>
  193. </stderr>
  194. </run>
  195. </ajc-test>
  196. <ajc-test dir="features151/ataround" title="annotation style - bind this and target on call - change on proceed - works - noinline">
  197. <compile files="A10.java" options="-1.5"/>
  198. <run class="A10">
  199. <stderr>
  200. <line text="advice from ataj aspect"/>
  201. <line text="3faked"/>
  202. </stderr>
  203. </run>
  204. </ajc-test>
  205. <ajc-test dir="features151/ataround" title="annotation style - bind this and target on call - change on proceed - works">
  206. <compile files="A10.java" options="-1.5"/>
  207. <run class="A10">
  208. <stderr>
  209. <line text="advice from ataj aspect"/>
  210. <line text="3faked"/>
  211. </stderr>
  212. </run>
  213. </ajc-test>
  214. <ajc-test dir="features151/ataround" title="breaking it - one">
  215. <compile files="Break1.java" options="-1.5"/>
  216. <run class="Break1">
  217. <stderr>
  218. <line text="advice from ataj aspect"/>
  219. <line text="1faked"/>
  220. </stderr>
  221. </run>
  222. </ajc-test>
  223. <ajc-test dir="features151/ataround" title="breaking it - two">
  224. <compile files="Break2.java" options="-1.5"/>
  225. <run class="Break2">
  226. <stderr>
  227. <line text="advice from ataj aspect"/>
  228. <line text="1faked"/>
  229. </stderr>
  230. </run>
  231. </ajc-test>
  232. <ajc-test dir="features151/ataround" title="bug case one">
  233. <compile files="BugCase1.java" options="-1.5"/>
  234. <run class="BugCase1">
  235. <stderr>
  236. <line text="advice running"/>
  237. <line text="Setting age to 10"/>
  238. </stderr>
  239. </run>
  240. </ajc-test>
  241. <ajc-test dir="features151/ataround" title="bug case two">
  242. <compile files="BugCase2.java" options="-1.5"/>
  243. <run class="BugCase2">
  244. <stderr>
  245. <line text="advice running"/>
  246. <line text="Setting age to 10"/>
  247. </stderr>
  248. </run>
  249. </ajc-test>
  250. <ajc-test dir="features151/ataround" title="multiple args">
  251. <compile files="MultipleArgs.java" options="-1.5"/>
  252. <run class="MultipleArgs">
  253. <stderr>
  254. <line text="advice running"/>
  255. <line text="advice running"/>
  256. <line text="advice running"/>
  257. </stderr>
  258. </run>
  259. </ajc-test>
  260. <ajc-test dir="features151/ataround" title="code style - changing target for call - reverse order">
  261. <compile files="X6.java" options="-1.5"/>
  262. <run class="X6">
  263. <stderr>
  264. <line text="advice from code aspect"/>
  265. <line text="2faked"/>
  266. </stderr>
  267. </run>
  268. </ajc-test>
  269. <ajc-test dir="features151/ataround" title="annotation style - changing target for call - reverse order">
  270. <compile files="A6.java" options="-1.5"/>
  271. <run class="A6">
  272. <stderr>
  273. <line text="advice from ataj aspect"/>
  274. <line text="2faked"/>
  275. </stderr>
  276. </run>
  277. </ajc-test>
  278. <ajc-test dir="features151/ataround" title="code style - works with subset of arguments in advice">
  279. <compile files="X11.java" options="-1.5"/>
  280. <run class="X11">
  281. <stderr>
  282. <line text="advice from code aspect"/>
  283. <line text="3x_z"/>
  284. </stderr>
  285. </run>
  286. </ajc-test>
  287. <ajc-test dir="features151/ataround" title="annotation style - works with subset of arguments in advice">
  288. <compile files="A11.java" options="-1.5"/>
  289. <run class="A11">
  290. <stderr>
  291. <line text="advice from code aspect"/>
  292. <line text="3x_z"/>
  293. </stderr>
  294. </run>
  295. </ajc-test>
  296. </suite>