Public Member Functions | Protected Attributes | List of all members
prbt_hardware_support::ModbusAdapterOperationModeTest Class Reference

Test fixture for unit-tests of the ModbusAdapterOperationMode. More...

Inheritance diagram for prbt_hardware_support::ModbusAdapterOperationModeTest:
Inheritance graph
[legend]

Public Member Functions

 ModbusAdapterOperationModeTest ()
 
 ~ModbusAdapterOperationModeTest () override
 

Protected Attributes

std::shared_ptr< ModbusAdapterOperationModeadapter_operation_mode_
 
ros::Publisher modbus_topic_pub_
 
ros::NodeHandle nh_
 
ros::ServiceClient operation_mode_client_
 
ros::AsyncSpinner spinner_ {2}
 
StrictMock< OperationModeSubscriberMocksubscriber_
 

Detailed Description

Test fixture for unit-tests of the ModbusAdapterOperationMode.

Publish messages on the modbus topic and check on the operation_mode topic if the expectations are met.

Definition at line 81 of file unittest_modbus_adapter_operation_mode.cpp.

Constructor & Destructor Documentation

◆ ModbusAdapterOperationModeTest()

prbt_hardware_support::ModbusAdapterOperationModeTest::ModbusAdapterOperationModeTest ( )

Definition at line 96 of file unittest_modbus_adapter_operation_mode.cpp.

◆ ~ModbusAdapterOperationModeTest()

prbt_hardware_support::ModbusAdapterOperationModeTest::~ModbusAdapterOperationModeTest ( )
override

Definition at line 111 of file unittest_modbus_adapter_operation_mode.cpp.

Member Data Documentation

◆ adapter_operation_mode_

std::shared_ptr<ModbusAdapterOperationMode> prbt_hardware_support::ModbusAdapterOperationModeTest::adapter_operation_mode_
protected

Definition at line 90 of file unittest_modbus_adapter_operation_mode.cpp.

◆ modbus_topic_pub_

ros::Publisher prbt_hardware_support::ModbusAdapterOperationModeTest::modbus_topic_pub_
protected

Definition at line 91 of file unittest_modbus_adapter_operation_mode.cpp.

◆ nh_

ros::NodeHandle prbt_hardware_support::ModbusAdapterOperationModeTest::nh_
protected

Definition at line 89 of file unittest_modbus_adapter_operation_mode.cpp.

◆ operation_mode_client_

ros::ServiceClient prbt_hardware_support::ModbusAdapterOperationModeTest::operation_mode_client_
protected

Definition at line 92 of file unittest_modbus_adapter_operation_mode.cpp.

◆ spinner_

ros::AsyncSpinner prbt_hardware_support::ModbusAdapterOperationModeTest::spinner_ {2}
protected

Definition at line 88 of file unittest_modbus_adapter_operation_mode.cpp.

◆ subscriber_

StrictMock<OperationModeSubscriberMock> prbt_hardware_support::ModbusAdapterOperationModeTest::subscriber_
protected

Definition at line 93 of file unittest_modbus_adapter_operation_mode.cpp.


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


prbt_hardware_support
Author(s):
autogenerated on Tue Feb 25 2020 03:19:31