Context used when creating test suite in HelperMacros.
More...
#include <TestSuiteBuilderContext.h>
List of all members.
Detailed Description
Context used when creating test suite in HelperMacros.
Base class for all context used when creating test suite. The actual context type during test suite creation is TestSuiteBuilderContext.
- See also:
- CPPUNIT_TEST_SUITE, CPPUNIT_TEST_SUITE_ADD_TEST, CPPUNIT_TEST_SUITE_ADD_CUSTOM_TESTS.
Member Typedef Documentation
Constructor & Destructor Documentation
TestSuiteBuilderContextBase::~TestSuiteBuilderContextBase |
( |
| ) |
|
|
virtual |
Member Function Documentation
void TestSuiteBuilderContextBase::addProperty |
( |
const std::string & |
key, |
|
|
const std::string & |
value |
|
) |
| |
Adds property pair.
- Parameters:
-
key | PropertyKey string to add. |
value | PropertyValue string to add. |
void TestSuiteBuilderContextBase::addTest |
( |
Test * |
test | ) |
|
Adds a test to the fixture suite.
- Parameters:
-
test | Test to add to the fixture suite. Must not be NULL . |
std::string TestSuiteBuilderContextBase::getFixtureName |
( |
| ) |
const |
Returns the fixture name.
- Returns:
- Fixture name. It is the name used to name the fixture suite.
const std::string TestSuiteBuilderContextBase::getStringProperty |
( |
const std::string & |
key | ) |
const |
Returns property value assigned to param key.
- Parameters:
-
std::string TestSuiteBuilderContextBase::getTestNameFor |
( |
const std::string & |
testMethodName | ) |
const |
Returns the name of the test for the specified method.
- Parameters:
-
testMethodName | Name of the method that implements a test. |
- Returns:
- A string that is the concatenation of the test fixture name (returned by getFixtureName()) andtestMethodName, separated using '::'. This provides a fairly unique name for a given test.
TestFixture * TestSuiteBuilderContextBase::makeTestFixture |
( |
| ) |
const |
|
protected |
Member Data Documentation
const TestNamer& TestSuiteBuilderContextBase::m_namer |
|
protected |
Properties TestSuiteBuilderContextBase::m_properties |
|
private |
TestSuite& TestSuiteBuilderContextBase::m_suite |
|
protected |
The documentation for this class was generated from the following files: