CppUnit project page FAQ CppUnit home page

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

CppUnit::AutoRegisterSuite Class Template Reference

Automatically register the test suite of the specified type. More...

#include <AutoRegisterSuite.h>

List of all members.

Public Methods

 AutoRegisterSuite ()
 Auto-register the suite factory in the global registry. More...

 AutoRegisterSuite (const std::string &name)
 Auto-register the suite factory in the specified registry. More...


Detailed Description

template<typename TestCaseType>
class CppUnit::AutoRegisterSuite< TestCaseType >

Automatically register the test suite of the specified type.

You should not use this class directly. Instead, use the following macros:

This object will register the test returned by TestCaseType::suite() when constructed to the test registry.

This object is intented to be used as a static variable.

Parameters:
TestCaseType  Type of the test case which suite is registered.
See also:
CPPUNIT_TEST_SUITE_REGISTRATION, CPPUNIT_TEST_SUITE_NAMED_REGISTRATION , CppUnit::TestFactoryRegistry.


Constructor & Destructor Documentation

template<typename TestCaseType>
CppUnit::AutoRegisterSuite< TestCaseType >::AutoRegisterSuite   [inline]
 

Auto-register the suite factory in the global registry.

template<typename TestCaseType>
CppUnit::AutoRegisterSuite< TestCaseType >::AutoRegisterSuite const std::string &    name [inline]
 

Auto-register the suite factory in the specified registry.

Parameters:
name  Name of the registry.


The documentation for this class was generated from the following file:
SourceForge Logo hosts this site. Send comments to:
CppUnit Developers