rad 6.2.0
Loading...
Searching...
No Matches
Classes | Functions
TestExecutor.cpp File Reference

Unit tests for the Executor class. More...

#include <scxml4cpp/Context.h>
#include <scxml4cpp/Executor.h>
#include <scxml4cpp/Helper.h>
#include <scxml4cpp/StateMachine.h>
#include <scxml4cpp/State.h>
#include <scxml4cpp/Activity.h>
#include <scxml4cpp/Action.h>
#include <scxml4cpp/Event.h>
#include <scxml4cpp/Transition.h>
#include <scxml4cpp/StatusListener.h>
#include <gtest/gtest.h>
#include <set>
#include <list>

Classes

class  TestExecutorAction
 
class  TestExecutorStatusListener
 
class  TestExecutor
 

Functions

 TEST_F (TestExecutor, twoStates)
 
 TEST_F (TestExecutor, entryExitActions)
 
 TEST_F (TestExecutor, notifyStatus)
 
 TEST_F (TestExecutor, stateOrder)
 
 TEST_F (TestExecutor, parallelInitialStates)
 
 TEST_F (TestExecutor, parallelInitialStates2)
 

Detailed Description

Unit tests for the Executor class.

Function Documentation

◆ TEST_F() [1/6]

TEST_F ( TestExecutor ,
entryExitActions  )

This test verifies that, for hierarchical SM with atomic and compound states, after each transition:

  • the current state configuration is correct
  • the entry/exit actions have been invoked the correct number of times.

◆ TEST_F() [2/6]

TEST_F ( TestExecutor ,
notifyStatus  )

This test verifies the traces of the entered states for an hierarchical SM with atomic and compound states.

Note that through the traces it is possible to verify whether the SCXML document order (the order in which states and substates are defined in the model which correspond to the order of "adding" states and substates) is respected.

◆ TEST_F() [3/6]

TEST_F ( TestExecutor ,
parallelInitialStates  )

◆ TEST_F() [4/6]

TEST_F ( TestExecutor ,
parallelInitialStates2  )

◆ TEST_F() [5/6]

TEST_F ( TestExecutor ,
stateOrder  )

◆ TEST_F() [6/6]

TEST_F ( TestExecutor ,
twoStates  )

This test verifies that, for a simple 2 states SM, after each transition:

  • the current state configuration is correct
  • the entry/exit/transition actions have been invoked the correct number of times.