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

TestCaseBasicReconfigurer_1 Class Reference

#include <TestCaseBasicReconfigurer_1.h>

Inheritance diagram for TestCaseBasicReconfigurer_1:

TestCaseWithEvtCheck TestCaseGenericSetUp TestCase List of all members.

Detailed Description

Verify the services of the DC_BasicReconfigurer.

One DC_BasicReconfigurer object 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 newly created object is not configured and is enabled.
  3. The enable state is changed. The success of the operation is verified.
  4. setNumberOfConfigurations() is invoked and it is verified that the object is now fully configured, that the number of configurations was correctly set, that all the configurations are HEALTHY and finally that the first configuration is set as the active one.
  5. Non-nominal behaviour check: setActive() is invoked with an out-of-range configuration number. It is verified that an EVT_ILLEGAL_CONFIG is added to the event repository.
  6. setActive() is invoked with a configuration number different from the currently active one. It is verified that getActive() returns the right value, and that an EVT_RECONFIG is added to the event repository.
  7. Non-nominal behaviour check: setHealthStatus() is invoked with an out-of-range parameter. It is verified that an EVT_ILLEGAL_CONFIG is added to the event repository.
  8. setHealthStatus() is invoked with a valid configuration number. It is verified that the health state of the configuration is correctly set.
  9. Without re-enabling the reconfigurer, reconfigure() is called and it is verified that an EVT_RECONFIG_DISABLED event is added to the repository.
  10. The reconfigurer is enabled and reconfigure() is once again called. It is verified that an EVT_RECONFIG event is added to the repository, that the previously active configuration is set to NOT_HEALTHY, and that the currently active one is healthy.
  11. All the configurations are set to NOT_HEALTHY, reconfigure() is invoked and it is verified that an EVT_RECONFIG_NO_HEALTHY event is added to the repository.
  12. Finally, the reconfigurer is disabled and reset() is ionvoked. It is verified that after the call the configurer is once again enabled, that the active configuration is set to 0, and that all the configurations are again healthy.
See also:
DC_BasicReconfigurer
Author:
Roberto Totaro
Version:
1.0

Definition at line 57 of file TestCaseBasicReconfigurer_1.h.

Public Member Functions

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

virtual void runTestCase (void)
 Execute the test case.


Constructor & Destructor Documentation

TestCaseBasicReconfigurer_1::TestCaseBasicReconfigurer_1 void   ) 
 

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

Definition at line 16 of file TestCaseBasicReconfigurer_1.cpp.


Member Function Documentation

void TestCaseBasicReconfigurer_1::runTestCase void   )  [virtual]
 

Execute the test case.

See class comment for details.

Reimplemented from TestCaseGenericSetUp.

Definition at line 21 of file TestCaseBasicReconfigurer_1.cpp.


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