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.

trivial.xml 3.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <!-- AspectJ v1.5.2 trivial modifier tests -->
  3. <suite>
  4. <ajc-test dir="features152/trivial" title="basic">
  5. <compile files="Basic.aj" options="-showWeaveInfo -Xjoinpoints:trivial">
  6. <message kind="weave" text="Join point 'method-execution(void Basic.tm())' in Type 'Basic' (Basic.aj:10) advised by before advice from 'X' (Basic.aj:25)"/>
  7. </compile>
  8. <run class="Basic">
  9. <stderr>
  10. <line text="Trivial method executing:void Basic.tm()"/>
  11. <line text="Trivial method executing:void Basic.tm()"/>
  12. </stderr>
  13. </run>
  14. </ajc-test>
  15. <ajc-test dir="features152/trivial" title="basic2">
  16. <compile files="Basic2.aj" options="-showWeaveInfo -Xjoinpoints:trivial">
  17. <message kind="weave" text="Join point 'method-execution(void Basic2.ntm())' in Type 'Basic2' (Basic2.aj:14) advised by before advice from 'X' (Basic2.aj:25)"/>
  18. </compile>
  19. <run class="Basic2">
  20. <stderr>
  21. <line text="Non trivial method executing:void Basic2.ntm()"/>
  22. </stderr>
  23. </run>
  24. </ajc-test>
  25. <ajc-test dir="features152/trivial" title="errors">
  26. <compile files="Errors3.aj">
  27. <message kind="error" line="8" text="Syntax error on token &quot;trivial&quot;, &quot;any modifier except 'trivial'&quot; expected"/>
  28. <message kind="error" line="9" text="Syntax error on token &quot;trivial&quot;, &quot;any modifier except 'trivial'&quot; expected"/>
  29. <message kind="error" line="11" text="Syntax error on token &quot;trivial&quot;, &quot;any modifier except 'trivial'&quot; expected"/>
  30. <message kind="error" line="12" text="Syntax error on token &quot;trivial&quot;, &quot;any modifier except 'trivial'&quot; expected"/>
  31. </compile>
  32. </ajc-test>
  33. <ajc-test dir="features152/trivial" title="pointcuts - 1">
  34. <compile files="ProgramOne.java" options="-Xjoinpoints:trivial"/>
  35. <run class="ProgramOne">
  36. <stderr>
  37. <line text="Non trivial method executing:void ProgramOne.main(String[])"/>
  38. <line text="Non trivial method executing:void ProgramOne.ntm()"/>
  39. </stderr>
  40. </run>
  41. </ajc-test>
  42. <ajc-test dir="features152/trivial" title="trivial and ltw">
  43. <compile files="LTWAbstractAspect.java" options="-1.5"/>
  44. <compile files="LTWProgram.java" options="-1.5"/>
  45. <run class="LTWProgram" ltw="aop1.xml">
  46. <stderr>
  47. <line text="Non trivial method executing:void LTWProgram.main(String[])"/>
  48. <line text="Non trivial method executing:void LTWProgram.ntm()"/>
  49. </stderr>
  50. </run>
  51. </ajc-test>
  52. <ajc-test dir="features152/trivial" title="trivial and ltw - 2">
  53. <compile files="LTWAbstractAspect.java" options="-1.5"/>
  54. <compile files="LTWProgram.java" options="-1.5"/>
  55. <run class="LTWProgram" ltw="aop2.xml">
  56. <stderr>
  57. <line text="Non trivial method executing:void LTWProgram.main(String[])"/>
  58. <line text="Non trivial method executing:void LTWProgram.ntm()"/>
  59. </stderr>
  60. </run>
  61. </ajc-test>
  62. </suite>