01: package junit.framework;
02:
03: /**
04: * A <em>Test</em> can be run and collect its results.
05: *
06: * @see TestResult
07: */
08: public interface Test {
09: /**
10: * Counts the number of test cases that will be run by this test.
11: */
12: public abstract int countTestCases();
13:
14: /**
15: * Runs a test and collects its result in a TestResult instance.
16: */
17: public abstract void run(TestResult result);
18: }
|