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.

BaseTests.java 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. /* *******************************************************************
  2. * Copyright (c) 2004 IBM Corporation
  3. * All rights reserved.
  4. * This program and the accompanying materials are made available
  5. * under the terms of the Eclipse Public License v1.0
  6. * which accompanies this distribution and is available at
  7. * http://www.eclipse.org/legal/epl-v10.html
  8. *
  9. * ******************************************************************/
  10. package org.aspectj.systemtest.base;
  11. import org.aspectj.testing.XMLBasedAjcTestCase;
  12. import junit.framework.Test;
  13. public class BaseTests extends org.aspectj.testing.XMLBasedAjcTestCase {
  14. public static Test suite() {
  15. return XMLBasedAjcTestCase.loadSuite(BaseTests.class);
  16. }
  17. protected java.net.URL getSpecFile() {
  18. return getClassResource("baseTests.xml");
  19. }
  20. public void test001(){
  21. runTest("static and non-static before methods -- one file");
  22. }
  23. public void test002(){
  24. runTest("static and non-static before methods -- many files");
  25. }
  26. public void test003(){
  27. runTest("this redirection in non-static before methods");
  28. }
  29. public void test004(){
  30. runTest("DEPRECATED: introductions");
  31. }
  32. public void test005(){
  33. runTest("before constructors -- one file");
  34. }
  35. public void test006(){
  36. runTest("advise weaves find methods typed to builtins or non-woven classes");
  37. }
  38. public void test007(){
  39. runTest("make sure new weaves work inside of packages");
  40. }
  41. public void test008(){
  42. runTest("make sure new weaves work inside of packages (again)");
  43. }
  44. public void test009(){
  45. runTest("Inheritance of class and aspect vars in weaves");
  46. }
  47. public void test010(){
  48. runTest("Accessibility of class and aspect members from inside weaves");
  49. }
  50. public void test011(){
  51. runTest("Packaged aspects referring to packaged classes");
  52. }
  53. public void test012(){
  54. runTest("Inheritance of methods advised by aspects");
  55. }
  56. public void test013(){
  57. runTest("Inherited weaves on constructor");
  58. }
  59. public void test014(){
  60. runTest("Initializers in Aspect and Class Bodies");
  61. }
  62. public void test015(){
  63. runTest("Weaver Resolution of method names in method calls passed as args");
  64. }
  65. public void test016(){
  66. runTest("DEPRECATED: Introduce constructor with class inheritance");
  67. }
  68. public void test017(){
  69. runTest("empty and singular patterns on modifiers and throws");
  70. }
  71. public void test018(){
  72. runTest("DEPRECATED: Introduce of constructors");
  73. }
  74. public void test019(){
  75. runTest("Local declarations in advise bodies");
  76. }
  77. public void test020(){
  78. runTest("advises on introduced methods and constructors");
  79. }
  80. public void test021(){
  81. runTest("DEPRECATED: Method introduction into interface implemented by abstract class");
  82. }
  83. public void test022(){
  84. runTest("Crossing super calls in constructors");
  85. }
  86. public void test023(){
  87. runTest("empty modifier pattern");
  88. }
  89. public void test024(){
  90. runTest("Alpha conversion of argument names in designators");
  91. }
  92. public void test025(){
  93. runTest("advice uses its own formals to get actuals");
  94. }
  95. public void test026(){
  96. runTest("DEPRECATED: introduce weaves can use this");
  97. }
  98. public void test027(){
  99. runTest("DEPRECATED: introduce of abstract methods works");
  100. }
  101. public void test028(){
  102. runTest("multiple arounds successfully intercept and return own values");
  103. }
  104. public void test029(){
  105. runTest("proper matching of overloaded constructors");
  106. }
  107. public void test030(){
  108. runTest("proper handling of formals in catch advice");
  109. }
  110. public void test031(){
  111. runTest("proper values for thisJoinPoint attributes");
  112. }
  113. public void test032(){
  114. runTest("supers, supers, supers");
  115. }
  116. public void test033(){
  117. runTest("operations on private and protected aspect members (++, -- in partciular)");
  118. }
  119. public void test034(){
  120. runTest("only register things once");
  121. }
  122. public void test035(){
  123. runTest("inner aspects and around");
  124. }
  125. public void test036(){
  126. runTest("aspect inheritance and advice, introduction");
  127. }
  128. public void test037(){
  129. runTest("thisResultObject for primitives");
  130. }
  131. public void test038(){
  132. runTest("introductions calling super.");
  133. }
  134. public void test039(){
  135. runTest("allow one argument calls even when there's a comma in the arglist");
  136. }
  137. public void test040(){
  138. runTest("advice on calls to static methods even works when called on super");
  139. }
  140. }