SASSY
0.0
Software Architecture Support System
|
Base class for test cases. More...
#include <cfi/testmgr.h>
Public Member Functions | |
AbstractTestCase (csr nm) | |
Constructor. More... | |
virtual | ~AbstractTestCase () |
Destructor. More... | |
virtual bool | operator() (ScenarioResults *) |
Execute the tests. More... | |
Static Public Attributes | |
static const bool | EXPECTED = true |
Value for expected parameter of test() | |
Protected Member Functions | |
bool | test (bool cond, csr testMsg, bool expected=false) |
Perform or record a test. More... | |
virtual bool | runTest ()=0 |
Run the tests for the test case. More... | |
Protected Attributes | |
std::string | name |
The name of the test case. | |
ScenarioResults * | scenario |
Results for the scenario are placed in here. | |
Base class for test cases.
|
inlineexplicit |
Constructor.
Derived classes should perform any test case specific initialisations.
nm | The name of the test case. |
|
inlinevirtual |
Destructor.
Derived classes should perform test case specific clean up.
|
virtual |
Execute the tests.
|
protectedpure virtual |
Run the tests for the test case.
Derived classes implement this to perform the required tests.
|
protected |
Perform or record a test.
cond | Set to true if test passes. |
testMsg | Message to report when test fails |
expected | Set to EXPECTED if test is expected to fail. |