Skip to main content

WithActionBehavior Class Template

Declaration

template <class BehaviorT, class ClientInterfaceT>
class moveit_pro::test_utils::WithActionBehavior<BehaviorT, ClientInterfaceT> { ... }

Included Headers

#include <test_behavior.hpp>

Base class

classWithBehavior<BehaviorT>

Adds testing capabilities of Behaviors with context to any test fixture. More...

Public Member Functions Index

template <class BehaviorT, class ClientInterfaceT>
voidinitBehavior (const std::string &name, PortSetterMapGenerator input_port_setter_generator, PortSetterMapGenerator output_port_setter_generator, std::unique_ptr< ClientInterfaceT > &&client_interface)

Initializes the Behavior under test with a client interface. More...

Definition at line 184 of file test_behavior.hpp.

Public Member Functions

initBehavior()

template <class BehaviorT, class ClientInterfaceT>
void moveit_pro::test_utils::WithActionBehavior< BehaviorT, ClientInterfaceT >::initBehavior (const std::string & name, PortSetterMapGenerator input_port_setter_generator, PortSetterMapGenerator output_port_setter_generator, std::unique_ptr< ClientInterfaceT > && client_interface)

Initializes the Behavior under test with a client interface.

Call this function in your fixture's constructor, SetUp() or any of its setUp* variations.

Parameters
name

The name of the Behavior.

input_port_setter_generator

A port setter map generator defining the expected input ports.

output_port_setter_generator

A port setter map generator defining the expected output ports.

client_interface

Interface to an action client.

Exceptions
<a href="/api/classes/moveit-pro/test-utils/wrongbehaviorportsexception">WrongBehaviorPortsException</a>

if the Behavior does not define exactly the expected ports.

Declaration at line 196 of file test_behavior.hpp, definition at line 167 of file test_behavior_impl.hpp.


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


Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.