Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

TestsModuleTests.java 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. package org.aspectj.tests;
  2. import org.aspectj.systemtest.AllTests;
  3. import org.aspectj.systemtest.AllTests14;
  4. import org.aspectj.systemtest.AllTests17;
  5. import org.aspectj.systemtest.AllTests18;
  6. import org.aspectj.systemtest.AllTests19;
  7. import org.aspectj.util.LangUtil;
  8. /* *******************************************************************
  9. * Copyright (c) 2005 Contributors.
  10. * All rights reserved.
  11. * This program and the accompanying materials are made available
  12. * under the terms of the Eclipse Public License v1.0
  13. * which accompanies this distribution and is available at
  14. * http://eclipse.org/legal/epl-v10.html
  15. *
  16. * Contributors:
  17. * Wes Isberg initial implementation
  18. * ******************************************************************/
  19. import junit.framework.Test;
  20. import junit.framework.TestCase;
  21. import junit.framework.TestSuite;
  22. public class TestsModuleTests extends TestCase {
  23. public static Test suite() {
  24. String name = TestsModuleTests.class.getName();
  25. TestSuite suite = new TestSuite(name);
  26. // compiler tests, wrapped for JUnit
  27. if (LangUtil.is19VMOrGreater()) {
  28. suite.addTest(AllTests19.suite());
  29. } else if (LangUtil.is18VMOrGreater()) {
  30. suite.addTest(AllTests18.suite());
  31. } else if (LangUtil.is15VMOrGreater()) {
  32. // suite.addTest(AllTests15.suite());
  33. suite.addTest(AllTests17.suite()); // there are currently (28/11/06) no tests specific to a 1.6/1.7 vm - so we can do
  34. // this
  35. } else if (LangUtil.is1dot4VMOrGreater()) {
  36. System.err.println("Skipping tests for 1.5");
  37. // suite.addTest(TestUtil.skipTest("for 1.5"));
  38. suite.addTest(AllTests14.suite());
  39. } else {
  40. System.err.println("Skipping tests for 1.4 and 1.5");
  41. // suite.addTest(TestUtil.skipTest("for 1.4 and 1.5"));
  42. suite.addTest(AllTests.suite());
  43. }
  44. return suite;
  45. }
  46. }