| CppUnit project page | FAQ | CppUnit home page |
#include <TestSuiteBuilderContext.h>

Public Member Functions | |
| TestSuiteBuilderContextBase (TestSuite &suite, const TestNamer &namer, TestFixtureFactory &factory) | |
| Constructs a new context. | |
| virtual | ~TestSuiteBuilderContextBase () |
| void | addTest (Test *test) |
| Adds a test to the fixture suite. | |
| std::string | getFixtureName () const |
| Returns the fixture name. | |
| std::string | getTestNameFor (const std::string &testMethodName) const |
| Returns the name of the test for the specified method. | |
| void | addProperty (const std::string &key, const std::string &value) |
| Adds property pair. | |
| const std::string | getStringProperty (const std::string &key) const |
| Returns property value assigned to param key. | |
Protected Types | |
| typedef std::pair< std::string, std::string > | Property |
| typedef CppUnitVector< Property > | Properties |
Protected Member Functions | |
| TestFixture * | makeTestFixture () const |
Protected Attributes | |
| TestSuite & | m_suite |
| const TestNamer & | m_namer |
| TestFixtureFactory & | m_factory |
Private Attributes | |
| Properties | m_properties |
Base class for all context used when creating test suite. The actual context type during test suite creation is TestSuiteBuilderContext.
typedef std::pair<std::string,std::string> TestSuiteBuilderContextBase::Property [protected] |
typedef CppUnitVector<Property> TestSuiteBuilderContextBase::Properties [protected] |
| CPPUNIT_NS_BEGIN TestSuiteBuilderContextBase::TestSuiteBuilderContextBase | ( | TestSuite & | suite, | |
| const TestNamer & | namer, | |||
| TestFixtureFactory & | factory | |||
| ) |
Constructs a new context.
You should not use this. The context is created in CPPUNIT_TEST_SUITE().
| TestSuiteBuilderContextBase::~TestSuiteBuilderContextBase | ( | ) | [virtual] |
| void TestSuiteBuilderContextBase::addTest | ( | Test * | test | ) |
Adds a test to the fixture suite.
| test | Test to add to the fixture suite. Must not be NULL. |
| std::string TestSuiteBuilderContextBase::getFixtureName | ( | ) | const |
Returns the fixture name.
| std::string TestSuiteBuilderContextBase::getTestNameFor | ( | const std::string & | testMethodName | ) | const |
Returns the name of the test for the specified method.
| testMethodName | Name of the method that implements a test. |
| void TestSuiteBuilderContextBase::addProperty | ( | const std::string & | key, | |
| const std::string & | value | |||
| ) |
Adds property pair.
| key | PropertyKey string to add. | |
| value | PropertyValue string to add. |
| const std::string TestSuiteBuilderContextBase::getStringProperty | ( | const std::string & | key | ) | const |
Returns property value assigned to param key.
| key | PropertyKey string. |
| TestFixture * TestSuiteBuilderContextBase::makeTestFixture | ( | ) | const [protected] |
TestSuite& TestSuiteBuilderContextBase::m_suite [protected] |
const TestNamer& TestSuiteBuilderContextBase::m_namer [protected] |
TestFixtureFactory& TestSuiteBuilderContextBase::m_factory [protected] |
|
|
hosts this site. |
Send comments to: CppUnit Developers |