DCMTK
Version 3.6.1 20120515
OFFIS DICOM Toolkit
|
A single test case which can be run. More...
Public Types | |
typedef OFList< OFString > | TestResult |
This is the type used for test results. | |
Public Member Functions | |
OFTestTest (const OFString &testName) | |
Contructor. | |
virtual | ~OFTestTest () |
Destructor. | |
const OFString & | getTestName () const |
const TestResult & | runAndReturn () |
Execute this test case. | |
virtual void | run ()=0 |
Execute this test case. | |
void | recordFailure (const OFString &file, unsigned long int line, const OFString &message) |
Add a new failure to the result set. | |
Private Attributes | |
OFString | testName_ |
The unique name of this test. | |
TestResult | results_ |
The test results, empty for success. |
A single test case which can be run.
OFTestTest::OFTestTest | ( | const OFString & | testName | ) | [inline] |
Contructor.
testName | the name of this test case |
const OFString& OFTestTest::getTestName | ( | ) | const [inline] |
void OFTestTest::recordFailure | ( | const OFString & | file, |
unsigned long int | line, | ||
const OFString & | message | ||
) | [inline] |
Add a new failure to the result set.
result | list of test failures |
file | filename for this failure |
line | line number for this failure |
message | error description. |
virtual void OFTestTest::run | ( | ) | [pure virtual] |
Execute this test case.
result | the list of error messages generated by this test. |
const TestResult& OFTestTest::runAndReturn | ( | ) | [inline] |
Execute this test case.