CppUnit project page | CppUnit home page |
#include "forwards.h"
#include "extendeddata.h"
#include "testcase.h"
#include "registry.h"
Go to the source code of this file.
Defines | |
#define | _CPPUT_LF_CLASS(FixtureType, testName) FixtureType##_##testName |
#define | _CPPUT_TEST_LIGHT_FIXTURE_IMPL(FixtureType, testName, specificsCode) |
Implementation detail for light fixture. Implementation Notes: a class deriving from the FixtureType is created for each test. The user actually implement the member function named after testName . |
#define _CPPUT_LF_CLASS | ( | FixtureType, | |||
testName | ) | FixtureType##_##testName |
Implementation detail for light fixture: make class name.
#define _CPPUT_TEST_LIGHT_FIXTURE_IMPL | ( | FixtureType, | |||
testName, | |||||
specificsCode | ) |
Value:
class _CPPUT_LF_CLASS(FixtureType,testName) : public FixtureType \ , public ::CppUT::TestExtendedDataFactory \ { \ public: \ static ::CppUT::TestPtr cpputMakeTest() /* TestFactory */ \ { \ ::CppUT::TestPtr test( ::CppUT::makeTestCase( \ &_CPPUT_LF_CLASS(FixtureType,testName)::cpputTest, #testName ) ); \ specificsCode \ return test; \ } \ public: \ static void cpputTest() \ { \ _CPPUT_LF_CLASS(FixtureType,testName) fixture; \ fixture.testName(); \ } \ void testName(); \ }; \ CPPUT_REGISTER_TESTFACTORY_IN( &_CPPUT_LF_CLASS(FixtureType,testName)::cpputMakeTest, \ #FixtureType ); \ void _CPPUT_LF_CLASS(FixtureType,testName)::testName()
FixtureType
is created for each test. The user actually implement the member function named after testName
.
hosts this site. |
Send comments to: CppUnit Developers |