001package junit.framework;
002
003/**
004 * A <em>Test</em> can be run and collect its results.
005 *
006 * @see TestResult
007 */
008public interface Test {
009    /**
010     * Counts the number of test cases that will be run by this test.
011     */
012    public abstract int countTestCases();
013
014    /**
015     * Runs a test and collects its result in a TestResult instance.
016     */
017    public abstract void run(TestResult result);
018}