Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

RuntimeAnnotations.java 2.9KB

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