Imported Upstream version 2.81
[platform/upstream/libbullet.git] / UnitTests / cppunit / include / cppunit / extensions / XmlInputHelper.h
1 #ifndef CPPUNIT_EXTENSIONS_XMLINPUTHELPER_H
2 #define CPPUNIT_EXTENSIONS_XMLINPUTHELPER_H
3
4 #include <cppunit/ParameterizedTestCase.h>
5
6
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.
12  */
13 #define CPPUNIT_TEST_XML( testMethod)                                                                                                       \
14         CPPUNIT_TEST_ADD( new CppUnit::ParameterizedTestCase<ThisTestFixtureType>(  \
15                                         context.getTestNameFor( #testMethod ),                                                                  \
16                                         #testMethod,                                                                                                                            \
17                                         &TestFixtureType::testMethod,                                                                             \
18                                         context.makeFixture(),                                                                                                    \
19                                         context.getStringProperty( std::string("XmlFileName") ) ) )
20
21
22
23 #endif // CPPUNIT_EXTENSIONS_XMLINPUTHELPER_H