summaryrefslogtreecommitdiff
path: root/include/cppunit/extensions/XmlInputHelper.h
diff options
context:
space:
mode:
authorBaptiste Lepilleur <gaiacrtn@free.fr>2002-12-02 18:45:54 +0000
committerBaptiste Lepilleur <gaiacrtn@free.fr>2002-12-02 18:45:54 +0000
commite2b784709cde0cd7040b4bfb3401869c6306bcc0 (patch)
tree01246b777f7300b5d94be5ac0df0d046874da76d /include/cppunit/extensions/XmlInputHelper.h
parentfaa78dac0e46eef7b529b7be7262f4610f04d432 (diff)
downloadcppunit-e2b784709cde0cd7040b4bfb3401869c6306bcc0.tar.gz
Include/cppunit/plugin/DynamicLibraryManagerException.
include/cppunit/plugin/DynamicLibraryManagerException.h: added constructor to fix compilation issues on recents version of gcc and sun CC (bug #619059) * include/cppunit/input/XmlInputHelper.h: added. * include/cppunit/extensions/TestSuiteBuilderContext.h: * src/cppunit/TestSuiteBuilderContext.cpp: added addProperty() and getStringProperty(). Added macros CPPUNIT_TEST_SUITE_PROPERTY. * src/msvc6/testrunner/TestRunnerDlg.cpp: integrated Tim Threlkeld's bug fix #610162: browse button was disabled if history was empty. * src/msvc6/testrunner/DynamicWindow/cdxCSizeIconCtrl.cpp: integrated Tim Threlkeld's bug fix #610191: common control were not initialized. * include/cppunit/extensions/ExceptionTestCaseDecorator.h: bug #603172, missing Message construction. * src/cppunit/DefaultProtector.cpp: bug #603172. Fixed missing ';'. * src/cppunit/TestCase.cpp: bug #603671. Removed unguarded typeinfo include. * examples/cppunittests/*Suite.h: bug #603666. Added missing Portability.h include.
Diffstat (limited to 'include/cppunit/extensions/XmlInputHelper.h')
-rw-r--r--include/cppunit/extensions/XmlInputHelper.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/cppunit/extensions/XmlInputHelper.h b/include/cppunit/extensions/XmlInputHelper.h
new file mode 100644
index 0000000..4f06e5b
--- /dev/null
+++ b/include/cppunit/extensions/XmlInputHelper.h
@@ -0,0 +1,23 @@
+#ifndef CPPUNIT_EXTENSIONS_XMLINPUTHELPER_H
+#define CPPUNIT_EXTENSIONS_XMLINPUTHELPER_H
+
+#include <cppunit/ParameterizedTestCase.h>
+
+
+/*! \brief Adds a parameterized test method to the suite.
+ * \param testMethod Name of the method of the test case to add to the
+ * suite. The signature of the method must be of
+ * type: void testMethod(std::istream& param_in, std::istream& exp_in);
+ * \see CPPUNIT_TEST_SUITE.
+ */
+#define CPPUNIT_TEST_XML( testMethod) \
+ CPPUNIT_TEST_ADD( new CppUnit::ParameterizedTestCase<ThisTestFixtureType>( \
+ context.getTestNameFor( #testMethod ), \
+ #testMethod, \
+ &TestFixtureType::testMethod, \
+ context.makeFixture(), \
+ context.getStringProperty( std::string("XmlFileName") ) ) )
+
+
+
+#endif // CPPUNIT_EXTENSIONS_XMLINPUTHELPER_H \ No newline at end of file