#include <TestCaseBasicReconfigurer_1.h>
Inheritance diagram for TestCaseBasicReconfigurer_1:
DC_BasicReconfigurer
.
One DC_BasicReconfigurer
object is created and the following tests are performed upon it:
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. setActive()
is invoked with an out-of-range configuration number. It is verified that an EVT_ILLEGAL_CONFIG
is added to the event repository. 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. setHealthStatus()
is invoked with an out-of-range parameter. It is verified that an EVT_ILLEGAL_CONFIG
is added to the event repository. setHealthStatus()
is invoked with a valid configuration number. It is verified that the health state of the configuration is correctly set. reconfigure()
is called and it is verified that an EVT_RECONFIG_DISABLED
event is added to the repository. 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. NOT_HEALTHY
, reconfigure()
is invoked and it is verified that an EVT_RECONFIG_NO_HEALTHY
event is added to the repository. 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.
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. |
|
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. |
|
Execute the test case. See class comment for details. Reimplemented from TestCaseGenericSetUp. Definition at line 21 of file TestCaseBasicReconfigurer_1.cpp. |