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.1KB

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