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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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(ExecutionTestCase.class);// !!! must be last because it exists
  38. //$JUnit-END$
  39. return suite;
  40. }
  41. }