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

TestCaseManoeuvreManager_1 Class Reference

#include <TestCaseManoeuvreManager_1.h>

Inheritance diagram for TestCaseManoeuvreManager_1:

TestCaseWithEvtCheck TestCaseGenericSetUp TestCase List of all members.

Detailed Description

Verify the services implemented by the CC_ManoeuvreManager class.

All the services are tested, apart from the activate method. One instance of the class is created and the following tests are performed:

  1. The correctness of the class identified is verified.
  2. It is verified that the manoeuvre manager is not configured at creation.
  3. The manoeuvre list is allocated and it is verified that its size is properly reported and that the isObjectConfigured return value reflects the change (the object shall now be configured).
  4. It is verified that no manoeuvres are pending.
  5. A number of DC_DummyManoeuvre objects equal to length of the manoeuvre list is loaded into the manoeuvre manager (the manoeuvre list should now be full). It is verified that manCounter is updated.
  6. One of the previously loaded manoeuvre is aborted. It is verified that manCounter is decremented accordingly and that the aborted manoeuvre is no longer in use.
  7. An attempt is made to load an already loaded manoeuvre. It is verified that manCounter is not modified and that a EVT_MAN_ALREADY_IN_USE event is reported.
  8. The previously aborted manoeuvre is re-loaded (the manoeuvre list is therefore once again full). An attempt is made to load an additional manoeuvre. It is verified that a EVT_MAN_LIST_FULL event is reported.
  9. The manoeuvre manager is reset and it is verified that all the manoeuvres have been aborted (they shall no longer be in use).
See also:
CC_ManoeuvreManager

DC_DummyManoeuvre

TestCaseManoeuvreManager_2

Author:
Roberto Totaro
Version:
1.0

Definition at line 46 of file TestCaseManoeuvreManager_1.h.

Public Member Functions

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

virtual void runTestCase (void)
 Execute the test case.


Constructor & Destructor Documentation

TestCaseManoeuvreManager_1::TestCaseManoeuvreManager_1 (  void   ) 
 

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

Definition at line 17 of file TestCaseManoeuvreManager_1.cpp.


Member Function Documentation

void TestCaseManoeuvreManager_1::runTestCase (  void   )  [virtual]
 

Execute the test case.

See class comment for details.

Reimplemented from TestCaseGenericSetUp.

Definition at line 22 of file TestCaseManoeuvreManager_1.cpp.


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