CppUnit - The Unit Testing Library

CppUnit project page | FAQ

TestSetUp.h
Go to the documentation of this file.
1 #ifndef CPPUNIT_EXTENSIONS_TESTSETUP_H
2 #define CPPUNIT_EXTENSIONS_TESTSETUP_H
3
4 #include <cppunit/extensions/TestDecorator.h>
5
6 CPPUNIT_NS_BEGIN
7
8
9 class Test;
10 class TestResult;
11
14 class CPPUNIT_API TestSetUp : public TestDecorator
15 {
16 public:
17 TestSetUp( Test *test );
18
19 void run( TestResult *result );
20
21 protected:
22 virtual void setUp();
23 virtual void tearDown();
24
25 private:
26 TestSetUp( const TestSetUp & );
27 void operator =( const TestSetUp & );
28 };
29
30
31 CPPUNIT_NS_END
32
33 #endif // CPPUNIT_EXTENSIONS_TESTSETUP_H
34
TestResult
Manages TestListener.A single instance of this class is used when running the test. It is usually created by the test runner (TestRunner).
Definition: TestResult.h:51
TestDecorator::run
void run(TestResult *result)
Run the test, collecting results.
Definition: TestDecorator.cpp:26
Test
Base class for all test objects.All test objects should be a subclass of Test. Some test objects...
Definition: Test.h:25
CPPUNIT_NS_END
#define CPPUNIT_NS_END
Definition: Portability.h:120
CPPUNIT_NS_BEGIN
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:119
TestDecorator::operator=
void operator=(const TestDecorator &)
TestDecorator.h
TestDecorator
Decorator for Tests.
Definition: TestDecorator.h:21
TestSetUp
Decorates a test by providing a specific setUp() and tearDown().
Definition: TestSetUp.h:14
CPPUNIT_API
#define CPPUNIT_API
Definition: CppUnitApi.h:27

| Send comments to: CppUnit Developers