35 "01 Check if file can be loaded");
47 smc->
GetStartState()->GetTransition(
"StdMouseNotMove",
"no1");
50 st2->GetTransition(
"MouseMoveEvent",
"no1");
51 typedef std::vector<mitk::StateMachineAction::Pointer> ActionCollectionType;
52 ActionCollectionType actions = s3->GetActions();
54 ActionCollectionType::iterator it = actions.begin();
55 std::string action1 = (*it)->GetActionName();
57 std::string action2 = (*it)->GetActionName();
63 s1.IsNotNull() && s2.IsNull() && st2->GetName() ==
"STATE2" && action1 ==
"doaction7" && action2 ==
"doaction2" &&
64 (it == actions.end()),
65 "03 Check if transitions and Action identifier work. \n Expected STATE2 , doaction7, doction2 got:\n"
bool LoadBehavior(const std::string &fileName, const us::Module *module)
Loads XML resource.
#define MITK_TEST_CONDITION_REQUIRED(COND, MSG)
section GeneralTestsDeprecatedOldTestingStyle Deprecated macros All tests with MITK_TEST_BEGIN()
int mitkStateMachineContainerTest(int, char *[])
StateMachineState::Pointer GetStartState() const
Returns the StartState of the StateMachine.
static StateMachineContainer * New()