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