summaryrefslogtreecommitdiff
path: root/include/cppunit/TestFixture.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cppunit/TestFixture.h')
-rw-r--r--include/cppunit/TestFixture.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/cppunit/TestFixture.h b/include/cppunit/TestFixture.h
new file mode 100644
index 0000000..8fc840d
--- /dev/null
+++ b/include/cppunit/TestFixture.h
@@ -0,0 +1,29 @@
+#ifndef CPPUNIT_TESTFIXTURE_H // -*- C++ -*-
+#define CPPUNIT_TESTFIXTURE_H
+
+
+namespace CppUnit {
+
+
+/*! Wrap a test case with setUp and tearDown methods.
+ *
+ * A TestFixture is used to provide a common environment for a set
+ * of test cases.
+ *
+ */
+class TestFixture
+{
+public:
+ virtual ~TestFixture() {};
+
+ //! \brief Set up context before running a test.
+ virtual void setUp() {};
+
+ //! Clean up after the test run.
+ virtual void tearDown() {};
+};
+
+
+}
+
+#endif