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

cppunit::TestDecorator Class Reference

テストデコレータ。
Decorator for Tests. More...

#include <TestDecorator.h>

Inheritance diagram for cppunit::TestDecorator::

cppunit::Test cppunit::RepeatedTest cppunit::TestSetup List of all members.

Public Methods

 TestDecorator (Test *test)
 コンストラクタ。. More...

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

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


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


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


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



Protected Attributes

Testm_test

Detailed Description

テストデコレータ。
Decorator for Tests.

TestDecorator provides an alternate means to extend functionality
of a test class without subclassing the test.
Instead, one can subclass the decorater and use it to wrap the test class.

保有する Test のライフサイクルを管理する。


Constructor & Destructor Documentation

cppunit::TestDecorator::TestDecorator Test   test [explicit]
 

コンストラクタ。.

Parameters:
test  元になるテスト。

virtual cppunit::TestDecorator::~TestDecorator   [virtual]
 

デストラクタ。.


Member Function Documentation

virtual void cppunit::TestDecorator::run TestResult   result [virtual]
 

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

Parameters:
result  テスト結果。

Reimplemented from cppunit::Test.

Reimplemented in cppunit::RepeatedTest, and cppunit::TestSetup.

virtual int cppunit::TestDecorator::countTestCases   const [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 from cppunit::Test.

Reimplemented in cppunit::RepeatedTest.

virtual const char* cppunit::TestDecorator::getName   const [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 from cppunit::Test.

virtual cu_String cppunit::TestDecorator::toString   const [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 from cppunit::Test.

Reimplemented in cppunit::RepeatedTest.


Member Data Documentation

Test* cppunit::TestDecorator::m_test [protected]
 


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