Alan Viverette | 3da604b | 2020-06-10 18:34:39 +0000 | [diff] [blame] | 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 | */ | ||||
12 | public abstract int countTestCases(); | ||||
13 | /** | ||||
14 | * Runs a test and collects its result in a TestResult instance. | ||||
15 | */ | ||||
16 | public abstract void run(TestResult result); | ||||
17 | } |