Hotwheels-Cluster 1.2
Creation of Cluster APP for SEA:ME project.
 
Loading...
Searching...
No Matches
MileageManagerTest Class Reference

Class to test the integration between the MileageManager and the MileageCalculator and MileageFileHandler. More...

Protected Member Functions

void SetUp () override
 
void TearDown () override
 
void SetUp () override
 
void TearDown () override
 

Static Protected Member Functions

static void SetUpTestSuite ()
 
static void TearDownTestSuite ()
 

Protected Attributes

MileageManagermileageManager
 
IMileageCalculatorcalculator
 
IMileageFileHandlerfileHandler
 
NiceMock< MockMileageCalculatormockCalculator
 
NiceMock< MockMileageFileHandlermockFileHandler
 
QString testFilePath = "test_mileage.txt"
 

Static Protected Attributes

static QCoreApplication * app = nullptr
 Initialize static member.
 

Detailed Description

Class to test the integration between the MileageManager and the MileageCalculator and MileageFileHandler.

Test fixture for testing the MileageManager class.

This class sets up the necessary objects and provides setup and teardown methods for each test.

Definition at line 27 of file test_int_MileageManager.cpp.

Member Function Documentation

◆ SetUp() [1/2]

void MileageManagerTest::SetUp ( )
inlineoverrideprotected

Definition at line 44 of file test_int_MileageManager.cpp.

◆ SetUp() [2/2]

void MileageManagerTest::SetUp ( )
inlineoverrideprotected

Definition at line 42 of file test_MileageManager.cpp.

◆ SetUpTestSuite()

static void MileageManagerTest::SetUpTestSuite ( )
inlinestaticprotected

Definition at line 35 of file test_int_MileageManager.cpp.

◆ TearDown() [1/2]

void MileageManagerTest::TearDown ( )
inlineoverrideprotected

Definition at line 53 of file test_int_MileageManager.cpp.

◆ TearDown() [2/2]

void MileageManagerTest::TearDown ( )
inlineoverrideprotected

Definition at line 47 of file test_MileageManager.cpp.

◆ TearDownTestSuite()

static void MileageManagerTest::TearDownTestSuite ( )
inlinestaticprotected

Definition at line 42 of file test_int_MileageManager.cpp.

Field Documentation

◆ app

QCoreApplication * MileageManagerTest::app = nullptr
staticprotected

Initialize static member.

Definition at line 30 of file test_int_MileageManager.cpp.

◆ calculator

IMileageCalculator* MileageManagerTest::calculator
protected

Definition at line 32 of file test_int_MileageManager.cpp.

◆ fileHandler

IMileageFileHandler* MileageManagerTest::fileHandler
protected

Definition at line 33 of file test_int_MileageManager.cpp.

◆ mileageManager

MileageManager * MileageManagerTest::mileageManager
protected

Definition at line 31 of file test_int_MileageManager.cpp.

◆ mockCalculator

NiceMock<MockMileageCalculator> MileageManagerTest::mockCalculator
protected

Definition at line 37 of file test_MileageManager.cpp.

◆ mockFileHandler

NiceMock<MockMileageFileHandler> MileageManagerTest::mockFileHandler
protected

Definition at line 38 of file test_MileageManager.cpp.

◆ testFilePath

QString MileageManagerTest::testFilePath = "test_mileage.txt"
protected

Definition at line 39 of file test_MileageManager.cpp.


The documentation for this class was generated from the following files: