1 #ifndef CPPUNIT_EXTENSIONS_XMLINPUTHELPER_H
2 #define CPPUNIT_EXTENSIONS_XMLINPUTHELPER_H
4 #include <cppunit/ParameterizedTestCase.h>
7 /*! \brief Adds a parameterized test method to the suite.
8 * \param testMethod Name of the method of the test case to add to the
9 * suite. The signature of the method must be of
10 * type: void testMethod(std::istream& param_in, std::istream& exp_in);
11 * \see CPPUNIT_TEST_SUITE.
13 #define CPPUNIT_TEST_XML( testMethod) \
14 CPPUNIT_TEST_ADD( new CppUnit::ParameterizedTestCase<ThisTestFixtureType>( \
15 context.getTestNameFor( #testMethod ), \
17 &TestFixtureType::testMethod, \
18 context.makeFixture(), \
19 context.getStringProperty( std::string("XmlFileName") ) ) )
23 #endif // CPPUNIT_EXTENSIONS_XMLINPUTHELPER_H