#include <TestCasePUStelemetryModeManager_1.h>
Inheritance diagram for TestCasePUSTelemetryModeManager_1:
DC_PUSTelemetryModeManager
class.
The test case is configured as follows:<ul> The telemetry packet factory is retrieved. An instance of class DC_PUSTelemetryModeManager
is created. Two data reporting packet instances (instances of class DC_PUSDataReportingPacket
) are retrieved from the telemetry packet factory. The SIDs of the telemetry packets are SID_A and SID_B. The following specific tests are then performed:<ol> The correctness of the class identifier is checked. It is checked that the mode manager component is initially not configured. The maximum number of packets N allowed by the mode manager is retrieved (recall that the telemetry mode manager is a singleton class whose single instance is configured in another test case) It is checked that the mode manager component is now configured. The two packets are loaded in the mode manager and it is checked that the number of loaded packets is correctly reported. The SID_B packet is loaded N-2 times (N being the capacity of the telemetry mode manager) and it is checked that the component reports: "mode manager is full". An attempt is made to load a further packet and it is checked that this results in the correct event report being generated. The iterator service is checked. The mode manager is asked to verify whether a packet with SID other than SID_A or SID_B is loaded and it is verified that the return value is: "false". Packet SID_A is unloaded and the success of the unload operation is checked. It is attempted to unload a non-existent packet and it is checked that the correct event is created. The iterator service is checked again. Packet SID_A loaded again and then packet SID_B is unloaded and the success of the load/unload operations is checked. The iterator service is checked again. Packet SID_B is unloaded (the mode manager should now be empty) and the success of the unload operation is checked. The iterator service is checked again. Note that this test case uses the telemetry packet factory. It assumes that the structure of the factory is such as to allow two packets of type DC_PUSDataReportingPacket
to be loaded in the factory.
Definition at line 63 of file TestCasePUStelemetryModeManager_1.h.
Public Member Functions | |
TestCasePUSTelemetryModeManager_1 (void) | |
Set the identifier and the name of the test case to, respectively, ID_PUSTELEMETRYMODEMANAGER*10+1 and "TestCasePUSTelemetryModeManager_1". | |
virtual void | runTestCase (void) |
Execute the test case. |
|
Execute the test case. See class comment for details. Reimplemented from TestCaseGenericSetUp. Definition at line 27 of file TestCasePUSTelemetryModeManager_1.cpp. |