This class defines assertions for test result. More...
#include <CTestAssert.h>
Public Member Functions | |
| CTestAssert () | |
| Initializes new instance. | |
| CTestAssert (const CTestBaseSPtr &parent) | |
| Initializes new instance. | |
| void | getExpressions (iconnect::StrVector &expressions) |
| Returns expressions, which are expected to evaluate to true after test ends. | |
| virtual bool | isEmpty () const |
| This method returns true, if the object contains no data. | |
| iconnect::ETristate | isExpectException () |
| Returns true, if exception is expected to be thrown from function under test. | |
| bool | isMerged () const |
| Returns true, if the CTestSpecification section containing this object is merged. | |
| virtual void | serialize (const isys::IEmitterSPtr &emitter) |
| Sends contents of this class to emitter. | |
| void | setExpectException (iconnect::ETristate isExpectException) |
| Sets whether exception is expected as test result. | |
| void | setExpressions (const iconnect::StrVector &expressions) |
| Sets expressions, which are expected to evaluate to true after test ends. | |
| virtual std::string | toString () |
| Returns object data as YAML string. | |
Static Public Member Functions | |
| static isys::CTestAssertSPtr | cast (CTestBaseSPtr &testBase) |
| Casts the given object to this class. | |
Protected Member Functions | |
| void | setStaticTagsAsConst () |
| This method is called by all objects which are immediately contained in CTestSpecification, for example CTestCoverage, CTestHIL, ... | |
This class defines assertions for test result.
| isys::CTestAssert::CTestAssert | ( | const CTestBaseSPtr & | parent | ) |
Initializes new instance.
| parent | an instance of parent CTestSpecification class. |
|
static |
Casts the given object to this class.
Returns NULL if input is NULL.
| IllegalArgumentException | if input object is not instance of this class. |
| iconnect::ETristate isys::CTestAssert::isExpectException | ( | ) |
Returns true, if exception is expected to be thrown from function under test.
Throws exception if this class is used to store test pre-condition.
| void isys::CTestAssert::setExpectException | ( | iconnect::ETristate | isExpectException | ) |
Sets whether exception is expected as test result.
Throws exception if this class is used to store test pre-condition.