#include <TestCaseFdirCheck_1.h>
Inheritance diagram for TestCaseFdirCheck_1:
DC_FdirCheck
object.
One object (pFDIR
) is created and the following tests are performed upon it:<ol> The correctness of both class ids is verified. It is verified that a newly created object is not configured. A previously created DC_DummyRecoveryAction
(pFDI
) is attached to the object as its FDI check. It is verified that the pointer is correctly set and that the object is not yet configured. A previously created DC_DummyRecoveryAction
(pDRA
) is attached to the object as its recovery action. It is verified that the pointer is correctly set and that the object is configured. The outcome of the FDI check is set to ACTION_CANNOT_EXECUTE
, pFDIR->execute()
is invoked and it is verified that its return code is ACTION_CANNOT_EXECUTE
. Now the FDI check outcome is set to ACTION_FAILURE
and the recovery action's to ACTION_CANNOT_EXECUTE
. It is tested that pFDIR->execute()
invokes the recovery action's execute()
method by verifying that its return code is indeed ACTION_CANNOT_EXECUTE
.
Definition at line 39 of file TestCaseFdirCheck_1.h.
Public Member Functions | |
TestCaseFdirCheck_1 (void) | |
Set the identifier and the name of the test case to, respectively, ID_FDIRCHECK*10+1 and "TestCaseFdirCheck_1". | |
virtual void | runTestCase (void) |
Execute the test case. |
|
Set the identifier and the name of the test case to, respectively, ID_FDIRCHECK*10+1 and "TestCaseFdirCheck_1".
Definition at line 18 of file TestCaseFdirCheck_1.cpp. |
|
Execute the test case. See class comment for details. Reimplemented from TestCaseGenericSetUp. Definition at line 23 of file TestCaseFdirCheck_1.cpp. |