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.

pipelining.xml 5.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
  2. <!-- Pipelining tests -->
  3. <suite>
  4. <!-- testing the very very basics of pipelining -->
  5. <ajc-test dir="features153/pipelining" title="build two classes">
  6. <compile files="ClassOne.java,ClassTwo.java" options="-verbose"/>
  7. </ajc-test>
  8. <!-- testing the basics when an aspect is included, it is placed at the front deliberately -->
  9. <ajc-test dir="features153/pipelining" title="build one aspect and two classes">
  10. <compile files="SimpleAspect.java,ClassOne.java,ClassTwo.java" options="-verbose -showWeaveInfo">
  11. <message kind="weave" text="Join point 'staticinitialization(void SimpleAspect.&lt;clinit&gt;())' in Type 'SimpleAspect' (SimpleAspect.java:1) advised by before advice from 'SimpleAspect' (SimpleAspect.java:2)"/>
  12. <message kind="weave" text="Join point 'staticinitialization(void ClassOne.&lt;clinit&gt;())' in Type 'ClassOne' (ClassOne.java:1) advised by before advice from 'SimpleAspect' (SimpleAspect.java:2)"/>
  13. <message kind="weave" text="Join point 'staticinitialization(void ClassTwo.&lt;clinit&gt;())' in Type 'ClassTwo' (ClassTwo.java:1) advised by before advice from 'SimpleAspect' (SimpleAspect.java:2)"/>
  14. </compile>
  15. </ajc-test>
  16. <!-- testing the basics when an aspect is included, aspect should be moved to the front after diet parsing -->
  17. <ajc-test dir="features153/pipelining" title="build two classes and one aspect">
  18. <compile files="ClassOne.java,ClassTwo.java,SimpleAspect.java" options="-verbose -showWeaveInfo">
  19. <message kind="weave" text="Join point 'staticinitialization(void SimpleAspect.&lt;clinit&gt;())' in Type 'SimpleAspect' (SimpleAspect.java:1) advised by before advice from 'SimpleAspect' (SimpleAspect.java:2)"/>
  20. <message kind="weave" text="Join point 'staticinitialization(void ClassOne.&lt;clinit&gt;())' in Type 'ClassOne' (ClassOne.java:1) advised by before advice from 'SimpleAspect' (SimpleAspect.java:2)"/>
  21. <message kind="weave" text="Join point 'staticinitialization(void ClassTwo.&lt;clinit&gt;())' in Type 'ClassTwo' (ClassTwo.java:1) advised by before advice from 'SimpleAspect' (SimpleAspect.java:2)"/>
  22. </compile>
  23. </ajc-test>
  24. <!-- just building aspects, no classes around - will the sorting behave -->
  25. <ajc-test dir="features153/pipelining" title="build two aspects">
  26. <compile files="SimpleAspect.java,SimpleAspect2.java" options="-verbose -showWeaveInfo">
  27. <message kind="weave" text="Join point 'staticinitialization(void SimpleAspect.&lt;clinit&gt;())' in Type 'SimpleAspect' (SimpleAspect.java:1) advised by before advice from 'SimpleAspect2' (SimpleAspect2.java:2)"/>
  28. <message kind="weave" text="Join point 'staticinitialization(void SimpleAspect.&lt;clinit&gt;())' in Type 'SimpleAspect' (SimpleAspect.java:1) advised by before advice from 'SimpleAspect' (SimpleAspect.java:2)"/>
  29. <message kind="weave" text="Join point 'staticinitialization(void SimpleAspect2.&lt;clinit&gt;())' in Type 'SimpleAspect2' (SimpleAspect2.java:1) advised by before advice from 'SimpleAspect2' (SimpleAspect2.java:2)"/>
  30. <message kind="weave" text="Join point 'staticinitialization(void SimpleAspect2.&lt;clinit&gt;())' in Type 'SimpleAspect2' (SimpleAspect2.java:1) advised by before advice from 'SimpleAspect' (SimpleAspect.java:2)"/>
  31. </compile>
  32. </ajc-test>
  33. <!-- pointcut in a superclass, subaspect extends the class - pointcut class is supplied after the superclass -->
  34. <ajc-test dir="features153/pipelining" title="aspect extends class">
  35. <compile files="ClassOne.java,SubAspect.java,ClassTwo.java,SuperClass.java" options="-verbose -showWeaveInfo">
  36. <message kind="weave" text="Join point 'staticinitialization(void SubAspect.&lt;clinit&gt;())' in Type 'SubAspect' (SubAspect.java:1) advised by before advice from 'SubAspect' (SubAspect.java:2)"/>
  37. <message kind="weave" text="Join point 'staticinitialization(void ClassOne.&lt;clinit&gt;())' in Type 'ClassOne' (ClassOne.java:1) advised by before advice from 'SubAspect' (SubAspect.java:2)"/>
  38. <message kind="weave" text="Join point 'staticinitialization(void ClassTwo.&lt;clinit&gt;())' in Type 'ClassTwo' (ClassTwo.java:1) advised by before advice from 'SubAspect' (SubAspect.java:2)"/>
  39. <message kind="weave" text="Join point 'staticinitialization(void SuperClass.&lt;clinit&gt;())' in Type 'SuperClass' (SuperClass.java:1) advised by before advice from 'SubAspect' (SubAspect.java:2)"/>
  40. </compile>
  41. </ajc-test>
  42. <!-- testing eclipse to aspectj annotation transformation -->
  43. <ajc-test dir="features153/pipelining/annotations" title="annotation transformation">
  44. <compile files="AnAspect.java,Foo.java,DecoratedClass.java" options="-1.5 -verbose"/>
  45. </ajc-test>
  46. <!-- does the aspect sorter recognize annotation style aspects, pass the aspects last -->
  47. <ajc-test dir="features153/pipelining" title="recognizing annotation style aspects - 1">
  48. <compile files="ClassOne.java,AtAJAspect.java" options="-1.5 -verbose"/>
  49. </ajc-test>
  50. <!-- does the aspect sorter recognize annotation style aspects (inner type), pass the aspects last -->
  51. <ajc-test dir="features153/pipelining" title="recognizing annotation style aspects - 2">
  52. <compile files="ClassOne.java,AtInnerAJAspect.java" options="-1.5 -verbose"/>
  53. </ajc-test>
  54. <!-- the aspect is multiple layers down in the class... -->
  55. <ajc-test dir="features153/pipelining" title="build one class and deeply nested aspect">
  56. <compile files="ClassOne.java,DeepAspect.java" options="-1.5 -verbose -showWeaveInfo">
  57. <message kind="weave" text="Join point 'staticinitialization(void ClassOne.&lt;clinit&gt;())' in Type 'ClassOne' (ClassOne.java:1) advised by before advice from 'DeepAspect$Inner$SimpleAspect' (DeepAspect.java:4)"/>
  58. </compile>
  59. </ajc-test>
  60. </suite>