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

TestCaseManoeuvreManager_3 Class Reference

#include <TestCaseManoeuvreManager_3.h>

Inheritance diagram for TestCaseManoeuvreManager_3:

TestCaseWithEvtCheck TestCaseGenericSetUp TestCase List of all members.

Detailed Description

Verify the suspend/resume operations on manoeuvres and the use of the activation step counter.

One instance of the DC_DummyConfigurableManoeuvre class is created and loaded in a manoeuvre manager. The following operations are then performed:

  1. The startCheck and continuationCheck flags of the manoeuvre are set to true. The terminationCheck of the manoeuvre is set to false.
  2. It is verified that the initial value of the activation step counter is equal to zero.
  3. activate() is invoked twice and it is verified that the continuation action counter of the manoeuvre is incremented twice.
  4. It is verified that the activation step counter now has value 2.
  5. The manoeuvre is suspended (its isSuspended flag is set to true), the manoeuvre manager is activated and it is verified that the continuation counter is not incremented.
  6. It is verified that the activation step counter has not been incremented.
  7. The terminationCheck of the manoeuvre is set to true, the manoeuvre manager is activated (thus causing the manoeuvre to be terminated and unloaded) and it is verified that the manoeuvre status is "not suspended".
  8. The manoeuvre is reloaded, it is suspended and then manoeuvre manager is activated. It is verified that the activation step counter has been reset to zero.
  9. The manoeuvre is aborted. It is verified that the manoeuvre status is changed to "not suspended".
See also:
CC_ManoeuvreManager

DC_DummyConfigurableManoeuvre

Manoeuvre::setIsSuspended

Author:
A. Pasetti
Version:
1.0

Definition at line 47 of file TestCaseManoeuvreManager_3.h.

Public Member Functions

 TestCaseManoeuvreManager_3 (void)
 Set the identifier and the name of the test case to, respectively, ID_MANOEUVREMANAGER*10+3 and "TestCaseManoeuvreManager_3".

virtual void runTestCase (void)
 Execute the test case.


Constructor & Destructor Documentation

TestCaseManoeuvreManager_3::TestCaseManoeuvreManager_3 void   ) 
 

Set the identifier and the name of the test case to, respectively, ID_MANOEUVREMANAGER*10+3 and "TestCaseManoeuvreManager_3".

Definition at line 17 of file TestCaseManoeuvreManager_3.cpp.


Member Function Documentation

void TestCaseManoeuvreManager_3::runTestCase void   )  [virtual]
 

Execute the test case.

See class comment for details.

Reimplemented from TestCaseGenericSetUp.

Definition at line 22 of file TestCaseManoeuvreManager_3.cpp.


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