1. package junit.framework;
  2. /**
  3. * A <em>Test</em> can be run and collect its results.
  4. *
  5. * @see TestResult
  6. */
  7. public interface Test {
  8. /**
  9. * Counts the number of test cases that will be run by this test.
  10. */
  11. public abstract int countTestCases();
  12. /**
  13. * Runs a test and collects its result in a TestResult instance.
  14. */
  15. public abstract void run(TestResult result);
  16. }