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. package org.aspectj.weaver;
  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: (See CVS logs)
  11. *
  12. *******************************************************************************/
  13. import junit.framework.Test;
  14. import junit.framework.TestCase;
  15. import junit.framework.TestSuite;
  16. import org.aspectj.testing.util.TestUtil;
  17. import org.aspectj.weaver.tools.PointcutExpressionTest;
  18. /**
  19. */
  20. public class Weaver5ModuleTests extends TestCase {
  21. public static Test suite() {
  22. TestSuite suite = new TestSuite(Weaver5ModuleTests.class.getName());
  23. if (TestUtil.is15VMOrGreater()) {
  24. TestUtil.loadTestsReflectively(suite, "org.aspectj.weaver.tools.Java15PointcutExpressionTest", false);
  25. TestUtil.loadTestsReflectively(suite, "org.aspectj.weaver.AllTracing5Tests", false);
  26. suite.addTestSuite(PointcutExpressionTest.class);
  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. }