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.

AjdocTests.java 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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:
  10. * Wes Isberg initial implementation
  11. * ******************************************************************/
  12. package org.aspectj.tools.ajdoc;
  13. import java.io.File;
  14. import org.aspectj.util.FileUtil;
  15. import junit.framework.Test;
  16. import junit.framework.TestCase;
  17. import junit.framework.TestSuite;
  18. public class AjdocTests extends TestCase {
  19. public static File ASPECTJRT_PATH;
  20. static {
  21. String[] paths = { "sp:aspectjrt.path", "sp:aspectjrt.jar",
  22. "../lib/test/aspectjrt.jar", "../aj-build/jars/aspectj5rt-all.jar",
  23. "../aj-build/jars/runtime.jar",
  24. "../runtime/bin"};
  25. ASPECTJRT_PATH = FileUtil.getBestFile(paths);
  26. }
  27. public static Test suite() {
  28. TestSuite suite = new TestSuite(AjdocTests.class.getName());
  29. //$JUnit-BEGIN$
  30. suite.addTestSuite(DeclareFormsTest.class);
  31. suite.addTestSuite(SpacewarTestCase.class);
  32. suite.addTestSuite(PatternsTestCase.class);
  33. suite.addTestSuite(CoverageTestCase.class);
  34. suite.addTestSuite(ITDTest.class);
  35. suite.addTestSuite(FullyQualifiedArgumentTest.class);
  36. suite.addTestSuite(EnumTest.class);
  37. suite.addTestSuite(PointcutVisibilityTest.class);
  38. suite.addTestSuite(ExecutionTestCase.class);
  39. suite.addTestSuite(BugTests.class);
  40. //$JUnit-END$
  41. return suite;
  42. }
  43. }