diff options
author | Paul Duffin <paulduffin@google.com> | 2017-11-16 15:47:05 +0000 |
---|---|---|
committer | Paul Duffin <paulduffin@google.com> | 2017-11-28 12:03:53 +0000 |
commit | f779efd62cd579f67bd3b387d59fda11ee0cbe90 (patch) | |
tree | 056bc7384db35e1c12ddffc3381ebc332d60947d /test-base/src/junit/framework/Test.java | |
parent | 10d0658bf020197c16264a1da4637e0d20ee6445 (diff) |
Move legacy-test to test-base
Make it consistent with the test-mock and test-runner directories.
Also renames the files in api/ subdirectory.
Bug: 30188076
Test: make checkbuild
Change-Id: If4f99a65fcca416ede5b3e63481398f0b451bcb7
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 |