Test

   
Test

Description

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.

Figure B-5. The interface Test
figs/utf_ab05.gif

Declaration

 public interface Test 

Constructors

None (it's an interface).

Public Methods


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 .

Protected/Private Methods

None.

Attributes

None.



Unit Test Frameworks
Unit Test Frameworks
ISBN: 0596006896
EAN: 2147483647
Year: 2006
Pages: 146
Authors: Paul Hamill

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net