diff options
Diffstat (limited to 'test-base/src/junit/framework/Test.java')
-rw-r--r-- | test-base/src/junit/framework/Test.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test-base/src/junit/framework/Test.java b/test-base/src/junit/framework/Test.java new file mode 100644 index 000000000000..a016ee8308f1 --- /dev/null +++ b/test-base/src/junit/framework/Test.java @@ -0,0 +1,17 @@ +package junit.framework; + +/** + * A <em>Test</em> can be run and collect its results. + * + * @see TestResult + */ +public interface Test { + /** + * Counts the number of test cases that will be run by this test. + */ + public abstract int countTestCases(); + /** + * Runs a test and collects its result in a TestResult instance. + */ + public abstract void run(TestResult result); +}
\ No newline at end of file |