選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

TestsModuleTests.java 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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.TestCase;
  14. import junit.framework.Test;
  15. import junit.framework.TestSuite;
  16. import org.aspectj.systemtest.AllTests;
  17. import org.aspectj.systemtest.AllTests14;
  18. import org.aspectj.systemtest.AllTests15;
  19. import org.aspectj.util.LangUtil;
  20. public class TestsModuleTests extends TestCase {
  21. public static Test suite() {
  22. String name = TestsModuleTests.class.getName();
  23. TestSuite suite = new TestSuite(name);
  24. // compiler tests, wrapped for JUnit
  25. if (LangUtil.is15VMOrGreater()) {
  26. suite.addTest(AllTests15.suite());
  27. } else if (LangUtil.is14VMOrGreater()) {
  28. System.err.println("Skipping tests for 1.5");
  29. //suite.addTest(TestUtil.skipTest("for 1.5"));
  30. suite.addTest(AllTests14.suite());
  31. } else {
  32. System.err.println("Skipping tests for 1.4 and 1.5");
  33. //suite.addTest(TestUtil.skipTest("for 1.4 and 1.5"));
  34. suite.addTest(AllTests.suite());
  35. }
  36. return suite;
  37. }
  38. }