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.

AjcTestsUsingJUnit.java 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* *******************************************************************
  2. * Copyright (c) 2003 Contributors
  3. * All rights reserved.
  4. * This program and the accompanying materials are made available
  5. * under the terms of the Eclipse Public License v 2.0
  6. * which accompanies this distribution and is available at
  7. * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
  8. *
  9. * Contributors:
  10. * Wes Isberg initial implementation
  11. * ******************************************************************/
  12. package org.aspectj.testing.drivers;
  13. import junit.framework.*;
  14. /**
  15. * Run ajc tests as JUnit test suites.
  16. * This class is named to avoid automatic inclusion in
  17. * most JUnit test runs.
  18. */
  19. public class AjcTestsUsingJUnit extends TestCase {
  20. private static final String[] SUITES = new String[]
  21. { "../tests/ajcTestsFailing.xml",
  22. "../tests/ajcTests.xml"
  23. };
  24. private static final String SKIPS =
  25. "-ajctestSkipKeywords=purejava,knownLimitation";
  26. private static final String[][] OPTIONS = new String[][]
  27. { new String[] { SKIPS },
  28. new String[] { SKIPS, "-emacssym" }
  29. };
  30. /**
  31. * Create TestSuite with all SUITES running all OPTIONS.
  32. * @return Test with all TestSuites and TestCases
  33. * specified in SUITES and OPTIONS.
  34. */
  35. public static Test suite() {
  36. String name = AjcTestsUsingJUnit.class.getName();
  37. return HarnessJUnitUtil.suite(name, SUITES, OPTIONS);
  38. }
  39. public AjcTestsUsingJUnit(String name) {
  40. super(name);
  41. }
  42. }