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.

AtAjSyntaxTests.java 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /*******************************************************************************
  2. * Copyright (c) 2005 Contributors.
  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://eclipse.org/legal/epl-v10.html
  8. *
  9. * Contributors:
  10. * initial implementation Alexandre Vasseur
  11. *******************************************************************************/
  12. package org.aspectj.systemtest.ajc150.ataspectj;
  13. import junit.framework.Test;
  14. import org.aspectj.testing.XMLBasedAjcTestCase;
  15. import java.io.File;
  16. /**
  17. * A suite for @AspectJ aspects located in java5/ataspectj
  18. *
  19. * @author <a href="mailto:alex AT gnilux DOT com">Alexandre Vasseur</a>
  20. */
  21. public class AtAjSyntaxTests extends XMLBasedAjcTestCase {
  22. public static Test suite() {
  23. return XMLBasedAjcTestCase.loadSuite(AtAjSyntaxTests.class);
  24. }
  25. protected File getSpecFile() {
  26. return new File("../tests/src/org/aspectj/systemtest/ajc150/ataspectj/syntax.xml");
  27. }
  28. public void testSimpleBefore() {
  29. runTest("SimpleBefore");
  30. }
  31. public void testSimpleAfter() {
  32. runTest("SimpleAfter");
  33. }
  34. public void testSingletonAspectBindings() {
  35. //Note AV: uncomment setReporting to get it in modules/tests folder
  36. //org.aspectj.asm.AsmManager.setReporting("debug.txt",true,true,true,true);
  37. runTest("singletonAspectBindings");
  38. // same stuff with AJ
  39. //org.aspectj.asm.AsmManager.setReporting("debug-aj.txt",true,true,true,true);
  40. runTest("singletonAspectBindings2");
  41. }
  42. public void testCflowTest() {
  43. runTest("CflowTest");
  44. }
  45. public void testPointcutReferenceTest() {
  46. runTest("PointcutReferenceTest");
  47. }
  48. public void testXXJoinPointTest() {
  49. runTest("XXJoinPointTest");
  50. }
  51. public void testPrecedenceTest() {
  52. runTest("PrecedenceTest");
  53. }
  54. public void testAfterXTest() {
  55. runTest("AfterXTest");
  56. }
  57. public void testBindingTest() {
  58. runTest("BindingTest");
  59. }
  60. public void testBindingTestNoInline() {
  61. runTest("BindingTest no inline");
  62. }
  63. public void testPerClause() {
  64. runTest("PerClause");
  65. }
  66. public void testAroundInlineMunger_XnoInline() {
  67. runTest("AroundInlineMunger -XnoInline");
  68. }
  69. public void testAroundInlineMunger() {
  70. runTest("AroundInlineMunger");
  71. }
  72. public void testAroundInlineMunger2() {
  73. runTest("AroundInlineMunger2");
  74. }
  75. public void testDeow() {
  76. runTest("Deow");
  77. }
  78. public void testSingletonInheritance() {
  79. runTest("singletonInheritance");
  80. }
  81. public void testPerClauseInheritance() {
  82. runTest("perClauseInheritance");
  83. }
  84. public void testIfPointcut() {
  85. runTest("IfPointcutTest");
  86. }
  87. public void testIfPointcut2() {
  88. runTest("IfPointcut2Test");
  89. }
  90. }