Name

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.

The template class TestSuiteFactory
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.

Get Unit Test Frameworks now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.