Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

cppunit::Test Class Reference

全てのテストの基底クラス。
Base class for all test objects. More...

#include <Test.h>

Inheritance diagram for cppunit::Test::

cppunit::TestCaller cppunit::TestCase cppunit::TestDecorator cppunit::TestSuite cppunit::RepeatedTest cppunit::TestSetup List of all members.

Public Methods

virtual ~Test ()
 デストラクタ。. More...

virtual void run (TestResult *result)=0
 テストを実行し、結果を集める。
Run the test, collecting results.
More...


virtual int countTestCases () const=0
 テストケースの個数を返す。
Return the number of test cases invoked by run().
More...


virtual const char * getName () const=0
 テストの名前を返す。
Returns the test name.
More...


virtual cu_String toString () const=0
 文字列に変換する。
Description of the test, for diagnostic output.
More...



Detailed Description

全てのテストの基底クラス。
Base class for all test objects.

All test objects should be a subclass of Test.
Some test objects, TestCase for example, represent one individual test.
Other test objects, such as TestSuite, are comprised of several tests.

When a Test is run, the result is collected by a TestResult object.

See also:
TestCase , TestSuite , TestResult


Constructor & Destructor Documentation

virtual cppunit::Test::~Test   [inline, virtual]
 

デストラクタ。.


Member Function Documentation

virtual void cppunit::Test::run TestResult   result [pure virtual]
 

テストを実行し、結果を集める。
Run the test, collecting results.

Parameters:
result  テスト結果。

Reimplemented in cppunit::RepeatedTest, cppunit::TestCaller, cppunit::TestCase, cppunit::TestDecorator, cppunit::TestSetup, and cppunit::TestSuite.

virtual int cppunit::Test::countTestCases   const [pure virtual]
 

テストケースの個数を返す。
Return the number of test cases invoked by run().

The base unit of testing is the class TestCase.
This method returns the number of TestCase objects invoked by the run() method.

Reimplemented in cppunit::RepeatedTest, cppunit::TestCaller, cppunit::TestCase, cppunit::TestDecorator, and cppunit::TestSuite.

virtual const char* cppunit::Test::getName   const [pure virtual]
 

テストの名前を返す。
Returns the test name.

Each test has a name. This name may be used to find the test in a suite of tests.

Reimplemented in cppunit::TestCaller, cppunit::TestCase, cppunit::TestDecorator, and cppunit::TestSuite.

virtual cu_String cppunit::Test::toString   const [pure virtual]
 

文字列に変換する。
Description of the test, for diagnostic output.

The test description will typically include the test name, but may have additional description.
For example, a test suite named ComplexTest may be described as suite ComplexTest.

Reimplemented in cppunit::RepeatedTest, cppunit::TestCaller, cppunit::TestCase, cppunit::TestDecorator, and cppunit::TestSuite.


The documentation for this class was generated from the following file:
Generated on Sun Mar 31 23:42:08 2002 for CppUnit-x by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001