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.

Ajc184Tests.java 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. /*******************************************************************************
  2. * Copyright (c) 2014 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. * Andy Clement - initial API and implementation
  10. *******************************************************************************/
  11. package org.aspectj.systemtest.ajc184;
  12. import java.io.File;
  13. import junit.framework.Test;
  14. import org.aspectj.testing.XMLBasedAjcTestCase;
  15. /**
  16. * @author Andy Clement
  17. */
  18. public class Ajc184Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
  19. // The thisAspectInstance tests here are a copy from Ajc1612Tests but we are compiling with -1.8 and not -1.5
  20. public void testThisAspectInstance_239649_1() throws Exception {
  21. // simple case
  22. runTest("thisAspectInstance - 1");
  23. }
  24. public void testThisAspectInstance_239649_2() throws Exception {
  25. // before advice toggling on/off through if called method
  26. runTest("thisAspectInstance - 2");
  27. }
  28. public void testThisAspectInstance_239649_3() throws Exception {
  29. // after advice toggling on/off through if called method
  30. runTest("thisAspectInstance - 3");
  31. }
  32. public void testThisAspectInstance_239649_4() throws Exception {
  33. // before advice, also using thisJoinPointStaticPart
  34. runTest("thisAspectInstance - 4");
  35. }
  36. public void testThisAspectInstance_239649_5() throws Exception {
  37. // before advice, also using thisJoinPoint
  38. runTest("thisAspectInstance - 5");
  39. }
  40. public void testThisAspectInstance_239649_6() throws Exception {
  41. // before advice, also using thisEnclosingJoinPointStaticPart
  42. runTest("thisAspectInstance - 6");
  43. }
  44. public void testThisAspectInstance_239649_7() throws Exception {
  45. // before advice, also using thisJoinPoint and thisJoinPointStaticPart
  46. runTest("thisAspectInstance - 7");
  47. }
  48. public void testThisAspectInstance_239649_8() throws Exception {
  49. // before advice, also using abstract aspects
  50. runTest("thisAspectInstance - 8");
  51. }
  52. public void testThisAspectInstance_239649_9() throws Exception {
  53. // before advice, also using abstract aspects 2
  54. runTest("thisAspectInstance - 9");
  55. }
  56. public void testThisAspectInstance_239649_10() throws Exception {
  57. // aspects in a package
  58. runTest("thisAspectInstance - 10");
  59. }
  60. public void testThisAspectInstance_239649_11() throws Exception {
  61. // non-singleton aspect - should be an error for now
  62. runTest("thisAspectInstance - 11");
  63. }
  64. public void testThisAspectInstance_239649_12() throws Exception {
  65. // arg binding and tjpsp
  66. runTest("thisAspectInstance - 12");
  67. }
  68. public void testThisAspectInstance_239649_13() throws Exception {
  69. // pass instance
  70. runTest("thisAspectInstance - 13");
  71. }
  72. public void testThisAspectInstance_239649_14() throws Exception {
  73. // multiple ifs
  74. runTest("thisAspectInstance - 14");
  75. }
  76. public void testThisAspectInstance_239649_15() throws Exception {
  77. // abstract aspects
  78. runTest("thisAspectInstance - 15");
  79. }
  80. public void testIsFinal_449739() {
  81. runTest("is final");
  82. }
  83. public void testIsFinal_449739_2() {
  84. runTest("is final - 2");
  85. }
  86. // ---
  87. public static Test suite() {
  88. return XMLBasedAjcTestCase.loadSuite(Ajc184Tests.class);
  89. }
  90. @Override
  91. protected java.net.URL getSpecFile() {
  92. return getClassResource("ajc184.xml");
  93. }
  94. }