Integration tests for the MileageManager class. More...
#include <QCoreApplication>
#include <QSignalSpy>
#include "MileageCalculator.hpp"
#include "MileageFileHandler.hpp"
#include "MileageManager.hpp"
#include <gtest/gtest.h>
Go to the source code of this file.
Data Structures | |
class | MileageManagerTest |
Class to test the integration between the MileageManager and the MileageCalculator and MileageFileHandler. More... | |
Functions | |
TEST_F (MileageManagerTest, ForwardMileageData) | |
Ensures that the MileageManager forwards mileage data. | |
TEST_F (MileageManagerTest, InitializeMileageManager) | |
Ensures that the MileageManager initializes successfully. | |
TEST_F (MileageManagerTest, UpdateMileageOnSpeedUpdate) | |
Ensures that the MileageManager updates the mileage on speed update. | |
TEST_F (MileageManagerTest, SaveMileage) | |
Ensures that the MileageManager saves the mileage. | |
TEST_F (MileageManagerTest, UpdateTimerInterval) | |
Ensures that the MileageManager updates the timer interval. | |
TEST_F (MileageManagerTest, ShutdownMileageManager) | |
Ensures that the MileageManager shuts down successfully. | |
Integration tests for the MileageManager class.
Definition in file test_int_MileageManager.cpp.
TEST_F | ( | MileageManagerTest | , |
ForwardMileageData | ) |
Ensures that the MileageManager forwards mileage data.
This test verifies that the MileageManager forwards mileage data by emitting the mileageUpdated signal.
Definition at line 71 of file test_int_MileageManager.cpp.
TEST_F | ( | MileageManagerTest | , |
InitializeMileageManager | ) |
Ensures that the MileageManager initializes successfully.
This test verifies that the MileageManager initializes successfully by emitting the mileageUpdated signal.
Definition at line 90 of file test_int_MileageManager.cpp.
TEST_F | ( | MileageManagerTest | , |
SaveMileage | ) |
Ensures that the MileageManager saves the mileage.
This test verifies that the MileageManager saves the mileage by calling the saveMileage() method.
Definition at line 127 of file test_int_MileageManager.cpp.
TEST_F | ( | MileageManagerTest | , |
ShutdownMileageManager | ) |
Ensures that the MileageManager shuts down successfully.
This test verifies that the MileageManager shuts down successfully by calling the shutdown() method.
Definition at line 164 of file test_int_MileageManager.cpp.
TEST_F | ( | MileageManagerTest | , |
UpdateMileageOnSpeedUpdate | ) |
Ensures that the MileageManager updates the mileage on speed update.
This test verifies that the MileageManager updates the mileage on speed update by emitting the mileageUpdated signal.
Definition at line 108 of file test_int_MileageManager.cpp.
TEST_F | ( | MileageManagerTest | , |
UpdateTimerInterval | ) |
Ensures that the MileageManager updates the timer interval.
This test verifies that the MileageManager updates the timer interval by emitting the mileageUpdated signal.
Definition at line 146 of file test_int_MileageManager.cpp.