November 2004
Intermediate to advanced
212 pages
5h 2m
English
Test
Test
(see
Figure B-5) is an interface implemented by
TestCase and TestSuite. A
Test can be run and its results collected in a
TestResult. It is an important abstraction, since
both individual unit tests and sets of tests are run via the
Test interface.
![]() |
public interface Test
None (it’s an interface).
public abstract int countTestCases( )
Returns the number of test cases run by this Test.
public abstract void run(TestResult result)
Runs the Test and collect its results in a TestResult.
None.
None.
Read now
Unlock full access