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.

Weaver5ModuleTests.java 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*******************************************************************************
  2. * Copyright (c) 2005 Contributors.
  3. * All rights reserved.
  4. * This program and the accompanying materials are made available
  5. * under the terms of the Eclipse Public License v1.0
  6. * which accompanies this distribution and is available at
  7. * http://eclipse.org/legal/epl-v10.html
  8. *
  9. * Contributors: (See CVS logs)
  10. *
  11. *******************************************************************************/
  12. import org.aspectj.testing.util.TestUtil;
  13. import org.aspectj.util.LangUtil;
  14. import junit.framework.Test;
  15. import junit.framework.TestCase;
  16. import junit.framework.TestSuite;
  17. /**
  18. */
  19. public class Weaver5ModuleTests extends TestCase {
  20. public static Test suite() {
  21. TestSuite suite = new TestSuite(Weaver5ModuleTests.class.getName());
  22. if (TestUtil.is15VMOrGreater()) {
  23. // if (LangUtil.is15VMOrGreater()) {
  24. TestUtil.loadTestsReflectively(suite, "org.aspectj.weaver.tools.Java15PointcutExpressionTest", false);
  25. // }
  26. // TestUtil.loadTestsReflectively(suite, "Weaver515ModuleTests", true);
  27. } else {
  28. suite.addTest(TestUtil.testNamed("all tests require 1.5"));
  29. }
  30. return suite;
  31. }
  32. public static void main(String[] args) {
  33. junit.textui.TestRunner.main(new String[] {Weaver5ModuleTests.class.getName()});
  34. }
  35. }