diff options
| author | Bastiaan Bakker <bastiaan.bakker@lifeline.nl> | 2001-06-11 16:56:05 +0000 |
|---|---|---|
| committer | Bastiaan Bakker <bastiaan.bakker@lifeline.nl> | 2001-06-11 16:56:05 +0000 |
| commit | 021d0a2611777a06d948735e0ad36cb90ffd413b (patch) | |
| tree | cb240f323160280045ac19d8a04f46e3cabcceeb /include/cppunit | |
| parent | be9c2ced0eda31e0485f92ee8768b1c00bedf41d (diff) | |
| download | cppunit-021d0a2611777a06d948735e0ad36cb90ffd413b.tar.gz | |
Renamed from TestSetup.h
Diffstat (limited to 'include/cppunit')
| -rw-r--r-- | include/cppunit/extensions/TestSetUp.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/include/cppunit/extensions/TestSetUp.h b/include/cppunit/extensions/TestSetUp.h new file mode 100644 index 0000000..34f4603 --- /dev/null +++ b/include/cppunit/extensions/TestSetUp.h @@ -0,0 +1,35 @@ +#ifndef CPPUNIT_EXTENSIONS_TESTSETUP_H +#define CPPUNIT_EXTENSIONS_TESTSETUP_H + +#include <cppunit/extensions/TestDecorator.h> + +namespace CppUnit { + +class Test; +class TestResult; + + +class TestSetUp : public TestDecorator +{ +public: + TestSetUp (Test *test) : TestDecorator (test) {} + run (TestResult *result); + +protected: + void setUp () {} + void tearDown () {} + +private: + TestSetUp( const TestSetUp & ); + void operator =( const TestSetUp & ); +}; + + +inline TestSetup::run (TestResult *result) +{ setUp (); TestDecorator::run (result); tearDown (); } + + +} // namespace CppUnit + +#endif // CPPUNIT_EXTENSIONS_TESTSETUP_H + |
