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

TestCaseRecoveryAction_1 Class Reference

#include <TestCaseRecoveryAction_1.h>

Inheritance diagram for TestCaseRecoveryAction_1:

TestCaseGenericSetUp TestCase List of all members.

Detailed Description

Verify the services of recovery actions.

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.

See also:
RecoveryAction

DC_NullRecoveryAction

DC_DummyRecoveryAction

Author:
Roberto Totaro
Version:
1.0

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.


Constructor & Destructor Documentation

TestCaseRecoveryAction_1::TestCaseRecoveryAction_1 void   ) 
 

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.


Member Function Documentation

void TestCaseRecoveryAction_1::runTestCase void   )  [virtual]
 

Execute the test case.

See class comment for details.

Reimplemented from TestCaseGenericSetUp.

Definition at line 23 of file TestCaseRecoveryAction_1.cpp.


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