TestSuiteFactory

   
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
figs/utf_ac33.gif

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.



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