Hotwheels-Cluster 1.2
Creation of Cluster APP for SEA:ME project.
 
Loading...
Searching...
No Matches
test_int_SystemManager.cpp File Reference

Integration tests for the SystemManager class. More...

#include <QCoreApplication>
#include <QSignalSpy>
#include "BatteryController.hpp"
#include "SystemCommandExecutor.hpp"
#include "SystemInfoProvider.hpp"
#include "SystemManager.hpp"
#include <gtest/gtest.h>

Go to the source code of this file.

Data Structures

class  SystemManagerTest
 Class to test the integration between the SystemManager and the BatteryController, SystemInfoProvider, and SystemCommandExecutor. More...
 

Functions

 TEST_F (SystemManagerTest, UpdateTimeSignal)
 Ensures that the SystemManager initializes successfully.
 
 TEST_F (SystemManagerTest, UpdateWifiStatusSignal)
 Ensures that the SystemManager updates the wifi status.
 
 TEST_F (SystemManagerTest, UpdateTemperatureSignal)
 Ensures that the SystemManager updates the temperature.
 
 TEST_F (SystemManagerTest, UpdateBatteryPercentageSignal)
 Ensures that the SystemManager updates the battery percentage.
 
 TEST_F (SystemManagerTest, UpdateIpAddressSignal)
 Ensures that the SystemManager updates the IP address.
 
 TEST_F (SystemManagerTest, ShutdownSystemManager)
 Ensures that the SystemManager shuts down successfully.
 

Detailed Description

Integration tests for the SystemManager class.

Version
0.1
Date
2025-02-12
Author
Michel Batista (@MicchelFAB)
FΓ©lix LE BIHAN (@Fle-bihh)
Ricardo Melo (@reomelo)
Tiago Pereira (@t-pereira06)

Definition in file test_int_SystemManager.cpp.

Function Documentation

◆ TEST_F() [1/6]

TEST_F ( SystemManagerTest ,
ShutdownSystemManager  )

Ensures that the SystemManager shuts down successfully.

Test
πŸš€ Shutdown System Manager

This test verifies that the SystemManager shuts down successfully by deactivating the time timer and status timer.

Definition at line 171 of file test_int_SystemManager.cpp.

◆ TEST_F() [2/6]

TEST_F ( SystemManagerTest ,
UpdateBatteryPercentageSignal  )

Ensures that the SystemManager updates the battery percentage.

Test
πŸ”‹ Update Battery Percentage Signal

This test verifies that the SystemManager updates the battery percentage by emitting the batteryPercentageUpdated signal.

See also
SystemManager::batteryPercentageUpdated

Definition at line 133 of file test_int_SystemManager.cpp.

Here is the call graph for this function:

◆ TEST_F() [3/6]

TEST_F ( SystemManagerTest ,
UpdateIpAddressSignal  )

Ensures that the SystemManager updates the IP address.

Test
🌍 Update IP Address Signal

This test verifies that the SystemManager updates the IP address by emitting the ipAddressUpdated signal.

See also
SystemManager::ipAddressUpdated

Definition at line 153 of file test_int_SystemManager.cpp.

Here is the call graph for this function:

◆ TEST_F() [4/6]

TEST_F ( SystemManagerTest ,
UpdateTemperatureSignal  )

Ensures that the SystemManager updates the temperature.

Test
🌑 Update Temperature Signal

This test verifies that the SystemManager updates the temperature by emitting the temperatureUpdated signal.

See also
SystemManager::temperatureUpdated

Definition at line 114 of file test_int_SystemManager.cpp.

Here is the call graph for this function:

◆ TEST_F() [5/6]

TEST_F ( SystemManagerTest ,
UpdateTimeSignal  )

Ensures that the SystemManager initializes successfully.

Test
πŸš€ Initialize System Manager

This test verifies that the SystemManager initializes successfully by emitting the timeUpdated, wifiStatusUpdated, temperatureUpdated, batteryPercentageUpdated, and ipAddressUpdated signals.

See also
SystemManager::timeUpdated

Definition at line 76 of file test_int_SystemManager.cpp.

Here is the call graph for this function:

◆ TEST_F() [6/6]

TEST_F ( SystemManagerTest ,
UpdateWifiStatusSignal  )

Ensures that the SystemManager updates the wifi status.

Test
πŸ“Ά Update Wifi Status Signal

This test verifies that the SystemManager updates the wifi status by emitting the wifiStatusUpdated signal.

See also
SystemManager::wifiStatusUpdated

Definition at line 95 of file test_int_SystemManager.cpp.

Here is the call graph for this function: