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

TestCaseDummyModeManager_1 Class Reference

#include <TestCaseDummyModeManager_1.h>

Inheritance diagram for TestCaseDummyModeManager_1:

TestCaseWithEvtCheck TestCaseGenericSetUp TestCase List of all members.

Detailed Description

Verify the configuration and mode management services implemented by class ModeManager.

Since this class is abstract, the verification is performed on the class DummyModeManager. An instance of this class is created and the following tests are performed upon it:

  1. The correctness of the class identifier is verified.
  2. It is verified that the mode manager is not configured at creation.
  3. The number of modes is loaded and the correctness of the load operation is verified.
  4. The default mode is loaded and it is verified that the mode manager is now configured and that the current mode is equal to the default mode.
  5. noon-nominal behaviour check: an out-of-range default mode is loaded and it is checked that the correct event is generated.
  6. It is verified that all mode transitions are enabled.
  7. An update request is performed, it is verified that it results in a change of mode and that this is recorded as an event.
  8. All mode transitions are disabled and it is verified that the disable request is correctly performed.
  9. A second update request is performed, it is verified that no mode change occurs, and that an event is generated to report the fact that a mode transition was attempted but could not be executed because the transition was disabled.
  10. General mode transitions are again enabled and then mode transitions to a particular target mode are disabled and it is verified that the disable request is correctly executed.
  11. A third update request is performed that should trigger the disabled mode transition and it is verified that no mode transition occurs.
  12. Non-nominal behaviour check: an attempt is made to disable mode transitions to an out-of-range target mode and it is checked that the correct event is generated.
  13. A reset request is made and it is verified that the state of the mode manager is brought back to where it was after the component's configuration was terminated.
See also:
DC_DummyModeManager

ModeManager

Author:
Alessandro Pasetti (P&P Software GmbH)
Version:
1.0

Definition at line 60 of file TestCaseDummyModeManager_1.h.

Public Member Functions

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

virtual void runTestCase (void)
 Execute the test case.


Member Function Documentation

void TestCaseDummyModeManager_1::runTestCase void   )  [virtual]
 

Execute the test case.

See class comment for details.

Reimplemented from TestCaseGenericSetUp.

Definition at line 24 of file TestCaseDummyModeManager_1.cpp.


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