|
Jon Test
C++ Unit Test Tool. Not for production -- sample code only
|
Defines and runs a single Test Case within a Test Suite. More...
#include <TestCase.h>

Public Types | |
| typedef TestSuiteDerived | TestSuite |
| The actual Test Suite class. | |
| typedef void(TestSuite::* | TestCaseMethod) () |
| The actual Test Suite Method type for test cases. | |
Public Member Functions | |
| TestCase ()=default | |
| Default initializer for use in STL containers. | |
| TestCase (const TestCase &right)=default | |
| Default copy constructor for use in STL containers. | |
| TestCase (const char *const testCaseName, TestCaseMethod const testCaseMethod) | |
| Create Test Case by name for given testCaseMethod in TestSuite. | |
| ~TestCase () | |
| Do nothing destructor. | |
| bool | run (TestSuite &suite, Logger &logger) const |
| Run this Test Case as part of suite, logging events to logger. | |
Static Public Member Functions | |
| static TestCase | createAndAdd (TestSuite &suite, const char *const testCaseName, TestCaseMethod const testCaseMethod) |
| Creates TestCase and adds the Test Case to the suite. | |
Public Attributes | |
| std::string | name |
| Name of the Test Case. | |
| TestCaseMethod | testCaseMethod |
| TestSuite method of the Test Case. | |
Defines and runs a single Test Case within a Test Suite.
| TestSuiteDerived | The actual Test Suite class, required for pointer to member. |
Definition at line 17 of file TestCase.h.
| typedef void(TestSuite::* JonTest::TestCase< TestSuiteDerived >::TestCaseMethod) () |
The actual Test Suite Method type for test cases.
Definition at line 24 of file TestCase.h.
| typedef TestSuiteDerived JonTest::TestCase< TestSuiteDerived >::TestSuite |
The actual Test Suite class.
Definition at line 21 of file TestCase.h.
|
default |
Default initializer for use in STL containers.
|
default |
Default copy constructor for use in STL containers.
|
inline |
Create Test Case by name for given testCaseMethod in TestSuite.
| testCaseName | Name of the Test Case |
| testCaseMethod | TestSuite method of the Test Case |
Definition at line 54 of file TestCase.h.
|
inline |
Do nothing destructor.
Definition at line 66 of file TestCase.h.
|
inlinestatic |
Creates TestCase and adds the Test Case to the suite.
| suite | Test Suite to add this to |
| testCaseName | Name of the Test Case |
| testCaseMethod | TestSuite method of the Test Case |
Definition at line 34 of file TestCase.h.
|
inline |
Run this Test Case as part of suite, logging events to logger.
| suite | Test Suite this Test Case belongs to |
| logger | Receiver of events from the execution of this Test Case |
Definition at line 74 of file TestCase.h.
| std::string JonTest::TestCase< TestSuiteDerived >::name |
Name of the Test Case.
Definition at line 27 of file TestCase.h.
| TestCaseMethod JonTest::TestCase< TestSuiteDerived >::testCaseMethod |
TestSuite method of the Test Case.
Definition at line 30 of file TestCase.h.