summaryrefslogtreecommitdiff
path: root/include/cppunit/extensions/TestSetUp.h
diff options
context:
space:
mode:
authorBastiaan Bakker <bastiaan.bakker@lifeline.nl>2001-04-22 22:09:57 +0000
committerBastiaan Bakker <bastiaan.bakker@lifeline.nl>2001-04-22 22:09:57 +0000
commitc910c4cc5cde77b7ef034c50058d8d5f11bd4b71 (patch)
treeb6150386cb0a000c96ac573ac161e262231ba42e /include/cppunit/extensions/TestSetUp.h
parent788f81ef8dac04bb5fd0b88cc6d0ef150c4c5a6f (diff)
downloadcppunit-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.h38
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
+