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

Class to test the integration between the CanBusManager and the MCP2515 controller. More...

Protected Member Functions

void SetUp () override
 
void TearDown () override
 
void SetUp () override
 Set up the test environment.
 
void TearDown () override
 Tear down the test environment.
 

Static Protected Member Functions

static void SetUpTestSuite ()
 
static void TearDownTestSuite ()
 

Protected Attributes

CanBusManagercanBusManager
 
IMCP2515Controllercontroller
 
IMCP2515ControllermockMcpController
 Mocked MCP2515 controller.
 
CanBusManagermanager
 CanBusManager object.
 

Static Protected Attributes

static QCoreApplication * app = nullptr
 Initialize static member.
 

Detailed Description

Class to test the integration between the CanBusManager and the MCP2515 controller.

Test fixture for testing the CanBusManager class.

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

Definition at line 27 of file test_int_CanBusManager.cpp.

Member Function Documentation

◆ SetUp() [1/2]

void CanBusManagerTest::SetUp ( )
inlineoverrideprotected

Definition at line 43 of file test_int_CanBusManager.cpp.

◆ SetUp() [2/2]

void CanBusManagerTest::SetUp ( )
inlineoverrideprotected

Set up the test environment.

This method is called before each test to set up the necessary objects.

Definition at line 41 of file test_CanBusManager.cpp.

◆ SetUpTestSuite()

static void CanBusManagerTest::SetUpTestSuite ( )
inlinestaticprotected

Definition at line 34 of file test_int_CanBusManager.cpp.

◆ TearDown() [1/2]

void CanBusManagerTest::TearDown ( )
inlineoverrideprotected

Definition at line 52 of file test_int_CanBusManager.cpp.

◆ TearDown() [2/2]

void CanBusManagerTest::TearDown ( )
inlineoverrideprotected

Tear down the test environment.

This method is called after each test to clean up the objects created in SetUp().

Definition at line 52 of file test_CanBusManager.cpp.

◆ TearDownTestSuite()

static void CanBusManagerTest::TearDownTestSuite ( )
inlinestaticprotected

Definition at line 41 of file test_int_CanBusManager.cpp.

Field Documentation

◆ app

QCoreApplication * CanBusManagerTest::app = nullptr
staticprotected

Initialize static member.

Definition at line 30 of file test_int_CanBusManager.cpp.

◆ canBusManager

CanBusManager* CanBusManagerTest::canBusManager
protected

Definition at line 31 of file test_int_CanBusManager.cpp.

◆ controller

IMCP2515Controller* CanBusManagerTest::controller
protected

Definition at line 32 of file test_int_CanBusManager.cpp.

◆ manager

CanBusManager* CanBusManagerTest::manager
protected

CanBusManager object.

Definition at line 64 of file test_CanBusManager.cpp.

◆ mockMcpController

IMCP2515Controller* CanBusManagerTest::mockMcpController
protected

Mocked MCP2515 controller.

Definition at line 62 of file test_CanBusManager.cpp.


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