#include <TestCaseRecoveryAction_1.h>
Inheritance diagram for TestCaseRecoveryAction_1:

One DC_NullRecoveryAction object (from now on referred to as "pNRA") and one DC_DummyRecoveryAction object (from now on referred to as "pDRA") are created and the following tests are performed upon them:<ol> The correctness of both class ids is verified. It is verified that pDRA->getNextRecoveryAction() returns NULL. It is verified that a call to pDRA->execute() returns ACTION_SUCCESS. pDRA's execution flag is set to false and pDRA->execute() is invoked. It is verified that it returns ACTION_CANNOT_EXECUTE. It is verified that pNRA->execute() returns ACTION_SUCCESS. pDRA is set as pNRA's "next recovery action". It is verified that NRA->getNextRecoveryAction() returns the correct value. The action outcome of pDRA is set to ACTION_FAILURE and its execution flag to true. It is verified that pNRA->execute() returns ACTION_FAILURE.
Definition at line 42 of file TestCaseRecoveryAction_1.h.
Public Member Functions | |
| TestCaseRecoveryAction_1 (void) | |
| Set the identifier and the name of the test case to, respectively, ID_DUMMYRECOVERYACTION*10+1 and "TestCaseRecoveryAction_1". | |
| virtual void | runTestCase (void) |
| Execute the test case. | |
|
|
Set the identifier and the name of the test case to, respectively, ID_DUMMYRECOVERYACTION*10+1 and "TestCaseRecoveryAction_1".
Definition at line 18 of file TestCaseRecoveryAction_1.cpp. |
|
|
Execute the test case. See class comment for details. Reimplemented from TestCaseGenericSetUp. Definition at line 23 of file TestCaseRecoveryAction_1.cpp. |