1 #ifndef CPPUNIT_HELPER_TESTSUITEBUILDERCONTEXT_H 2 #define CPPUNIT_HELPER_TESTSUITEBUILDERCONTEXT_H 8 #if CPPUNIT_NEED_DLL_DECL 9 #pragma warning( push ) 10 #pragma warning( disable: 4251 ) // X needs to have dll-interface to be used by clients of class Z 47 void addTest(
Test *test );
53 std::string getFixtureName()
const;
63 std::string getTestNameFor(
const std::string &testMethodName )
const;
69 void addProperty(
const std::string &key,
70 const std::string &value );
75 const std::string getStringProperty(
const std::string &key )
const;
83 typedef std::pair<std::string,std::string>
Property;
99 template<
class Fixture>
126 #if CPPUNIT_NEED_DLL_DECL 127 #pragma warning( pop ) 130 #endif // CPPUNIT_HELPER_TESTSUITEBUILDERCONTEXT_H TestSuiteBuilderContext(TestSuiteBuilderContextBase &contextBase)
Definition: TestSuiteBuilderContext.h:105
Wraps a test case with setUp and tearDown methods.A TestFixture is used to provide a common environme...
Definition: TestFixture.h:83
TestFixtureFactory & m_factory
Definition: TestSuiteBuilderContext.h:88
Type-sage context used when creating test suite in HelperMacros.
Definition: TestSuiteBuilderContext.h:100
TestSuite & m_suite
Definition: TestSuiteBuilderContext.h:86
FixtureType * makeFixture() const
Returns a new TestFixture instance.
Definition: TestSuiteBuilderContext.h:116
Abstract TestFixture factory (Implementation).
Definition: TestFixtureFactory.h:16
Base class for all test objects.All test objects should be a subclass of Test. Some test objects...
Definition: Test.h:25
#define CPPUNIT_STATIC_CAST(TargetType, pointer)
Definition: Portability.h:101
std::pair< std::string, std::string > Property
Definition: TestSuiteBuilderContext.h:83
const TestNamer & m_namer
Definition: TestSuiteBuilderContext.h:87
Context used when creating test suite in HelperMacros.
Definition: TestSuiteBuilderContext.h:29
#define CPPUNIT_NS_END
Definition: Portability.h:120
Fixture FixtureType
Definition: TestSuiteBuilderContext.h:103
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:119
TestFixture * makeTestFixture() const
Definition: TestSuiteBuilderContext.cpp:48
Names a test or a fixture suite.
Definition: TestNamer.h:50
Properties m_properties
Definition: TestSuiteBuilderContext.h:91
A Composite of Tests.It runs a collection of test cases. Here is an example.
Definition: TestSuite.h:40
CppUnitVector< Property > Properties
Definition: TestSuiteBuilderContext.h:84
#define CPPUNIT_API
Definition: CppUnitApi.h:27