CppUnit project page | FAQ

TestSuiteFactory.h
Go to the documentation of this file.
1 #ifndef CPPUNIT_EXTENSIONS_TESTSUITEFACTORY_H
2 #define CPPUNIT_EXTENSIONS_TESTSUITEFACTORY_H
3
4 #include <cppunit/extensions/TestFactory.h>
5
6 CPPUNIT_NS_BEGIN
7
8
9 class Test;
10
14 template<class TestCaseType>
15 class TestSuiteFactory : public TestFactory
16 {
17 public:
18 virtual Test *makeTest()
19 {
20 return TestCaseType::suite();
21 }
22 };
23
24
25 CPPUNIT_NS_END
26
27 #endif // CPPUNIT_EXTENSIONS_TESTSUITEFACTORY_H
TestSuiteFactory
TestFactory for TestFixture that implements a static suite() method.
Definition: TestSuiteFactory.h:15
Test
Base class for all test objects.All test objects should be a subclass of Test. Some test objects...
Definition: Test.h:25
TestSuiteFactory::makeTest
virtual Test * makeTest()
Definition: TestSuiteFactory.h:18
CPPUNIT_NS_END
#define CPPUNIT_NS_END
Definition: Portability.h:120
CPPUNIT_NS_BEGIN
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:119
TestFactory
Abstract Test factory.
Definition: TestFactory.h:13
TestFactory.h

| Send comments to: CppUnit Developers