#include <TestUnit.h>
Inheritance diagram for acdk::tools::aunit::TestCase:
Public Member Functions | |
TestCase (IN(RString) name) | |
virtual | ~TestCase () |
virtual void | run (IN(RTestResult) result) |
virtual void | runTest ()=0 |
virtual int | testCount () |
RString | name () |
RString | getName () |
returns the ClassName for this object by default | |
RString | toString () |
return a string representation of this object Object::toString() return getName() by default | |
virtual void | setUp () |
before starting a test setUp() will be called | |
virtual void | tearDown () |
after executing a test tearDown() will be called | |
void | assertImplementation (bool condition, IN(RString) str, int linenum, IN(RString) fileName) |
check test condition. | |
void | assertImplementation (bool condition, const char *str, int linenum, const char *fileName) |
native C++ implementation for checking test condition. | |
Static Public Attributes | |
bool | NoSuccessTestLogging |
This can be set to true if no side effect by logging successfull testAsserts. | |
bool | TestInBatchMode |
if this value is set all test, which needs interaction should be skipped | |
TestCase * | activeTest |
Private Attributes | |
RString | _name |
RTestResult | _activeResult |
will only used in running test |
|
|
|
|
|
native C++ implementation for checking test condition. Mainly used via testAssert or testAssertComment macros |
|
check test condition.
|
|
returns the ClassName for this object by default
Reimplemented from acdk::lang::Object. Reimplemented in acdk::tools::aunit::CfgScriptTestCase, acdk::tools::aunit::CfgScriptTestSuite, acdk::tools::aunit::ProcessTestSuite, acdk::tools::aunit::ProcessTestCase, acdk::tools::aunit::TestSuite, and acdk::tools::aunit::TestCaller< TestClass >. |
|
|
|
Implements acdk::tools::aunit::Test. Reimplemented in acdk::tools::aunit::ProcessTestSuite, acdk::tools::aunit::ProcessTestCase, and acdk::tools::aunit::TestSuite. |
|
|
before starting a test setUp() will be called
Reimplemented in acdk::tools::aunit::TestCaller< TestClass >. |
|
after executing a test tearDown() will be called
Reimplemented in acdk::tools::aunit::TestCaller< TestClass >. |
|
Implements acdk::tools::aunit::Test. Reimplemented in acdk::tools::aunit::TestSuite. |
|
return a string representation of this object Object::toString() return getName() by default
Reimplemented from acdk::lang::Object. Reimplemented in acdk::tools::aunit::ProcessTestSuite, acdk::tools::aunit::ProcessTestCase, acdk::tools::aunit::TestSuite, and acdk::tools::aunit::TestCaller< TestClass >. |
|
will only used in running test
|
|
|
|
|
|
This can be set to true if no side effect by logging successfull testAsserts.
|
|
if this value is set all test, which needs interaction should be skipped
|