diff options
| author | Bastiaan Bakker <bastiaan.bakker@lifeline.nl> | 2001-04-22 22:09:57 +0000 |
|---|---|---|
| committer | Bastiaan Bakker <bastiaan.bakker@lifeline.nl> | 2001-04-22 22:09:57 +0000 |
| commit | c910c4cc5cde77b7ef034c50058d8d5f11bd4b71 (patch) | |
| tree | b6150386cb0a000c96ac573ac161e262231ba42e /include/cppunit/extensions/TestSetUp.h | |
| parent | 788f81ef8dac04bb5fd0b88cc6d0ef150c4c5a6f (diff) | |
| download | cppunit-c910c4cc5cde77b7ef034c50058d8d5f11bd4b71.tar.gz | |
Merged extension headers back in from Micheal Feathers version.
Diffstat (limited to 'include/cppunit/extensions/TestSetUp.h')
| -rw-r--r-- | include/cppunit/extensions/TestSetUp.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/include/cppunit/extensions/TestSetUp.h b/include/cppunit/extensions/TestSetUp.h new file mode 100644 index 0000000..bcd47d0 --- /dev/null +++ b/include/cppunit/extensions/TestSetUp.h @@ -0,0 +1,38 @@ + +#ifndef CPP_UINT_TESTSETUP_H +#define CPP_UINT_TESTSETUP_H + +#ifndef CPPUNIT_TESTDECORATOR_H +#include "TestDecorator.h" +#endif + +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 + |
