TestCaseDummyModeManager_1 Class Reference
#include <TestCaseDummyModeManager_1.h>
Inheritance diagram for TestCaseDummyModeManager_1:
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:
-
The correctness of the class identifier is verified.
-
It is verified that the mode manager is not configured at creation.
-
The number of modes is loaded and the correctness of the load operation is verified.
-
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.
-
noon-nominal behaviour check: an out-of-range default mode is loaded and it is checked that the correct event is generated.
-
It is verified that all mode transitions are enabled.
-
An update request is performed, it is verified that it results in a change of mode and that this is recorded as an event.
-
All mode transitions are disabled and it is verified that the disable request is correctly performed.
-
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.
-
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.
-
A third update request is performed that should trigger the disabled mode transition and it is verified that no mode transition occurs.
-
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.
-
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] |
|
The documentation for this class was generated from the following files:
Copyright 2003 P&P Software GmbH - All Rights Reserved