Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

TestsModuleTests.java 1.7KB

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