/// @brief Manually construct the event and state dictionaries.
/// This allows testing without running startModel.
- void initDictionaires() {
+ void initDictionaries() {
ASSERT_NO_THROW(defineEvents());
ASSERT_NO_THROW(verifyEvents());
ASSERT_NO_THROW(defineStates());
/// a normal conclusion.
TEST_F(StateModelTest, transitionWithEnd) {
// Init dictionaries manually, normally done by startModel.
- initDictionaires();
+ initDictionaries();
// call transition to move from NEW_ST to DUMMY_ST with START_EVT
EXPECT_NO_THROW(transition(DUMMY_ST, START_EVT));
/// failed conclusion.
TEST_F(StateModelTest, transitionWithAbort) {
// Init dictionaries manually, normally done by startModel.
- initDictionaires();
+ initDictionaries();
// call transition to move from NEW_ST to DUMMY_ST with START_EVT
EXPECT_NO_THROW(transition(DUMMY_ST, START_EVT));
/// work properly.
TEST_F(StateModelTest, doFlags) {
// Init dictionaries manually, normally done by startModel.
- initDictionaires();
+ initDictionaries();
// Verify that "do" flags are false.
EXPECT_FALSE(doOnEntry());
/// the model is running but not after.
TEST_F(StateModelTest, statusMethods) {
// Init dictionaries manually, normally done by startModel.
- initDictionaires();
+ initDictionaries();
// After construction, state model is "new", all others should be false.
EXPECT_TRUE(isModelNew());