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.

RuntimeAnnotations.java 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. package org.aspectj.systemtest.ajc150;
  2. import org.aspectj.testing.XMLBasedAjcTestCase;
  3. import junit.framework.Test;
  4. /**
  5. * Checking that runtime visible annotations are visible at runtime (they get into the class file)
  6. */
  7. public class RuntimeAnnotations extends XMLBasedAjcTestCase {
  8. public static Test suite() {
  9. return XMLBasedAjcTestCase.loadSuite(RuntimeAnnotations.class);
  10. }
  11. protected java.net.URL getSpecFile() {
  12. return getClassResource("ajc150.xml");
  13. }
  14. public void test01() {
  15. runTest("public method with declare @method");
  16. }
  17. public void test02() {
  18. runTest("public method on the aspect that declares @method on it");
  19. }
  20. public void test03() {
  21. runTest("public annotated method");
  22. }
  23. public void test04() {
  24. runTest("public ITD method with declare @method");
  25. }
  26. public void test05() {
  27. runTest("public annotated ITD method");
  28. }
  29. public void test06() {
  30. runTest("public ITD-on-itself method with declare @method");
  31. }
  32. public void test07() {
  33. runTest("public annotated ITD-on-itself method");
  34. }
  35. public void test08() {
  36. runTest("public method on an Interface with declare @method");
  37. }
  38. public void test09() {
  39. runTest("public annotated method on an Interface");
  40. }
  41. public void test10() {
  42. runTest("public ITD method onto an Interface with declare @method");
  43. }
  44. public void test11() {
  45. runTest("public annotated ITD method onto an Interface");
  46. }
  47. public void test12() {
  48. runTest("public abstract method with declare @method");
  49. }
  50. public void test13() {
  51. runTest("public abstract method on the aspect that declares @method on it");
  52. }
  53. public void test14() {
  54. runTest("public abstract annotated method");
  55. }
  56. public void test15() {
  57. runTest("public abstract ITD method with declare @method");
  58. }
  59. public void test16() {
  60. runTest("public abstract annotated ITD method");
  61. }
  62. public void test17() {
  63. runTest("public abstract ITD-on-itself method with declare @method");
  64. }
  65. public void test18() {
  66. runTest("public abstract annotated ITD-on-itself method");
  67. }
  68. public void test19() {
  69. runTest("public abstract method on an Interface with declare @method");
  70. }
  71. public void test20() {
  72. runTest("public abstract annotated method on an Interface");
  73. }
  74. public void test21() {
  75. runTest("public abstract ITD method onto an Interface with declare @method");
  76. }
  77. public void test22() {
  78. runTest("public abstract annotated ITD method onto an Interface");
  79. }
  80. public void test23() {
  81. runTest("public field with declare @field");
  82. }
  83. public void test24() {
  84. runTest("public field on the aspect that declares @field on it");
  85. }
  86. public void test25() {
  87. runTest("public annotated field");
  88. }
  89. public void test26() {
  90. runTest("public ITD field with declare @field");
  91. }
  92. public void test27() {
  93. runTest("public annotated ITD field");
  94. }
  95. public void test28() {
  96. runTest("public ITD-on-itself field with declare @field");
  97. }
  98. public void test29() {
  99. runTest("public annotated ITD-on-itself field");
  100. }
  101. }