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.

AtAjAnnotationGenTests.java 3.8KB

пре 19 година
пре 18 година
пре 19 година
пре 18 година
пре 19 година
пре 19 година
пре 19 година
пре 4 година
пре 19 година
пре 19 година
пре 18 година
пре 19 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. /*******************************************************************************
  2. * Copyright (c) 2005 Contributors
  3. * All rights reserved. This program and the accompanying materials
  4. * are made available under the terms of the Eclipse Public License v1.0
  5. * which accompanies this distribution, and is available at
  6. * http://www.eclipse.org/legal/epl-v10.html
  7. *
  8. * Contributors:
  9. * initial development Jonas Bon�r, Alexandre Vasseur
  10. *******************************************************************************/
  11. package org.aspectj.systemtest.ajc150.ataspectj;
  12. import java.net.URL;
  13. import org.aspectj.testing.XMLBasedAjcTestCase;
  14. import junit.framework.Test;
  15. /**
  16. * A suite for @AspectJ aspects located in java5/ataspectj
  17. *
  18. * @author <a href="mailto:alex AT gnilux DOT com">Alexandre Vasseur</a>
  19. */
  20. public class AtAjAnnotationGenTests extends XMLBasedAjcTestCase {
  21. public static Test suite() {
  22. return XMLBasedAjcTestCase.loadSuite(AtAjAnnotationGenTests.class);
  23. }
  24. protected URL getSpecFile() {
  25. return getClassResource("annotationgen.xml");
  26. }
  27. public void testSimpleAspect() {
  28. runTest("annotation gen for simple aspect");
  29. }
  30. public void testSimpleAspectIn14Mode() {
  31. runTest("annotation gen for simple aspect pre 1.5");
  32. }
  33. public void testAspectAlreadyAnnotated() {
  34. runTest("annotation gen for simple annotated aspect");
  35. }
  36. public void testPrivilegedAspect() {
  37. runTest("annotation gen for privileged aspect");
  38. }
  39. public void testPerThisAspect() {
  40. runTest("annotation gen for perthis aspect");
  41. }
  42. public void testPerTargetAspect() {
  43. runTest("annotation gen for pertarget aspect");
  44. }
  45. public void testPerCflowAspect() {
  46. runTest("annotation gen for percflow aspect");
  47. }
  48. public void testPerCflowbelowAspect() {
  49. runTest("annotation gen for percflowbelow aspect");
  50. }
  51. public void testPertypewithinAspect() {
  52. runTest("annotation gen for pertypewithin aspect");
  53. }
  54. public void testInnerAspectOfClass() {
  55. runTest("annotation gen for inner aspect of aspect");
  56. }
  57. public void testInnerAspectOfAspect() {
  58. runTest("annotation gen for inner aspect of class");
  59. }
  60. public void testAdvice() {
  61. runTest("annotation gen for advice declarations");
  62. }
  63. public void testSimplePointcut() {
  64. runTest("annotation gen for simple pointcut");
  65. }
  66. public void testPointcutModifiers() {
  67. runTest("annotation gen for pointcut modifiers");
  68. }
  69. public void testPointcutParams() {
  70. runTest("annotation gen for pointcut params");
  71. }
  72. public void testPointcutRefs() {
  73. runTest("annotation gen for pointcut refs");
  74. }
  75. public void testBeforeWithBadReturn() {
  76. runTest("before ann with non-void return");
  77. }
  78. public void testTwoAnnotationsOnSameElement() {
  79. runTest("two anns on same element");
  80. }
  81. public void testBadPcutInAdvice() {
  82. runTest("bad pcut in after advice");
  83. }
  84. public void testBadParameterBinding() {
  85. runTest("bad parameter binding in advice");
  86. }
  87. public void testSimpleAtPointcut() {
  88. runTest("simple pointcut no params");
  89. }
  90. public void testPointcutMedley() {
  91. runTest("pointcut medley");
  92. }
  93. public void testAdviceDeclaredInClass() {
  94. runTest("advice in a class");
  95. }
  96. public void testDeows() {
  97. runTest("ann gen for deows");
  98. }
  99. // no reliable way to get around classpath issues for
  100. // running this test as part of release script :(
  101. // public void testRuntimePointcutsReferencingCompiledPointcuts() {
  102. // runTest("runtime pointcut resolution referencing compiled pointcuts");
  103. // }
  104. public void testDecP() {
  105. runTest("ann gen for decp");
  106. }
  107. public void testDecPAdvanced() {
  108. runTest("ann gen for decp 2");
  109. }
  110. public void testDecS() {
  111. runTest("ann gen for decs");
  112. }
  113. public void testDecPrecedence() {
  114. runTest("ann gen for dec precedence");
  115. }
  116. public void testDecAnnotation() {
  117. runTest("ann gen for dec annotation");
  118. }
  119. public void testITDs() {
  120. runTest("ann gen for itds");
  121. }
  122. }