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.

Ajc170Tests.java 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /*******************************************************************************
  2. * Copyright (c) 2008 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.ajc170;
  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 Ajc170Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
  19. public void testPerThis() {
  20. runTest("perthis");
  21. }
  22. public void testPerTarget() {
  23. runTest("pertarget");
  24. }
  25. public void testPerCflow() {
  26. runTest("percflow");
  27. }
  28. public void testPerTypeWithin() {
  29. runTest("pertypewithin");
  30. }
  31. // not specifying -1.7
  32. public void testDiamond1() {
  33. runTest("diamond 1");
  34. }
  35. public void testDiamond2() {
  36. runTest("diamond 2");
  37. }
  38. public void testDiamondItd1() {
  39. runTest("diamond itd 1");
  40. }
  41. public void testLiterals1() {
  42. runTest("literals 1");
  43. }
  44. public void testLiterals2() {
  45. runTest("literals 2");
  46. }
  47. public void testLiteralsItd1() {
  48. runTest("literals itd 1");
  49. }
  50. public void testStringSwitch1() {
  51. runTest("string switch 1");
  52. }
  53. public void testStringSwitch2() {
  54. runTest("string switch 2");
  55. }
  56. public void testMultiCatch1() {
  57. runTest("multi catch 1");
  58. }
  59. public void testMultiCatch2() {
  60. runTest("multi catch 2");
  61. }
  62. public void testMultiCatchWithHandler1() {
  63. runTest("multi catch with handler 1");
  64. }
  65. // public void testMultiCatchWithHandler2() {
  66. // runTest("multi catch with handler 2");
  67. // }
  68. public void testSanity1() {
  69. runTest("sanity 1");
  70. }
  71. public void testMissingImpl_363979() {
  72. runTest("missing impl");
  73. }
  74. public void testMissingImpl_363979_2() {
  75. runTest("missing impl 2");
  76. }
  77. public void testStackOverflow_364380() {
  78. runTest("stackoverflow");
  79. }
  80. // ---
  81. public static Test suite() {
  82. return XMLBasedAjcTestCase.loadSuite(Ajc170Tests.class);
  83. }
  84. @Override
  85. protected File getSpecFile() {
  86. return new File("../tests/src/org/aspectj/systemtest/ajc170/ajc170.xml");
  87. }
  88. }