diff options
| author | Baptiste Lepilleur <gaiacrtn@free.fr> | 2001-06-10 16:14:35 +0000 |
|---|---|---|
| committer | Baptiste Lepilleur <gaiacrtn@free.fr> | 2001-06-10 16:14:35 +0000 |
| commit | 7049d3f3883ec2caec4b28291ccc312997d202fd (patch) | |
| tree | 0b9e29050c8c7e69577a0004eca81b1c2ec47133 /include/cppunit/extensions | |
| parent | b3576400de89f915a43c190940cdf5f9315d6ec8 (diff) | |
| download | cppunit-7049d3f3883ec2caec4b28291ccc312997d202fd.tar.gz | |
Include/extensions/TestSetup.h: renamed TestSetUp.h for consistency.
Diffstat (limited to 'include/cppunit/extensions')
| -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..8b2ffa2 --- /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 + |
