Unit Test Frameworks

   
TestSuiteFactory

Description

The template class TestSuiteFactory (see Figure C-33) implements the TestFactory method makeTest( ) for a TestFixture having a static suite( ) method. TestSuiteFactory is used by the class AutoRegisterSuite .

TestSuiteFactory belongs to the namespace CppUnit . It is declared and implemented in the file extensions/TestSuiteFactory.h .

Figure C-33. The template class TestSuiteFactory

Declaration

template<typename TestCaseType> class TestSuiteFactory : public TestFactory

Constructors/Destructors

None.

Public Methods

virtual Test *makeTest( )

Calls the method TestCaseType::suite( ) to return a TestSuite .

Protected/Private Methods

None.

Attributes

None.

Категории