Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

TestCaseFdirCheck_1 Class Reference

#include <TestCaseFdirCheck_1.h>

Inheritance diagram for TestCaseFdirCheck_1:

TestCaseGenericSetUp TestCase List of all members.

Detailed Description

Verify the services of the 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.

See also:
DC_FdirCheck

DC_DummyRecoveryAction

Author:
Roberto Totaro
Version:
1.0

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.


Constructor & Destructor Documentation

TestCaseFdirCheck_1::TestCaseFdirCheck_1 void   ) 
 

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.


Member Function Documentation

void TestCaseFdirCheck_1::runTestCase void   )  [virtual]
 

Execute the test case.

See class comment for details.

Reimplemented from TestCaseGenericSetUp.

Definition at line 23 of file TestCaseFdirCheck_1.cpp.


The documentation for this class was generated from the following files:
Copyright 2003 P&P Software GmbH - All Rights Reserved