Browse Source

Added test cases for: Transition into substate does not recognize parents history context (Fixes issue 33)

terfloth@itemis.de 10 years ago
parent
commit
9796683961
100 changed files with 2642 additions and 2562 deletions
  1. 5 2
      test-plugins/org.yakindu.sct.generator.cpp.test/all C++ generator tests.launch
  2. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/AlwaysOncycleTest/AlwaysOncycle.sgen
  3. 33 33
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/AlwaysOncycleTest/AlwaysOncycleTest.cc
  4. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/AssignmentAsExpressionTest/AssignmentAsExpression.sgen
  5. 49 49
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/AssignmentAsExpressionTest/AssignmentAsExpressionTest.cc
  6. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/BitExpressionsTest/BitExpressions.sgen
  7. 32 32
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/BitExpressionsTest/BitExpressionsTest.cc
  8. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/BooleanExpressionsTest/BooleanExpressions.sgen
  9. 31 31
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/BooleanExpressionsTest/BooleanExpressionsTest.cc
  10. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/CKeywordsTest/CKeywords.sgen
  11. 26 26
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/CKeywordsTest/CKeywordsTest.cc
  12. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/CastExpressionsTest/CastExpressions.sgen
  13. 27 27
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/CastExpressionsTest/CastExpressionsTest.cc
  14. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ChoiceTest/Choice.sgen
  15. 91 91
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ChoiceTest/ChoiceTest.cc
  16. 26 26
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ConditionalExpressionTest/ConditionalExpressionTest.cc
  17. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ConditionalExpressionTest/ConditionalExpressions.sgen
  18. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/DeclarationsTest/Declarations.sgen
  19. 20 20
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/DeclarationsTest/DeclarationsTest.cc
  20. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/DeepEntryTest/DeepEntry.sgen
  21. 36 36
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/DeepEntryTest/DeepEntryTest.cc
  22. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/DeepHistoryTest/DeepHistory.sgen
  23. 38 38
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/DeepHistoryTest/DeepHistoryTest.cc
  24. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/DynamicChoiceTest/DynamicChoice.sgen
  25. 23 23
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/DynamicChoiceTest/DynamicChoiceTest.cc
  26. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/EnterStateTest/EnterState.sgen
  27. 44 44
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/EnterStateTest/EnterStateTest.cc
  28. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/EntryChoiceTest/EntryChoice.sgen
  29. 23 23
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/EntryChoiceTest/EntryChoiceTest.cc
  30. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/EntryExitSelfTransitionTest/EntryExitSelfTransition.sgen
  31. 48 48
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/EntryExitSelfTransitionTest/EntryExitSelfTransitionTest.cc
  32. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ExitOnSelfTransitionTest/ExitOnSelfTransition.sgen
  33. 31 31
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ExitOnSelfTransitionTest/ExitOnSelfTransitionTest.cc
  34. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ExitStateTest/ExitState.sgen
  35. 53 53
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ExitStateTest/ExitStateTest.cc
  36. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/FeatureCallsTest/FeatureCalls.sgen
  37. 23 23
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/FeatureCallsTest/FeatureCallsTest.cc
  38. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/GuardTest/Guard.sgen
  39. 36 36
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/GuardTest/GuardTest.cc
  40. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/GuardedEntryTest/GuardedEntry.sgen
  41. 64 64
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/GuardedEntryTest/GuardedEntryTest.cc
  42. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/GuardedExitTest/GuardedExit.sgen
  43. 38 38
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/GuardedExitTest/GuardedExitTest.cc
  44. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/HistoryWithExitPointTest/HistoryWithExitPoint.sgen
  45. 36 36
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/HistoryWithExitPointTest/HistoryWithExitPointTest.cc
  46. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/HistoryWithoutInitialStepTest/HistoryWithoutInitialStep.sgen
  47. 61 61
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/HistoryWithoutInitialStepTest/HistoryWithoutInitialStepTest.cc
  48. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/InEventLifeCycleTest/InEventLifeCycle.sgen
  49. 24 24
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/InEventLifeCycleTest/InEventLifeCycleTest.cc
  50. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/IntegerExpressionsTest/IntegerExpressions.sgen
  51. 42 42
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/IntegerExpressionsTest/IntegerExpressionsTest.cc
  52. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/InternalEventLifeCycleTest/InternalEventLifeCycle.sgen
  53. 36 36
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/InternalEventLifeCycleTest/InternalEventLifeCycleTest.cc
  54. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/LocalReactionsTest/LocalReactions.sgen
  55. 23 23
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/LocalReactionsTest/LocalReactionsTest.cc
  56. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/LogicalAndTestsTest/LogicalAnd.sgen
  57. 22 22
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/LogicalAndTestsTest/LogicalAndTestsTest.cc
  58. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/LogicalOrTestsTest/LogicalOr.sgen
  59. 22 22
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/LogicalOrTestsTest/LogicalOrTestsTest.cc
  60. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/NamedInterfaceAccessTest/NamedInterfaceAccess.sgen
  61. 28 28
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/NamedInterfaceAccessTest/NamedInterfaceAccessTest.cc
  62. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/NullCheckTest/NullCheck.sgen
  63. 23 23
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/NullCheckTest/NullCheckTest.cc
  64. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/OutEventLifeCycleTest/OutEventLifeCycle.sgen
  65. 52 52
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/OutEventLifeCycleTest/OutEventLifeCycleTest.cc
  66. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ParenthesisTest/Parenthesis.sgen
  67. 22 22
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ParenthesisTest/ParenthesisTest.cc
  68. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/PriorityValuesTest/PriorityValues.sgen
  69. 35 35
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/PriorityValuesTest/PriorityValuesTest.cc
  70. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/RaiseEventTest/RaiseEvent.sgen
  71. 27 27
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/RaiseEventTest/RaiseEventTest.cc
  72. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/STextKeywordsInStatesAndRegionsTest/STextKeywordsInStatesAndRegions.sgen
  73. 480 480
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/STextKeywordsInStatesAndRegionsTest/STextKeywordsInStatesAndRegionsTest.cc
  74. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/SameNameDifferentRegionTest/SameNameDifferentRegion.sgen
  75. 29 29
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/SameNameDifferentRegionTest/SameNameDifferentRegionTest.cc
  76. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ShallowHistoryTest/ShallowHistory.sgen
  77. 50 50
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ShallowHistoryTest/ShallowHistoryTest.cc
  78. 8 0
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ShallowHistoryWithDeepEntryTest/ShallowHistoryWithDeepEntry.sgen
  79. 69 0
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ShallowHistoryWithDeepEntryTest/ShallowHistoryWithDeepEntryTest.cc
  80. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/SimpleEventTest/SimpleEvent.sgen
  81. 27 27
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/SimpleEventTest/SimpleEventTest.cc
  82. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/SimpleHierachyTest/SimpleHierachy.sgen
  83. 27 27
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/SimpleHierachyTest/SimpleHierachyTest.cc
  84. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/StateIsActiveTest/StateIsActive.sgen
  85. 27 27
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/StateIsActiveTest/StateIsActiveTest.cc
  86. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/StatechartLocalReactionsTest/StatechartLocalReactions.sgen
  87. 32 32
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/StatechartLocalReactionsTest/StatechartLocalReactionsTest.cc
  88. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/StaticChoiceTest/StaticChoice.sgen
  89. 22 22
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/StaticChoiceTest/StaticChoiceTest.cc
  90. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/StringExpressionsTest/StringExpressions.sgen
  91. 51 51
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/StringExpressionsTest/StringExpressionsTest.cc
  92. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/SyncForkTest/SyncFork.sgen
  93. 39 39
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/SyncForkTest/SyncForkTest.cc
  94. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/SyncJoinTest/SyncJoin.sgen
  95. 100 100
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/SyncJoinTest/SyncJoinTest.cc
  96. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/TimedTransitionsTest/TimedTransitions.sgen
  97. 24 24
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/TimedTransitionsTest/TimedTransitionsTest.cc
  98. 8 8
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/TransitionWithoutConditionTest/TransitionWithoutCondition.sgen
  99. 23 23
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/TransitionWithoutConditionTest/TransitionWithoutConditionTest.cc
  100. 0 0
      test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ValuedEventsTest/ValuedEvents.sgen

+ 5 - 2
test-plugins/org.yakindu.sct.generator.cpp.test/all C++ generator tests.launch

@@ -14,11 +14,14 @@
 <booleanAttribute key="includeOptional" value="true"/>
 <stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
 <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
-<listEntry value="/org.yakindu.sct.generator.cpp.test/src/org/yakindu/sct/generator/cpp/test/AllTestsTestCustom.java"/>
+<listEntry value="/org.yakindu.sct.generator.cpp.test/test-gen/org/yakindu/sct/generator/cpp/test/AllTestsTest.java"/>
 </listAttribute>
 <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
 <listEntry value="1"/>
 </listAttribute>
+<mapAttribute key="org.eclipse.debug.core.environmentVariables">
+<mapEntry key="GTEST_DIR" value="/Users/terfloth/Tools/gtest-1.7.0-bin"/>
+</mapAttribute>
 <listAttribute key="org.eclipse.debug.ui.favoriteGroups">
 <listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
 </listAttribute>
@@ -28,7 +31,7 @@
 <stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
 <booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
 <stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
-<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.yakindu.sct.generator.cpp.test.AllTestsTestCustom"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.yakindu.sct.generator.cpp.test.AllTestsTest"/>
 <stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
 <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.yakindu.sct.generator.cpp.test"/>
 <stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/AlwaysOncycleTest/AlwaysOncycle.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart AlwaysOncycle {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "AlwaysOncycleTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart AlwaysOncycle {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "AlwaysOncycleTest"
+		}
+	}
+}

+ 33 - 33
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/AlwaysOncycleTest/AlwaysOncycleTest.cc

@@ -1,33 +1,33 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "AlwaysOncycle.h"
-
-TEST(StatemachineTest, alwaysOncycleTest) {
-	AlwaysOncycle* statechart = new AlwaysOncycle();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(AlwaysOncycle::main_region_StateA));
-	while (statechart->getDefaultSCI()->get_value()< 5) {
-		statechart->runCycle();
-		EXPECT_TRUE(statechart->isActive(AlwaysOncycle::main_region_StateA));
-	}
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(AlwaysOncycle::main_region_StateB));
-	while (statechart->getDefaultSCI()->get_value()< 5) {
-		statechart->runCycle();
-		EXPECT_TRUE(statechart->isActive(AlwaysOncycle::main_region_StateB));
-	}
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(AlwaysOncycle::main_region_StateA));
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "AlwaysOncycle.h"
+
+TEST(StatemachineTest, alwaysOncycleTest) {
+	AlwaysOncycle* statechart = new AlwaysOncycle();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(AlwaysOncycle::main_region_StateA));
+	while (statechart->getDefaultSCI()->get_value()< 5) {
+		statechart->runCycle();
+		EXPECT_TRUE(statechart->isActive(AlwaysOncycle::main_region_StateA));
+	}
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(AlwaysOncycle::main_region_StateB));
+	while (statechart->getDefaultSCI()->get_value()< 5) {
+		statechart->runCycle();
+		EXPECT_TRUE(statechart->isActive(AlwaysOncycle::main_region_StateB));
+	}
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(AlwaysOncycle::main_region_StateA));
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/AssignmentAsExpressionTest/AssignmentAsExpression.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart AssignmentAsExpression {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "AssignmentAsExpressionTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart AssignmentAsExpression {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "AssignmentAsExpressionTest"
+		}
+	}
+}

+ 49 - 49
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/AssignmentAsExpressionTest/AssignmentAsExpressionTest.cc

@@ -1,49 +1,49 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "AssignmentAsExpression.h"
-
-TEST(StatemachineTest, simpleAssignment) {
-	AssignmentAsExpression* statechart = new AssignmentAsExpression();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(AssignmentAsExpression::main_region_Add));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_b()== 5);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_a()== 9);
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(AssignmentAsExpression::main_region_Subtract));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_d()== 6);
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(AssignmentAsExpression::main_region_Multiply));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_e()== 15);
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(AssignmentAsExpression::main_region_Divide));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_g()== 1);
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(AssignmentAsExpression::main_region_Modulo));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_i()== 1);
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(AssignmentAsExpression::main_region_Shift));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_j()== 16);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_k()== 4);
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(AssignmentAsExpression::main_region_boolean_And));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_l()== 1);
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(AssignmentAsExpression::main_region_boolean_Or));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_p()== 15);
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(AssignmentAsExpression::main_region_boolean_Xor));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_u()== 12);
-	statechart->exit();
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "AssignmentAsExpression.h"
+
+TEST(StatemachineTest, simpleAssignment) {
+	AssignmentAsExpression* statechart = new AssignmentAsExpression();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(AssignmentAsExpression::main_region_Add));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_b()== 5);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_a()== 9);
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(AssignmentAsExpression::main_region_Subtract));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_d()== 6);
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(AssignmentAsExpression::main_region_Multiply));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_e()== 15);
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(AssignmentAsExpression::main_region_Divide));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_g()== 1);
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(AssignmentAsExpression::main_region_Modulo));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_i()== 1);
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(AssignmentAsExpression::main_region_Shift));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_j()== 16);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_k()== 4);
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(AssignmentAsExpression::main_region_boolean_And));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_l()== 1);
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(AssignmentAsExpression::main_region_boolean_Or));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_p()== 15);
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(AssignmentAsExpression::main_region_boolean_Xor));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_u()== 12);
+	statechart->exit();
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/BitExpressionsTest/BitExpressions.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart BitExpressions {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "BitExpressionsTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart BitExpressions {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "BitExpressionsTest"
+		}
+	}
+}

+ 32 - 32
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/BitExpressionsTest/BitExpressionsTest.cc

@@ -1,32 +1,32 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "BitExpressions.h"
-
-TEST(StatemachineTest, BitExpressions) {
-	BitExpressions* statechart = new BitExpressions();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(BitExpressions::main_region_StateA));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_myBit1()== 5);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_myBit2()== 7);
-	statechart->raise_e1();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(BitExpressions::main_region_StateB));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_leftBitshift()== 10);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_rightBitshift()== 2);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_complementBitshift()== - 6 );
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_bitwiseAnd()== 5);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_bitwiseOr()== 7);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_bitwiseXor()== 2);
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "BitExpressions.h"
+
+TEST(StatemachineTest, BitExpressions) {
+	BitExpressions* statechart = new BitExpressions();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(BitExpressions::main_region_StateA));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_myBit1()== 5);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_myBit2()== 7);
+	statechart->raise_e1();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(BitExpressions::main_region_StateB));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_leftBitshift()== 10);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_rightBitshift()== 2);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_complementBitshift()== - 6 );
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_bitwiseAnd()== 5);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_bitwiseOr()== 7);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_bitwiseXor()== 2);
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/BooleanExpressionsTest/BooleanExpressions.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart BooleanExpressions {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "BooleanExpressionsTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart BooleanExpressions {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "BooleanExpressionsTest"
+		}
+	}
+}

+ 31 - 31
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/BooleanExpressionsTest/BooleanExpressionsTest.cc

@@ -1,31 +1,31 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "BooleanExpressions.h"
-
-TEST(StatemachineTest, booleanExpressions) {
-	BooleanExpressions* statechart = new BooleanExpressions();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(BooleanExpressions::main_region_StateA));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_myBool1()== true);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_myBool2()== false);
-	statechart->raise_e1();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(BooleanExpressions::main_region_StateB));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_and()== false);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_or()== true);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_not()== false);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_equal()== false);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_notequal()== true);
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "BooleanExpressions.h"
+
+TEST(StatemachineTest, booleanExpressions) {
+	BooleanExpressions* statechart = new BooleanExpressions();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(BooleanExpressions::main_region_StateA));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_myBool1()== true);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_myBool2()== false);
+	statechart->raise_e1();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(BooleanExpressions::main_region_StateB));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_and()== false);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_or()== true);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_not()== false);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_equal()== false);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_notequal()== true);
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/CKeywordsTest/CKeywords.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart CKeywords {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "CKeywordsTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart CKeywords {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "CKeywordsTest"
+		}
+	}
+}

+ 26 - 26
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/CKeywordsTest/CKeywordsTest.cc

@@ -1,26 +1,26 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "CKeywords.h"
-
-TEST(StatemachineTest, CKeywordsTest) {
-	CKeywords* statechart = new CKeywords();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(CKeywords::auto_char));
-	statechart->raise_auto();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(CKeywords::auto_const));
-	EXPECT_TRUE(statechart->isActive(CKeywords::auto_const_switch_case));
-	EXPECT_TRUE(statechart->isActive(CKeywords::auto_const_switch_case_enum_asm));
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "CKeywords.h"
+
+TEST(StatemachineTest, CKeywordsTest) {
+	CKeywords* statechart = new CKeywords();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(CKeywords::auto_char));
+	statechart->raise_auto();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(CKeywords::auto_const));
+	EXPECT_TRUE(statechart->isActive(CKeywords::auto_const_switch_case));
+	EXPECT_TRUE(statechart->isActive(CKeywords::auto_const_switch_case_enum_asm));
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/CastExpressionsTest/CastExpressions.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart CastExpressions {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "CastExpressionsTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart CastExpressions {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "CastExpressionsTest"
+		}
+	}
+}

+ 27 - 27
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/CastExpressionsTest/CastExpressionsTest.cc

@@ -1,27 +1,27 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "CastExpressions.h"
-
-TEST(StatemachineTest, CastExpressionTest) {
-	CastExpressions* statechart = new CastExpressions();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_realValue()== 5);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_intValue()== 5);
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_realValue()== 15);
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(CastExpressions::main_region_C));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_realValue()== 757);
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "CastExpressions.h"
+
+TEST(StatemachineTest, CastExpressionTest) {
+	CastExpressions* statechart = new CastExpressions();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_realValue()== 5);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_intValue()== 5);
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_realValue()== 15);
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(CastExpressions::main_region_C));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_realValue()== 757);
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ChoiceTest/Choice.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart Choice {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "ChoiceTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart Choice {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "ChoiceTest"
+		}
+	}
+}

+ 91 - 91
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ChoiceTest/ChoiceTest.cc

@@ -1,91 +1,91 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "Choice.h"
-
-TEST(StatemachineTest, elseChoiceUsingNonDefaultTransition) {
-	Choice* statechart = new Choice();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(Choice::main_region_A));
-	statechart->getDefaultSCI()->set_c(true);
-	statechart->raise_e();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(Choice::main_region_C));
-	delete statechart;
-}
-TEST(StatemachineTest, elseChoiceUsingDefaultTransition) {
-	Choice* statechart = new Choice();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(Choice::main_region_A));
-	statechart->getDefaultSCI()->set_c(false);
-	statechart->raise_e();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(Choice::main_region_B));
-	delete statechart;
-}
-TEST(StatemachineTest, defaultChoiceUsingNonDefaultTransition) {
-	Choice* statechart = new Choice();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(Choice::main_region_A));
-	statechart->getDefaultSCI()->set_c(true);
-	statechart->raise_g();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(Choice::main_region_C));
-	delete statechart;
-}
-TEST(StatemachineTest, defaultChoiceUsingDefaultTransition) {
-	Choice* statechart = new Choice();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(Choice::main_region_A));
-	statechart->getDefaultSCI()->set_c(false);
-	statechart->raise_g();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(Choice::main_region_B));
-	delete statechart;
-}
-TEST(StatemachineTest, uncheckedChoiceUsingNonDefaultTransition) {
-	Choice* statechart = new Choice();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(Choice::main_region_A));
-	statechart->getDefaultSCI()->set_c(true);
-	statechart->raise_f();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(Choice::main_region_C));
-	delete statechart;
-}
-TEST(StatemachineTest, uncheckedChoiceUsingDefaultTransition) {
-	Choice* statechart = new Choice();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(Choice::main_region_A));
-	statechart->getDefaultSCI()->set_c(false);
-	statechart->raise_f();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(Choice::main_region_B));
-	delete statechart;
-}
-TEST(StatemachineTest, alwaysTrueTransitionInChoice) {
-	Choice* statechart = new Choice();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(Choice::main_region_A));
-	statechart->getDefaultSCI()->set_c(true);
-	statechart->raise_h();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(Choice::main_region_C));
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "Choice.h"
+
+TEST(StatemachineTest, elseChoiceUsingNonDefaultTransition) {
+	Choice* statechart = new Choice();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(Choice::main_region_A));
+	statechart->getDefaultSCI()->set_c(true);
+	statechart->raise_e();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(Choice::main_region_C));
+	delete statechart;
+}
+TEST(StatemachineTest, elseChoiceUsingDefaultTransition) {
+	Choice* statechart = new Choice();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(Choice::main_region_A));
+	statechart->getDefaultSCI()->set_c(false);
+	statechart->raise_e();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(Choice::main_region_B));
+	delete statechart;
+}
+TEST(StatemachineTest, defaultChoiceUsingNonDefaultTransition) {
+	Choice* statechart = new Choice();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(Choice::main_region_A));
+	statechart->getDefaultSCI()->set_c(true);
+	statechart->raise_g();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(Choice::main_region_C));
+	delete statechart;
+}
+TEST(StatemachineTest, defaultChoiceUsingDefaultTransition) {
+	Choice* statechart = new Choice();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(Choice::main_region_A));
+	statechart->getDefaultSCI()->set_c(false);
+	statechart->raise_g();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(Choice::main_region_B));
+	delete statechart;
+}
+TEST(StatemachineTest, uncheckedChoiceUsingNonDefaultTransition) {
+	Choice* statechart = new Choice();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(Choice::main_region_A));
+	statechart->getDefaultSCI()->set_c(true);
+	statechart->raise_f();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(Choice::main_region_C));
+	delete statechart;
+}
+TEST(StatemachineTest, uncheckedChoiceUsingDefaultTransition) {
+	Choice* statechart = new Choice();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(Choice::main_region_A));
+	statechart->getDefaultSCI()->set_c(false);
+	statechart->raise_f();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(Choice::main_region_B));
+	delete statechart;
+}
+TEST(StatemachineTest, alwaysTrueTransitionInChoice) {
+	Choice* statechart = new Choice();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(Choice::main_region_A));
+	statechart->getDefaultSCI()->set_c(true);
+	statechart->raise_h();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(Choice::main_region_C));
+	delete statechart;
+}

+ 26 - 26
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ConditionalExpressionTest/ConditionalExpressionTest.cc

@@ -1,26 +1,26 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "ConditionalExpressions.h"
-
-TEST(StatemachineTest, ConditionalExpressionTest) {
-	ConditionalExpressions* statechart = new ConditionalExpressions();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(ConditionalExpressions::main_region_A));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_condition()== 1);
-	statechart->raise_e();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(ConditionalExpressions::main_region_B));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_condition()== 2);
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "ConditionalExpressions.h"
+
+TEST(StatemachineTest, ConditionalExpressionTest) {
+	ConditionalExpressions* statechart = new ConditionalExpressions();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(ConditionalExpressions::main_region_A));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_condition()== 1);
+	statechart->raise_e();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(ConditionalExpressions::main_region_B));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_condition()== 2);
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ConditionalExpressionTest/ConditionalExpressions.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart ConditionalExpressions {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "ConditionalExpressionTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart ConditionalExpressions {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "ConditionalExpressionTest"
+		}
+	}
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/DeclarationsTest/Declarations.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart Declarations {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "DeclarationsTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart Declarations {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "DeclarationsTest"
+		}
+	}
+}

+ 20 - 20
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/DeclarationsTest/DeclarationsTest.cc

@@ -1,20 +1,20 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "Declarations.h"
-
-TEST(StatemachineTest, declarationsTest) {
-	Declarations* statechart = new Declarations();
-	statechart->init();
-	statechart->enter();
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "Declarations.h"
+
+TEST(StatemachineTest, declarationsTest) {
+	Declarations* statechart = new Declarations();
+	statechart->init();
+	statechart->enter();
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/DeepEntryTest/DeepEntry.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart DeepEntry {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "DeepEntryTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart DeepEntry {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "DeepEntryTest"
+		}
+	}
+}

+ 36 - 36
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/DeepEntryTest/DeepEntryTest.cc

@@ -1,36 +1,36 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "DeepEntry.h"
-
-TEST(StatemachineTest, enterToSubstate) {
-	DeepEntry* statechart = new DeepEntry();
-	statechart->init();
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_x()== 0);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_y()== 0);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_z()== 0);
-	statechart->enter();
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_x()== 1);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_y()== 1);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_z()== 2);
-	statechart->raise_e();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(DeepEntry::r2_B_r_BB));
-	statechart->raise_f();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(DeepEntry::r2_C));
-	statechart->raise_f();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(DeepEntry::r2_B_r_BB));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_y()== 1);
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "DeepEntry.h"
+
+TEST(StatemachineTest, enterToSubstate) {
+	DeepEntry* statechart = new DeepEntry();
+	statechart->init();
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_x()== 0);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_y()== 0);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_z()== 0);
+	statechart->enter();
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_x()== 1);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_y()== 1);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_z()== 2);
+	statechart->raise_e();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(DeepEntry::r2_B_r_BB));
+	statechart->raise_f();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(DeepEntry::r2_C));
+	statechart->raise_f();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(DeepEntry::r2_B_r_BB));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_y()== 1);
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/DeepHistoryTest/DeepHistory.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart DeepHistory {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "DeepHistoryTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart DeepHistory {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "DeepHistoryTest"
+		}
+	}
+}

+ 38 - 38
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/DeepHistoryTest/DeepHistoryTest.cc

@@ -1,38 +1,38 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "DeepHistory.h"
-
-TEST(StatemachineTest, deepHistoryTest) {
-	DeepHistory* statechart = new DeepHistory();
-	statechart->init();
-	statechart->enter();
-	statechart->raise_event1();
-	statechart->runCycle();
-	statechart->raise_event3();
-	statechart->runCycle();
-	statechart->raise_event5();
-	statechart->runCycle();
-	statechart->raise_event7();
-	statechart->runCycle();
-	EXPECT_TRUE(!statechart->isActive(DeepHistory::mainRegion_State1));
-	EXPECT_TRUE(statechart->isActive(DeepHistory::mainRegion_State2__region0_State4__region0_State7__region0_State9));
-	statechart->raise_event2();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(DeepHistory::mainRegion_State1));
-	EXPECT_TRUE(!statechart->isActive(DeepHistory::mainRegion_State2__region0_State4__region0_State7__region0_State9));
-	statechart->raise_event1();
-	statechart->runCycle();
-	EXPECT_TRUE(!statechart->isActive(DeepHistory::mainRegion_State1));
-	EXPECT_TRUE(statechart->isActive(DeepHistory::mainRegion_State2__region0_State4__region0_State7__region0_State9));
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "DeepHistory.h"
+
+TEST(StatemachineTest, deepHistoryTest) {
+	DeepHistory* statechart = new DeepHistory();
+	statechart->init();
+	statechart->enter();
+	statechart->raise_event1();
+	statechart->runCycle();
+	statechart->raise_event3();
+	statechart->runCycle();
+	statechart->raise_event5();
+	statechart->runCycle();
+	statechart->raise_event7();
+	statechart->runCycle();
+	EXPECT_TRUE(!statechart->isActive(DeepHistory::mainRegion_State1));
+	EXPECT_TRUE(statechart->isActive(DeepHistory::mainRegion_State2__region0_State4__region0_State7__region0_State9));
+	statechart->raise_event2();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(DeepHistory::mainRegion_State1));
+	EXPECT_TRUE(!statechart->isActive(DeepHistory::mainRegion_State2__region0_State4__region0_State7__region0_State9));
+	statechart->raise_event1();
+	statechart->runCycle();
+	EXPECT_TRUE(!statechart->isActive(DeepHistory::mainRegion_State1));
+	EXPECT_TRUE(statechart->isActive(DeepHistory::mainRegion_State2__region0_State4__region0_State7__region0_State9));
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/DynamicChoiceTest/DynamicChoice.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart DynamicChoice {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "DynamicChoiceTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart DynamicChoice {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "DynamicChoiceTest"
+		}
+	}
+}

+ 23 - 23
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/DynamicChoiceTest/DynamicChoiceTest.cc

@@ -1,23 +1,23 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "DynamicChoice.h"
-
-TEST(StatemachineTest, DynamicChoiceTest) {
-	DynamicChoice* statechart = new DynamicChoice();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(DynamicChoice::main_region_Start));
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(DynamicChoice::main_region_A));
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "DynamicChoice.h"
+
+TEST(StatemachineTest, DynamicChoiceTest) {
+	DynamicChoice* statechart = new DynamicChoice();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(DynamicChoice::main_region_Start));
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(DynamicChoice::main_region_A));
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/EnterStateTest/EnterState.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart EnterState {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "EnterStateTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart EnterState {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "EnterStateTest"
+		}
+	}
+}

+ 44 - 44
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/EnterStateTest/EnterStateTest.cc

@@ -1,44 +1,44 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "EnterState.h"
-
-TEST(StatemachineTest, defaultEntry) {
-	EnterState* statechart = new EnterState();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(EnterState::r_A));
-	statechart->raise_e();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(EnterState::r_B_r_E));
-	delete statechart;
-}
-TEST(StatemachineTest, namedEntryThroughNamedTransition) {
-	EnterState* statechart = new EnterState();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(EnterState::r_A));
-	statechart->raise_f();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(EnterState::r_B_r_F));
-	delete statechart;
-}
-TEST(StatemachineTest, namedEntryThroughDefaultTransition) {
-	EnterState* statechart = new EnterState();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(EnterState::r_A));
-	statechart->raise_g();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(EnterState::r_B_r_E));
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "EnterState.h"
+
+TEST(StatemachineTest, defaultEntry) {
+	EnterState* statechart = new EnterState();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(EnterState::r_A));
+	statechart->raise_e();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(EnterState::r_B_r_E));
+	delete statechart;
+}
+TEST(StatemachineTest, namedEntryThroughNamedTransition) {
+	EnterState* statechart = new EnterState();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(EnterState::r_A));
+	statechart->raise_f();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(EnterState::r_B_r_F));
+	delete statechart;
+}
+TEST(StatemachineTest, namedEntryThroughDefaultTransition) {
+	EnterState* statechart = new EnterState();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(EnterState::r_A));
+	statechart->raise_g();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(EnterState::r_B_r_E));
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/EntryChoiceTest/EntryChoice.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart EntryChoice {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "EntryChoiceTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart EntryChoice {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "EntryChoiceTest"
+		}
+	}
+}

+ 23 - 23
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/EntryChoiceTest/EntryChoiceTest.cc

@@ -1,23 +1,23 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "EntryChoice.h"
-
-TEST(StatemachineTest, EntryChoiceTest) {
-	EntryChoice* statechart = new EntryChoice();
-	statechart->init();
-	statechart->enter();
-	statechart->runCycle();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(EntryChoice::main_region_A));
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "EntryChoice.h"
+
+TEST(StatemachineTest, EntryChoiceTest) {
+	EntryChoice* statechart = new EntryChoice();
+	statechart->init();
+	statechart->enter();
+	statechart->runCycle();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(EntryChoice::main_region_A));
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/EntryExitSelfTransitionTest/EntryExitSelfTransition.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart EntryExitSelfTransition {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "EntryExitSelfTransitionTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart EntryExitSelfTransition {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "EntryExitSelfTransitionTest"
+		}
+	}
+}

+ 48 - 48
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/EntryExitSelfTransitionTest/EntryExitSelfTransitionTest.cc

@@ -1,48 +1,48 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "EntryExitSelfTransition.h"
-
-TEST(StatemachineTest, SelfTransitionToChildState) {
-	EntryExitSelfTransition* statechart = new EntryExitSelfTransition();
-	statechart->init();
-	statechart->enter();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_entries()== 1);
-	EXPECT_TRUE(statechart->isActive(EntryExitSelfTransition::main_region_A__region0_B));
-	statechart->getDefaultSCI()->set_entries(0);
-	statechart->raise_e();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_entries()== 1);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_exits()== 1);
-	EXPECT_TRUE(statechart->isActive(EntryExitSelfTransition::main_region_A__region0_C));
-	delete statechart;
-}
-TEST(StatemachineTest, SelfTransitionFromChildState) {
-	EntryExitSelfTransition* statechart = new EntryExitSelfTransition();
-	statechart->init();
-	statechart->enter();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_entries()== 1);
-	statechart->getDefaultSCI()->set_entries(0);
-	statechart->raise_e1();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_entries()== 0);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_exits()== 0);
-	EXPECT_TRUE(statechart->isActive(EntryExitSelfTransition::main_region_A__region0_C));
-	statechart->raise_e1();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(EntryExitSelfTransition::main_region_A__region0_B));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_entries()== 1);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_exits()== 1);
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "EntryExitSelfTransition.h"
+
+TEST(StatemachineTest, SelfTransitionToChildState) {
+	EntryExitSelfTransition* statechart = new EntryExitSelfTransition();
+	statechart->init();
+	statechart->enter();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_entries()== 1);
+	EXPECT_TRUE(statechart->isActive(EntryExitSelfTransition::main_region_A__region0_B));
+	statechart->getDefaultSCI()->set_entries(0);
+	statechart->raise_e();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_entries()== 1);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_exits()== 1);
+	EXPECT_TRUE(statechart->isActive(EntryExitSelfTransition::main_region_A__region0_C));
+	delete statechart;
+}
+TEST(StatemachineTest, SelfTransitionFromChildState) {
+	EntryExitSelfTransition* statechart = new EntryExitSelfTransition();
+	statechart->init();
+	statechart->enter();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_entries()== 1);
+	statechart->getDefaultSCI()->set_entries(0);
+	statechart->raise_e1();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_entries()== 0);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_exits()== 0);
+	EXPECT_TRUE(statechart->isActive(EntryExitSelfTransition::main_region_A__region0_C));
+	statechart->raise_e1();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(EntryExitSelfTransition::main_region_A__region0_B));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_entries()== 1);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_exits()== 1);
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ExitOnSelfTransitionTest/ExitOnSelfTransition.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart ExitOnSelfTransition {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "ExitOnSelfTransitionTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart ExitOnSelfTransition {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "ExitOnSelfTransitionTest"
+		}
+	}
+}

+ 31 - 31
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ExitOnSelfTransitionTest/ExitOnSelfTransitionTest.cc

@@ -1,31 +1,31 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "ExitOnSelfTransition.h"
-
-TEST(StatemachineTest, ExitOnSelfTransitionTest) {
-	ExitOnSelfTransition* statechart = new ExitOnSelfTransition();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(ExitOnSelfTransition::main_region_A));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_entryCount()== 1);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_exitCount()== 0);
-	statechart->raise_e();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_entryCount()== 2);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_exitCount()== 1);
-	statechart->raise_f();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_entryCount()== 2);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_exitCount()== 2);
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "ExitOnSelfTransition.h"
+
+TEST(StatemachineTest, ExitOnSelfTransitionTest) {
+	ExitOnSelfTransition* statechart = new ExitOnSelfTransition();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(ExitOnSelfTransition::main_region_A));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_entryCount()== 1);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_exitCount()== 0);
+	statechart->raise_e();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_entryCount()== 2);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_exitCount()== 1);
+	statechart->raise_f();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_entryCount()== 2);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_exitCount()== 2);
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ExitStateTest/ExitState.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart ExitState {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "ExitStateTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart ExitState {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "ExitStateTest"
+		}
+	}
+}

+ 53 - 53
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ExitStateTest/ExitStateTest.cc

@@ -1,53 +1,53 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "ExitState.h"
-
-TEST(StatemachineTest, defaultExit) {
-	ExitState* statechart = new ExitState();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(ExitState::r_A));
-	statechart->raise_e();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(ExitState::r_E));
-	delete statechart;
-}
-TEST(StatemachineTest, namedExitThroughNamedTransition) {
-	ExitState* statechart = new ExitState();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(ExitState::r_A));
-	statechart->raise_f();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(ExitState::r_F));
-	delete statechart;
-}
-TEST(StatemachineTest, namedExitThroughDefaultTransition) {
-	ExitState* statechart = new ExitState();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(ExitState::r_A));
-	statechart->raise_g();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(ExitState::r_E));
-	delete statechart;
-}
-TEST(StatemachineTest, remainInA) {
-	ExitState* statechart = new ExitState();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(ExitState::r_A));
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(ExitState::r_A));
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "ExitState.h"
+
+TEST(StatemachineTest, defaultExit) {
+	ExitState* statechart = new ExitState();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(ExitState::r_A));
+	statechart->raise_e();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(ExitState::r_E));
+	delete statechart;
+}
+TEST(StatemachineTest, namedExitThroughNamedTransition) {
+	ExitState* statechart = new ExitState();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(ExitState::r_A));
+	statechart->raise_f();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(ExitState::r_F));
+	delete statechart;
+}
+TEST(StatemachineTest, namedExitThroughDefaultTransition) {
+	ExitState* statechart = new ExitState();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(ExitState::r_A));
+	statechart->raise_g();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(ExitState::r_E));
+	delete statechart;
+}
+TEST(StatemachineTest, remainInA) {
+	ExitState* statechart = new ExitState();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(ExitState::r_A));
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(ExitState::r_A));
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/FeatureCallsTest/FeatureCalls.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart FeatureCalls {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "FeatureCallsTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart FeatureCalls {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "FeatureCallsTest"
+		}
+	}
+}

+ 23 - 23
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/FeatureCallsTest/FeatureCallsTest.cc

@@ -1,23 +1,23 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "FeatureCalls.h"
-
-TEST(StatemachineTest, FeatureCalls) {
-	FeatureCalls* statechart = new FeatureCalls();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(FeatureCalls::main_region_A));
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(FeatureCalls::main_region_A));
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "FeatureCalls.h"
+
+TEST(StatemachineTest, FeatureCalls) {
+	FeatureCalls* statechart = new FeatureCalls();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(FeatureCalls::main_region_A));
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(FeatureCalls::main_region_A));
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/GuardTest/Guard.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart Guard {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "GuardTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart Guard {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "GuardTest"
+		}
+	}
+}

+ 36 - 36
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/GuardTest/GuardTest.cc

@@ -1,36 +1,36 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "Guard.h"
-
-TEST(StatemachineTest, guardTest) {
-	Guard* statechart = new Guard();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(Guard::main_region_A));
-	statechart->raise_event1();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(Guard::main_region_A));
-	statechart->raise_event2();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(Guard::main_region_B));
-	statechart->raise_return();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(Guard::main_region_A));
-	statechart->raise_event1();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(Guard::main_region_B));
-	statechart->raise_return();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(Guard::main_region_A));
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "Guard.h"
+
+TEST(StatemachineTest, guardTest) {
+	Guard* statechart = new Guard();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(Guard::main_region_A));
+	statechart->raise_event1();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(Guard::main_region_A));
+	statechart->raise_event2();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(Guard::main_region_B));
+	statechart->raise_return();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(Guard::main_region_A));
+	statechart->raise_event1();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(Guard::main_region_B));
+	statechart->raise_return();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(Guard::main_region_A));
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/GuardedEntryTest/GuardedEntry.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart GuardedEntry {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "GuardedEntryTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart GuardedEntry {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "GuardedEntryTest"
+		}
+	}
+}

+ 64 - 64
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/GuardedEntryTest/GuardedEntryTest.cc

@@ -1,64 +1,64 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "GuardedEntry.h"
-
-TEST(StatemachineTest, EntryNotTakenOnStatechartEnter) {
-	GuardedEntry* statechart = new GuardedEntry();
-	statechart->init();
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_guard()== false);
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(GuardedEntry::main_region_A));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_done()== false);
-	delete statechart;
-}
-TEST(StatemachineTest, EntryTakenOnStatechartEnter) {
-	GuardedEntry* statechart = new GuardedEntry();
-	statechart->init();
-	statechart->getDefaultSCI()->set_guard(true);
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(GuardedEntry::main_region_A));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_done()== true);
-	delete statechart;
-}
-TEST(StatemachineTest, EntryTakenInTransition) {
-	GuardedEntry* statechart = new GuardedEntry();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(GuardedEntry::main_region_A));
-	statechart->raise_e();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(GuardedEntry::main_region_B));
-	statechart->getDefaultSCI()->set_guard(true);
-	statechart->getDefaultSCI()->set_done(false);
-	statechart->raise_e();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(GuardedEntry::main_region_A));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_done());
-	delete statechart;
-}
-TEST(StatemachineTest, EntryNotTakenInTransition) {
-	GuardedEntry* statechart = new GuardedEntry();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(GuardedEntry::main_region_A));
-	statechart->raise_e();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(GuardedEntry::main_region_B));
-	statechart->getDefaultSCI()->set_guard(false);
-	statechart->getDefaultSCI()->set_done(false);
-	statechart->raise_e();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(GuardedEntry::main_region_A));
-	EXPECT_TRUE(!statechart->getDefaultSCI()->get_done());
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "GuardedEntry.h"
+
+TEST(StatemachineTest, EntryNotTakenOnStatechartEnter) {
+	GuardedEntry* statechart = new GuardedEntry();
+	statechart->init();
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_guard()== false);
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(GuardedEntry::main_region_A));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_done()== false);
+	delete statechart;
+}
+TEST(StatemachineTest, EntryTakenOnStatechartEnter) {
+	GuardedEntry* statechart = new GuardedEntry();
+	statechart->init();
+	statechart->getDefaultSCI()->set_guard(true);
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(GuardedEntry::main_region_A));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_done()== true);
+	delete statechart;
+}
+TEST(StatemachineTest, EntryTakenInTransition) {
+	GuardedEntry* statechart = new GuardedEntry();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(GuardedEntry::main_region_A));
+	statechart->raise_e();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(GuardedEntry::main_region_B));
+	statechart->getDefaultSCI()->set_guard(true);
+	statechart->getDefaultSCI()->set_done(false);
+	statechart->raise_e();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(GuardedEntry::main_region_A));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_done());
+	delete statechart;
+}
+TEST(StatemachineTest, EntryNotTakenInTransition) {
+	GuardedEntry* statechart = new GuardedEntry();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(GuardedEntry::main_region_A));
+	statechart->raise_e();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(GuardedEntry::main_region_B));
+	statechart->getDefaultSCI()->set_guard(false);
+	statechart->getDefaultSCI()->set_done(false);
+	statechart->raise_e();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(GuardedEntry::main_region_A));
+	EXPECT_TRUE(!statechart->getDefaultSCI()->get_done());
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/GuardedExitTest/GuardedExit.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart GuardedExit {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "GuardedExitTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart GuardedExit {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "GuardedExitTest"
+		}
+	}
+}

+ 38 - 38
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/GuardedExitTest/GuardedExitTest.cc

@@ -1,38 +1,38 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "GuardedExit.h"
-
-TEST(StatemachineTest, ExitTaken) {
-	GuardedExit* statechart = new GuardedExit();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(GuardedExit::main_region_A));
-	EXPECT_TRUE(!statechart->getDefaultSCI()->get_guard());
-	statechart->raise_e();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(GuardedExit::main_region_B));
-	EXPECT_TRUE(!statechart->getDefaultSCI()->get_done());
-	delete statechart;
-}
-TEST(StatemachineTest, ExitNotTaken) {
-	GuardedExit* statechart = new GuardedExit();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(GuardedExit::main_region_A));
-	statechart->getDefaultSCI()->set_guard(true);
-	statechart->raise_e();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(GuardedExit::main_region_B));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_done());
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "GuardedExit.h"
+
+TEST(StatemachineTest, ExitTaken) {
+	GuardedExit* statechart = new GuardedExit();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(GuardedExit::main_region_A));
+	EXPECT_TRUE(!statechart->getDefaultSCI()->get_guard());
+	statechart->raise_e();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(GuardedExit::main_region_B));
+	EXPECT_TRUE(!statechart->getDefaultSCI()->get_done());
+	delete statechart;
+}
+TEST(StatemachineTest, ExitNotTaken) {
+	GuardedExit* statechart = new GuardedExit();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(GuardedExit::main_region_A));
+	statechart->getDefaultSCI()->set_guard(true);
+	statechart->raise_e();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(GuardedExit::main_region_B));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_done());
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/HistoryWithExitPointTest/HistoryWithExitPoint.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart HistoryWithExitPoint {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "HistoryWithExitPointTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart HistoryWithExitPoint {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "HistoryWithExitPointTest"
+		}
+	}
+}

+ 36 - 36
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/HistoryWithExitPointTest/HistoryWithExitPointTest.cc

@@ -1,36 +1,36 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "HistoryWithExitPoint.h"
-
-TEST(StatemachineTest, historyEntryAfterExit) {
-	HistoryWithExitPoint* statechart = new HistoryWithExitPoint();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(HistoryWithExitPoint::mr_A_r_X1));
-	statechart->raise_push();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(HistoryWithExitPoint::mr_B));
-	statechart->raise_back();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(HistoryWithExitPoint::mr_A_r_X1));
-	statechart->raise_next();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(HistoryWithExitPoint::mr_A_r_X2));
-	statechart->raise_push();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(HistoryWithExitPoint::mr_B));
-	statechart->raise_back();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(HistoryWithExitPoint::mr_A_r_X2));
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "HistoryWithExitPoint.h"
+
+TEST(StatemachineTest, historyEntryAfterExit) {
+	HistoryWithExitPoint* statechart = new HistoryWithExitPoint();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(HistoryWithExitPoint::mr_A_r_X1));
+	statechart->raise_push();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(HistoryWithExitPoint::mr_B));
+	statechart->raise_back();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(HistoryWithExitPoint::mr_A_r_X1));
+	statechart->raise_next();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(HistoryWithExitPoint::mr_A_r_X2));
+	statechart->raise_push();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(HistoryWithExitPoint::mr_B));
+	statechart->raise_back();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(HistoryWithExitPoint::mr_A_r_X2));
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/HistoryWithoutInitialStepTest/HistoryWithoutInitialStep.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart HistoryWithoutInitialStep {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "HistoryWithoutInitialStepTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart HistoryWithoutInitialStep {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "HistoryWithoutInitialStepTest"
+		}
+	}
+}

+ 61 - 61
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/HistoryWithoutInitialStepTest/HistoryWithoutInitialStepTest.cc

@@ -1,61 +1,61 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "HistoryWithoutInitialStep.h"
-
-TEST(StatemachineTest, enterThroughInitialEntry) {
-	HistoryWithoutInitialStep* statechart = new HistoryWithoutInitialStep();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(HistoryWithoutInitialStep::main_region_A));
-	statechart->raise_e1();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(HistoryWithoutInitialStep::main_region_B_r1_C));
-	statechart->raise_e2();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(HistoryWithoutInitialStep::main_region_B_r1_D));
-	delete statechart;
-}
-TEST(StatemachineTest, enterCThroughHistory) {
-	HistoryWithoutInitialStep* statechart = new HistoryWithoutInitialStep();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(HistoryWithoutInitialStep::main_region_A));
-	statechart->raise_e1();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(HistoryWithoutInitialStep::main_region_B_r1_C));
-	statechart->raise_e1();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(HistoryWithoutInitialStep::main_region_A));
-	statechart->raise_e2();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(HistoryWithoutInitialStep::main_region_B_r1_C));
-	delete statechart;
-}
-TEST(StatemachineTest, enterDThroughHistory) {
-	HistoryWithoutInitialStep* statechart = new HistoryWithoutInitialStep();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(HistoryWithoutInitialStep::main_region_A));
-	statechart->raise_e1();
-	statechart->runCycle();
-	statechart->raise_e2();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(HistoryWithoutInitialStep::main_region_B_r1_D));
-	statechart->raise_e1();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(HistoryWithoutInitialStep::main_region_A));
-	statechart->raise_e2();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(HistoryWithoutInitialStep::main_region_B_r1_D));
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "HistoryWithoutInitialStep.h"
+
+TEST(StatemachineTest, enterThroughInitialEntry) {
+	HistoryWithoutInitialStep* statechart = new HistoryWithoutInitialStep();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(HistoryWithoutInitialStep::main_region_A));
+	statechart->raise_toB();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(HistoryWithoutInitialStep::main_region_B_r1_C));
+	statechart->raise_next();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(HistoryWithoutInitialStep::main_region_B_r1_D));
+	delete statechart;
+}
+TEST(StatemachineTest, enterCThroughHistory) {
+	HistoryWithoutInitialStep* statechart = new HistoryWithoutInitialStep();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(HistoryWithoutInitialStep::main_region_A));
+	statechart->raise_toB();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(HistoryWithoutInitialStep::main_region_B_r1_C));
+	statechart->raise_toA();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(HistoryWithoutInitialStep::main_region_A));
+	statechart->raise_toHistory();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(HistoryWithoutInitialStep::main_region_B_r1_C));
+	delete statechart;
+}
+TEST(StatemachineTest, enterDThroughHistory) {
+	HistoryWithoutInitialStep* statechart = new HistoryWithoutInitialStep();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(HistoryWithoutInitialStep::main_region_A));
+	statechart->raise_toB();
+	statechart->runCycle();
+	statechart->raise_next();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(HistoryWithoutInitialStep::main_region_B_r1_D));
+	statechart->raise_toA();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(HistoryWithoutInitialStep::main_region_A));
+	statechart->raise_toHistory();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(HistoryWithoutInitialStep::main_region_B_r1_D));
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/InEventLifeCycleTest/InEventLifeCycle.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart InEventLifeCycle {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "InEventLifeCycleTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart InEventLifeCycle {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "InEventLifeCycleTest"
+		}
+	}
+}

+ 24 - 24
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/InEventLifeCycleTest/InEventLifeCycleTest.cc

@@ -1,24 +1,24 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "InEventLifeCycle.h"
-
-TEST(StatemachineTest, eventLifeCycle) {
-	InEventLifeCycle* statechart = new InEventLifeCycle();
-	statechart->init();
-	statechart->enter();
-	statechart->raise_e();
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_i()== 0);
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_i()== 1);
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "InEventLifeCycle.h"
+
+TEST(StatemachineTest, eventLifeCycle) {
+	InEventLifeCycle* statechart = new InEventLifeCycle();
+	statechart->init();
+	statechart->enter();
+	statechart->raise_e();
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_i()== 0);
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_i()== 1);
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/IntegerExpressionsTest/IntegerExpressions.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart IntegerExpressions {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "IntegerExpressionsTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart IntegerExpressions {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "IntegerExpressionsTest"
+		}
+	}
+}

+ 42 - 42
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/IntegerExpressionsTest/IntegerExpressionsTest.cc

@@ -1,42 +1,42 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "IntegerExpressions.h"
-
-TEST(StatemachineTest, integerExpressions) {
-	IntegerExpressions* statechart = new IntegerExpressions();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(IntegerExpressions::main_region_StateA));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_myInt1()== 10);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_myInt2()== 5);
-	statechart->raise_e1();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_less()== false);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_greater()== true);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_equalOrLess()== false);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_equalOrGreater()== true);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_equal()== false);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_notEqual()== true);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_plus()== 15);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_minus()== 5);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_multiply()== 50);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_division()== 2);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_modulo()== 0);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_negat()== - 10 );
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_multiAssign()== 20);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_divAssign()== 2);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_plusAssign()== 12);
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_minusAssign()== - 8 );
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_moduloAssign()== 0);
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "IntegerExpressions.h"
+
+TEST(StatemachineTest, integerExpressions) {
+	IntegerExpressions* statechart = new IntegerExpressions();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(IntegerExpressions::main_region_StateA));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_myInt1()== 10);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_myInt2()== 5);
+	statechart->raise_e1();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_less()== false);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_greater()== true);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_equalOrLess()== false);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_equalOrGreater()== true);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_equal()== false);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_notEqual()== true);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_plus()== 15);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_minus()== 5);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_multiply()== 50);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_division()== 2);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_modulo()== 0);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_negat()== - 10 );
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_multiAssign()== 20);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_divAssign()== 2);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_plusAssign()== 12);
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_minusAssign()== - 8 );
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_moduloAssign()== 0);
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/InternalEventLifeCycleTest/InternalEventLifeCycle.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart InternalEventLifeCycle {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "InternalEventLifeCycleTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart InternalEventLifeCycle {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "InternalEventLifeCycleTest"
+		}
+	}
+}

+ 36 - 36
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/InternalEventLifeCycleTest/InternalEventLifeCycleTest.cc

@@ -1,36 +1,36 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "InternalEventLifeCycle.h"
-
-TEST(StatemachineTest, InternalEventLifeCycleTest) {
-	InternalEventLifeCycle* statechart = new InternalEventLifeCycle();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(InternalEventLifeCycle::r1_A));
-	EXPECT_TRUE(statechart->isActive(InternalEventLifeCycle::r2_C));
-	statechart->raise_e();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(InternalEventLifeCycle::r1_A));
-	EXPECT_TRUE(statechart->isActive(InternalEventLifeCycle::r2_D));
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(InternalEventLifeCycle::r1_A));
-	EXPECT_TRUE(statechart->isActive(InternalEventLifeCycle::r2_D));
-	statechart->raise_f();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(InternalEventLifeCycle::r1_A));
-	EXPECT_TRUE(statechart->isActive(InternalEventLifeCycle::r2_C));
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(InternalEventLifeCycle::r1_A));
-	EXPECT_TRUE(statechart->isActive(InternalEventLifeCycle::r2_C));
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "InternalEventLifeCycle.h"
+
+TEST(StatemachineTest, InternalEventLifeCycleTest) {
+	InternalEventLifeCycle* statechart = new InternalEventLifeCycle();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(InternalEventLifeCycle::r1_A));
+	EXPECT_TRUE(statechart->isActive(InternalEventLifeCycle::r2_C));
+	statechart->raise_e();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(InternalEventLifeCycle::r1_A));
+	EXPECT_TRUE(statechart->isActive(InternalEventLifeCycle::r2_D));
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(InternalEventLifeCycle::r1_A));
+	EXPECT_TRUE(statechart->isActive(InternalEventLifeCycle::r2_D));
+	statechart->raise_f();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(InternalEventLifeCycle::r1_A));
+	EXPECT_TRUE(statechart->isActive(InternalEventLifeCycle::r2_C));
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(InternalEventLifeCycle::r1_A));
+	EXPECT_TRUE(statechart->isActive(InternalEventLifeCycle::r2_C));
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/LocalReactionsTest/LocalReactions.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart LocalReactions {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "LocalReactionsTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart LocalReactions {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "LocalReactionsTest"
+		}
+	}
+}

+ 23 - 23
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/LocalReactionsTest/LocalReactionsTest.cc

@@ -1,23 +1,23 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "LocalReactions.h"
-
-TEST(StatemachineTest, LocalReactionsTest) {
-	LocalReactions* statechart = new LocalReactions();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(LocalReactions::main_region_A));
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_x()== 1);
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "LocalReactions.h"
+
+TEST(StatemachineTest, LocalReactionsTest) {
+	LocalReactions* statechart = new LocalReactions();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(LocalReactions::main_region_A));
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_x()== 1);
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/LogicalAndTestsTest/LogicalAnd.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart LogicalAnd {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "LogicalAndTestsTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart LogicalAnd {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "LogicalAndTestsTest"
+		}
+	}
+}

+ 22 - 22
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/LogicalAndTestsTest/LogicalAndTestsTest.cc

@@ -1,22 +1,22 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "LogicalAnd.h"
-
-TEST(StatemachineTest, operandEvaluationOrder) {
-	LogicalAnd* statechart = new LogicalAnd();
-	statechart->init();
-	statechart->enter();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_x()== 4 && statechart->getDefaultSCI()->get_b()) << "logical and expression was executed in wrong order..." ;
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "LogicalAnd.h"
+
+TEST(StatemachineTest, operandEvaluationOrder) {
+	LogicalAnd* statechart = new LogicalAnd();
+	statechart->init();
+	statechart->enter();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_x()== 4 && statechart->getDefaultSCI()->get_b()) << "logical and expression was executed in wrong order..." ;
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/LogicalOrTestsTest/LogicalOr.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart LogicalOr {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "LogicalOrTestsTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart LogicalOr {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "LogicalOrTestsTest"
+		}
+	}
+}

+ 22 - 22
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/LogicalOrTestsTest/LogicalOrTestsTest.cc

@@ -1,22 +1,22 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "LogicalOr.h"
-
-TEST(StatemachineTest, operandEvaluationOrder) {
-	LogicalOr* statechart = new LogicalOr();
-	statechart->init();
-	statechart->enter();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_x()== 4 && statechart->getDefaultSCI()->get_b()) << "logical or expression was executed in wrong order..." ;
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "LogicalOr.h"
+
+TEST(StatemachineTest, operandEvaluationOrder) {
+	LogicalOr* statechart = new LogicalOr();
+	statechart->init();
+	statechart->enter();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_x()== 4 && statechart->getDefaultSCI()->get_b()) << "logical or expression was executed in wrong order..." ;
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/NamedInterfaceAccessTest/NamedInterfaceAccess.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart NamedInterfaceAccess {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "NamedInterfaceAccessTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart NamedInterfaceAccess {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "NamedInterfaceAccessTest"
+		}
+	}
+}

+ 28 - 28
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/NamedInterfaceAccessTest/NamedInterfaceAccessTest.cc

@@ -1,28 +1,28 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "NamedInterfaceAccess.h"
-
-TEST(StatemachineTest, SafeOpenSuccess) {
-	NamedInterfaceAccess* statechart = new NamedInterfaceAccess();
-	statechart->init();
-	statechart->enter();
-	statechart->runCycle();
-	statechart->getSCI_User()->raise_numberPressed(3);
-	statechart->runCycle();
-	statechart->getSCI_User()->raise_numberPressed(7);
-	statechart->runCycle();
-	statechart->getSCI_User()->raise_numberPressed(5);
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->getSCI_Safe()->isRaised_open());
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "NamedInterfaceAccess.h"
+
+TEST(StatemachineTest, SafeOpenSuccess) {
+	NamedInterfaceAccess* statechart = new NamedInterfaceAccess();
+	statechart->init();
+	statechart->enter();
+	statechart->runCycle();
+	statechart->getSCI_User()->raise_numberPressed(3);
+	statechart->runCycle();
+	statechart->getSCI_User()->raise_numberPressed(7);
+	statechart->runCycle();
+	statechart->getSCI_User()->raise_numberPressed(5);
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->getSCI_Safe()->isRaised_open());
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/NullCheckTest/NullCheck.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart NullCheck {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "NullCheckTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart NullCheck {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "NullCheckTest"
+		}
+	}
+}

+ 23 - 23
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/NullCheckTest/NullCheckTest.cc

@@ -1,23 +1,23 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "NullCheck.h"
-
-TEST(StatemachineTest, SimpleNullCheckTest) {
-	NullCheck* statechart = new NullCheck();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(NullCheck::main_region_A));
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(NullCheck::main_region_B));
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "NullCheck.h"
+
+TEST(StatemachineTest, SimpleNullCheckTest) {
+	NullCheck* statechart = new NullCheck();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(NullCheck::main_region_A));
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(NullCheck::main_region_B));
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/OutEventLifeCycleTest/OutEventLifeCycle.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart OutEventLifeCycle {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "OutEventLifeCycleTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart OutEventLifeCycle {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "OutEventLifeCycleTest"
+		}
+	}
+}

+ 52 - 52
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/OutEventLifeCycleTest/OutEventLifeCycleTest.cc

@@ -1,52 +1,52 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "OutEventLifeCycle.h"
-
-TEST(StatemachineTest, availableAfterCycle) {
-	OutEventLifeCycle* statechart = new OutEventLifeCycle();
-	statechart->init();
-	statechart->enter();
-	statechart->raise_e();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->getDefaultSCI()->isRaised_f());
-	delete statechart;
-}
-TEST(StatemachineTest, availableWithinCycle) {
-	OutEventLifeCycle* statechart = new OutEventLifeCycle();
-	statechart->init();
-	statechart->enter();
-	statechart->raise_e();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_f_available_in_cycle());
-	delete statechart;
-}
-TEST(StatemachineTest, unvailableWithin2ndCycle) {
-	OutEventLifeCycle* statechart = new OutEventLifeCycle();
-	statechart->init();
-	statechart->enter();
-	statechart->raise_e();
-	statechart->runCycle();
-	statechart->runCycle();
-	EXPECT_TRUE(!statechart->getDefaultSCI()->get_f_available_in_next_cycle());
-	delete statechart;
-}
-TEST(StatemachineTest, unvailableAfter2ndCycle) {
-	OutEventLifeCycle* statechart = new OutEventLifeCycle();
-	statechart->init();
-	statechart->enter();
-	statechart->raise_e();
-	statechart->runCycle();
-	statechart->runCycle();
-	EXPECT_TRUE(!statechart->getDefaultSCI()->isRaised_f());
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "OutEventLifeCycle.h"
+
+TEST(StatemachineTest, availableAfterCycle) {
+	OutEventLifeCycle* statechart = new OutEventLifeCycle();
+	statechart->init();
+	statechart->enter();
+	statechart->raise_e();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->getDefaultSCI()->isRaised_f());
+	delete statechart;
+}
+TEST(StatemachineTest, availableWithinCycle) {
+	OutEventLifeCycle* statechart = new OutEventLifeCycle();
+	statechart->init();
+	statechart->enter();
+	statechart->raise_e();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_f_available_in_cycle());
+	delete statechart;
+}
+TEST(StatemachineTest, unvailableWithin2ndCycle) {
+	OutEventLifeCycle* statechart = new OutEventLifeCycle();
+	statechart->init();
+	statechart->enter();
+	statechart->raise_e();
+	statechart->runCycle();
+	statechart->runCycle();
+	EXPECT_TRUE(!statechart->getDefaultSCI()->get_f_available_in_next_cycle());
+	delete statechart;
+}
+TEST(StatemachineTest, unvailableAfter2ndCycle) {
+	OutEventLifeCycle* statechart = new OutEventLifeCycle();
+	statechart->init();
+	statechart->enter();
+	statechart->raise_e();
+	statechart->runCycle();
+	statechart->runCycle();
+	EXPECT_TRUE(!statechart->getDefaultSCI()->isRaised_f());
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ParenthesisTest/Parenthesis.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart Parenthesis {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "ParenthesisTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart Parenthesis {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "ParenthesisTest"
+		}
+	}
+}

+ 22 - 22
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ParenthesisTest/ParenthesisTest.cc

@@ -1,22 +1,22 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "Parenthesis.h"
-
-TEST(StatemachineTest, simple) {
-	Parenthesis* statechart = new Parenthesis();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(Parenthesis::mainRegion_A));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_erg()== 8);
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "Parenthesis.h"
+
+TEST(StatemachineTest, simple) {
+	Parenthesis* statechart = new Parenthesis();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(Parenthesis::mainRegion_A));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_erg()== 8);
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/PriorityValuesTest/PriorityValues.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart PriorityValues {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "PriorityValuesTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart PriorityValues {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "PriorityValuesTest"
+		}
+	}
+}

+ 35 - 35
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/PriorityValuesTest/PriorityValuesTest.cc

@@ -1,35 +1,35 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "PriorityValues.h"
-
-TEST(StatemachineTest, transitionPriority) {
-	PriorityValues* statechart = new PriorityValues();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(PriorityValues::main_region_A));
-	statechart->raise_event1();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(PriorityValues::main_region_C));
-	delete statechart;
-}
-TEST(StatemachineTest, regionPriority) {
-	PriorityValues* statechart = new PriorityValues();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(PriorityValues::someRegion_A));
-	statechart->raise_event2();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(PriorityValues::someRegion_B));
-	EXPECT_TRUE(!statechart->isActive(PriorityValues::main_region_E));
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "PriorityValues.h"
+
+TEST(StatemachineTest, transitionPriority) {
+	PriorityValues* statechart = new PriorityValues();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(PriorityValues::main_region_A));
+	statechart->raise_event1();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(PriorityValues::main_region_C));
+	delete statechart;
+}
+TEST(StatemachineTest, regionPriority) {
+	PriorityValues* statechart = new PriorityValues();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(PriorityValues::someRegion_A));
+	statechart->raise_event2();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(PriorityValues::someRegion_B));
+	EXPECT_TRUE(!statechart->isActive(PriorityValues::main_region_E));
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/RaiseEventTest/RaiseEvent.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart RaiseEvent {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "RaiseEventTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart RaiseEvent {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "RaiseEventTest"
+		}
+	}
+}

+ 27 - 27
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/RaiseEventTest/RaiseEventTest.cc

@@ -1,27 +1,27 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "RaiseEvent.h"
-
-TEST(StatemachineTest, raiseEvent) {
-	RaiseEvent* statechart = new RaiseEvent();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(RaiseEvent::second_region_SateA));
-	EXPECT_TRUE(statechart->isActive(RaiseEvent::main_region_StateA));
-	statechart->raise_e2();
-	statechart->runCycle();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(RaiseEvent::second_region_StateB));
-	EXPECT_TRUE(statechart->isActive(RaiseEvent::main_region_StateB));
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "RaiseEvent.h"
+
+TEST(StatemachineTest, raiseEvent) {
+	RaiseEvent* statechart = new RaiseEvent();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(RaiseEvent::second_region_SateA));
+	EXPECT_TRUE(statechart->isActive(RaiseEvent::main_region_StateA));
+	statechart->raise_e2();
+	statechart->runCycle();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(RaiseEvent::second_region_StateB));
+	EXPECT_TRUE(statechart->isActive(RaiseEvent::main_region_StateB));
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/STextKeywordsInStatesAndRegionsTest/STextKeywordsInStatesAndRegions.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart STextKeywordsInStatesAndRegions {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "STextKeywordsInStatesAndRegionsTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart STextKeywordsInStatesAndRegions {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "STextKeywordsInStatesAndRegionsTest"
+		}
+	}
+}

+ 480 - 480
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/STextKeywordsInStatesAndRegionsTest/STextKeywordsInStatesAndRegionsTest.cc

@@ -1,480 +1,480 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "STextKeywordsInStatesAndRegions.h"
-
-TEST(StatemachineTest, activeCheckWithSTextNamedStates) {
-	STextKeywordsInStatesAndRegions* statechart = new STextKeywordsInStatesAndRegions();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_interface));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_event));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_in));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_var));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_external));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_default));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_entry));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_always));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_raise));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_active));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_interface));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_event));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_in));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_var));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
-	statechart->raise_e1();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_event));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_in));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_var));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_external));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_default));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_entry));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_always));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_raise));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_active));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_interface));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_event));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_in));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_var));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
-	statechart->raise_e2();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_in));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_var));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_external));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_default));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_entry));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_always));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_raise));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_active));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_interface));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_event));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_in));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_var));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
-	statechart->raise_e1();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_var));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_external));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_default));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_entry));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_always));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_raise));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_active));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_interface));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_event));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_in));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_var));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
-	statechart->raise_e2();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_external));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_default));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_entry));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_always));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_raise));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_active));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_interface));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_event));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_in));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_var));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
-	statechart->raise_e1();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_default));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_entry));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_always));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_raise));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_active));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_interface));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_event));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_in));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_var));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
-	statechart->raise_e2();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_entry));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_always));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_raise));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_active));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_interface));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_event));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_in));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_var));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
-	statechart->raise_e1();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_exit));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_always));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_raise));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_active));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_interface));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_event));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_in));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_var));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
-	statechart->raise_e2();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_exit));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_oncycle));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_raise));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_active));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_interface));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_event));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_in));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_var));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
-	statechart->raise_e1();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_exit));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_oncycle));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_valueof));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_active));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_interface));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_event));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_in));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_var));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
-	statechart->raise_e2();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_exit));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_oncycle));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_valueof));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_interface));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_event));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_in));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_var));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
-	statechart->raise_e1();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_exit));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_oncycle));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_valueof));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_event));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_in));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_var));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
-	statechart->raise_e2();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_exit));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_oncycle));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_valueof));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_local));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_in));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_var));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
-	statechart->raise_e1();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_exit));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_oncycle));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_valueof));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_local));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_out));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_var));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
-	statechart->raise_e2();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_exit));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_oncycle));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_valueof));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_local));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_out));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_readonly));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
-	statechart->raise_e1();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_exit));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_oncycle));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_valueof));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_local));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_out));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_readonly));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_operation));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
-	statechart->raise_e2();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_exit));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_oncycle));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_valueof));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_local));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_out));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_readonly));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_operation));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_else));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
-	statechart->raise_e1();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_exit));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_oncycle));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_valueof));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_local));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_out));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_readonly));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_operation));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_else));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_exit));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
-	statechart->raise_e2();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_exit));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_oncycle));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_valueof));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_local));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_out));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_readonly));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_operation));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_else));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_exit));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_oncycle));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
-	statechart->raise_e1();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_exit));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_oncycle));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_valueof));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_local));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_out));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_readonly));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_operation));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_else));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_exit));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_oncycle));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_valueof));
-	statechart->raise_e2();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_exit));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_oncycle));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_valueof));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_namespace));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_internal));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_local));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_out));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_readonly));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_operation));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_else));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_exit));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_oncycle));
-	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_valueof));
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "STextKeywordsInStatesAndRegions.h"
+
+TEST(StatemachineTest, activeCheckWithSTextNamedStates) {
+	STextKeywordsInStatesAndRegions* statechart = new STextKeywordsInStatesAndRegions();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_interface));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_event));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_in));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_var));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_external));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_default));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_entry));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_always));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_raise));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_active));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_interface));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_event));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_in));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_var));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
+	statechart->raise_e1();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_event));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_in));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_var));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_external));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_default));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_entry));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_always));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_raise));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_active));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_interface));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_event));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_in));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_var));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
+	statechart->raise_e2();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_in));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_var));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_external));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_default));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_entry));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_always));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_raise));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_active));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_interface));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_event));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_in));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_var));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
+	statechart->raise_e1();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_var));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_external));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_default));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_entry));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_always));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_raise));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_active));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_interface));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_event));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_in));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_var));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
+	statechart->raise_e2();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_external));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_default));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_entry));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_always));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_raise));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_active));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_interface));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_event));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_in));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_var));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
+	statechart->raise_e1();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_default));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_entry));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_always));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_raise));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_active));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_interface));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_event));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_in));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_var));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
+	statechart->raise_e2();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_entry));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_always));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_raise));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_active));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_interface));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_event));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_in));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_var));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
+	statechart->raise_e1();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_exit));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_always));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_raise));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_active));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_interface));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_event));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_in));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_var));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
+	statechart->raise_e2();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_exit));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_oncycle));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_raise));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_active));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_interface));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_event));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_in));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_var));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
+	statechart->raise_e1();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_exit));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_oncycle));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_valueof));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_active));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_interface));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_event));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_in));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_var));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
+	statechart->raise_e2();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_exit));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_oncycle));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_valueof));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_interface));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_event));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_in));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_var));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
+	statechart->raise_e1();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_exit));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_oncycle));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_valueof));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_event));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_in));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_var));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
+	statechart->raise_e2();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_exit));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_oncycle));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_valueof));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_local));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_in));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_var));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
+	statechart->raise_e1();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_exit));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_oncycle));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_valueof));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_local));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_out));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_var));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
+	statechart->raise_e2();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_exit));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_oncycle));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_valueof));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_local));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_out));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_readonly));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_external));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
+	statechart->raise_e1();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_exit));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_oncycle));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_valueof));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_local));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_out));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_readonly));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_operation));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_default));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
+	statechart->raise_e2();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_exit));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_oncycle));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_valueof));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_local));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_out));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_readonly));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_operation));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_else));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_entry));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
+	statechart->raise_e1();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_exit));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_oncycle));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_valueof));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_local));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_out));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_readonly));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_operation));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_else));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_exit));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_always));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
+	statechart->raise_e2();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_exit));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_oncycle));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_valueof));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_local));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_out));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_readonly));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_operation));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_else));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_exit));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_oncycle));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_raise));
+	statechart->raise_e1();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_exit));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_oncycle));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_valueof));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_local));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_out));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_readonly));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_operation));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_else));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_exit));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_oncycle));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_valueof));
+	statechart->raise_e2();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::default_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::operation_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::namespace_local));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::local_out));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::interface_readonly));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::internal_operation));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::event_else));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::in_exit));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::out_oncycle));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::var_valueof));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::readonly_namespace));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::external_internal));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::else_local));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::entry_out));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::exit_readonly));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::always_operation));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::oncycle_else));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::raise_exit));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::valueof_oncycle));
+	EXPECT_TRUE(statechart->isActive(STextKeywordsInStatesAndRegions::active_valueof));
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/SameNameDifferentRegionTest/SameNameDifferentRegion.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart SameNameDifferentRegion {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "SameNameDifferentRegionTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart SameNameDifferentRegion {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "SameNameDifferentRegionTest"
+		}
+	}
+}

+ 29 - 29
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/SameNameDifferentRegionTest/SameNameDifferentRegionTest.cc

@@ -1,29 +1,29 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "SameNameDifferentRegion.h"
-
-TEST(StatemachineTest, sameNameDifferenRegionTest) {
-	SameNameDifferentRegion* statechart = new SameNameDifferentRegion();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(SameNameDifferentRegion::main_region_StateA));
-	statechart->raise_e1();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(SameNameDifferentRegion::main_region_StateB));
-	EXPECT_TRUE(statechart->isActive(SameNameDifferentRegion::main_region_StateB_r1_StateA));
-	statechart->raise_e1();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(SameNameDifferentRegion::main_region_StateB));
-	EXPECT_TRUE(statechart->isActive(SameNameDifferentRegion::main_region_StateB_r1_StateB));
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "SameNameDifferentRegion.h"
+
+TEST(StatemachineTest, sameNameDifferenRegionTest) {
+	SameNameDifferentRegion* statechart = new SameNameDifferentRegion();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(SameNameDifferentRegion::main_region_StateA));
+	statechart->raise_e1();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(SameNameDifferentRegion::main_region_StateB));
+	EXPECT_TRUE(statechart->isActive(SameNameDifferentRegion::main_region_StateB_r1_StateA));
+	statechart->raise_e1();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(SameNameDifferentRegion::main_region_StateB));
+	EXPECT_TRUE(statechart->isActive(SameNameDifferentRegion::main_region_StateB_r1_StateB));
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ShallowHistoryTest/ShallowHistory.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart ShallowHistory {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "ShallowHistoryTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart ShallowHistory {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "ShallowHistoryTest"
+		}
+	}
+}

+ 50 - 50
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ShallowHistoryTest/ShallowHistoryTest.cc

@@ -1,50 +1,50 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "ShallowHistory.h"
-
-TEST(StatemachineTest, shallowHistoryTest) {
-	ShallowHistory* statechart = new ShallowHistory();
-	statechart->init();
-	statechart->enter();
-	statechart->raise_event1();
-	statechart->runCycle();
-	statechart->raise_event3();
-	statechart->runCycle();
-	statechart->raise_event5();
-	statechart->runCycle();
-	statechart->raise_event7();
-	statechart->runCycle();
-	EXPECT_TRUE(!statechart->isActive(ShallowHistory::mainRegion_State1));
-	EXPECT_TRUE(statechart->isActive(ShallowHistory::mainRegion_State2__region0_State4__region0_State7__region0_State9));
-	statechart->raise_event6();
-	statechart->runCycle();
-	EXPECT_TRUE(!statechart->isActive(ShallowHistory::mainRegion_State2__region0_State4__region0_State7__region0_State9));
-	EXPECT_TRUE(statechart->isActive(ShallowHistory::mainRegion_State2__region0_State4__region0_State6));
-	statechart->raise_event5();
-	statechart->runCycle();
-	EXPECT_TRUE(!statechart->isActive(ShallowHistory::mainRegion_State2__region0_State4__region0_State7__region0_State8));
-	EXPECT_TRUE(statechart->isActive(ShallowHistory::mainRegion_State2__region0_State4__region0_State7__region0_State9));
-	statechart->raise_event2();
-	statechart->runCycle();
-	EXPECT_TRUE(!statechart->isActive(ShallowHistory::mainRegion_State2__region0_State4__region0_State7__region0_State9));
-	EXPECT_TRUE(statechart->isActive(ShallowHistory::mainRegion_State1));
-	statechart->raise_event1();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(ShallowHistory::mainRegion_State2__region0_State4__region0_State6));
-	EXPECT_TRUE(!statechart->isActive(ShallowHistory::mainRegion_State1));
-	statechart->raise_event5();
-	statechart->runCycle();
-	EXPECT_TRUE(!statechart->isActive(ShallowHistory::mainRegion_State2__region0_State4__region0_State6));
-	EXPECT_TRUE(statechart->isActive(ShallowHistory::mainRegion_State2__region0_State4__region0_State7__region0_State9));
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "ShallowHistory.h"
+
+TEST(StatemachineTest, shallowHistoryTest) {
+	ShallowHistory* statechart = new ShallowHistory();
+	statechart->init();
+	statechart->enter();
+	statechart->raise_event1();
+	statechart->runCycle();
+	statechart->raise_event3();
+	statechart->runCycle();
+	statechart->raise_event5();
+	statechart->runCycle();
+	statechart->raise_event7();
+	statechart->runCycle();
+	EXPECT_TRUE(!statechart->isActive(ShallowHistory::mainRegion_State1));
+	EXPECT_TRUE(statechart->isActive(ShallowHistory::mainRegion_State2__region0_State4__region0_State7__region0_State9));
+	statechart->raise_event6();
+	statechart->runCycle();
+	EXPECT_TRUE(!statechart->isActive(ShallowHistory::mainRegion_State2__region0_State4__region0_State7__region0_State9));
+	EXPECT_TRUE(statechart->isActive(ShallowHistory::mainRegion_State2__region0_State4__region0_State6));
+	statechart->raise_event5();
+	statechart->runCycle();
+	EXPECT_TRUE(!statechart->isActive(ShallowHistory::mainRegion_State2__region0_State4__region0_State7__region0_State8));
+	EXPECT_TRUE(statechart->isActive(ShallowHistory::mainRegion_State2__region0_State4__region0_State7__region0_State9));
+	statechart->raise_event2();
+	statechart->runCycle();
+	EXPECT_TRUE(!statechart->isActive(ShallowHistory::mainRegion_State2__region0_State4__region0_State7__region0_State9));
+	EXPECT_TRUE(statechart->isActive(ShallowHistory::mainRegion_State1));
+	statechart->raise_event1();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(ShallowHistory::mainRegion_State2__region0_State4__region0_State6));
+	EXPECT_TRUE(!statechart->isActive(ShallowHistory::mainRegion_State1));
+	statechart->raise_event5();
+	statechart->runCycle();
+	EXPECT_TRUE(!statechart->isActive(ShallowHistory::mainRegion_State2__region0_State4__region0_State6));
+	EXPECT_TRUE(statechart->isActive(ShallowHistory::mainRegion_State2__region0_State4__region0_State7__region0_State9));
+	delete statechart;
+}

+ 8 - 0
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ShallowHistoryWithDeepEntryTest/ShallowHistoryWithDeepEntry.sgen

@@ -0,0 +1,8 @@
+GeneratorModel for yakindu::cpp {
+	statechart ShallowHistoryWithDeepEntry {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "ShallowHistoryWithDeepEntryTest"
+		}
+	}
+}

+ 69 - 0
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ShallowHistoryWithDeepEntryTest/ShallowHistoryWithDeepEntryTest.cc

@@ -0,0 +1,69 @@
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "ShallowHistoryWithDeepEntry.h"
+
+TEST(StatemachineTest, noDeepEntryWithinHistory) {
+	ShallowHistoryWithDeepEntry* statechart = new ShallowHistoryWithDeepEntry();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(ShallowHistoryWithDeepEntry::main_region_Y));
+	statechart->raise_toZ();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(ShallowHistoryWithDeepEntry::main_region_Z__region0_A));
+	statechart->raise_toY();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(ShallowHistoryWithDeepEntry::main_region_Y));
+	statechart->raise_toZ();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(ShallowHistoryWithDeepEntry::main_region_Z__region0_A));
+	delete statechart;
+}
+TEST(StatemachineTest, deepEntryWithinHistory) {
+	ShallowHistoryWithDeepEntry* statechart = new ShallowHistoryWithDeepEntry();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(ShallowHistoryWithDeepEntry::main_region_Y));
+	statechart->raise_toZ();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(ShallowHistoryWithDeepEntry::main_region_Z__region0_A));
+	statechart->raise_toC();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(ShallowHistoryWithDeepEntry::main_region_Z__region0_B__region0_C));
+	EXPECT_TRUE(statechart->isActive(ShallowHistoryWithDeepEntry::main_region_Z__region0_B));
+	statechart->raise_toY();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(ShallowHistoryWithDeepEntry::main_region_Y));
+	statechart->raise_toZ();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(ShallowHistoryWithDeepEntry::main_region_Z__region0_B__region0_C));
+	EXPECT_TRUE(statechart->isActive(ShallowHistoryWithDeepEntry::main_region_Z__region0_B));
+	delete statechart;
+}
+TEST(StatemachineTest, directDeepEntryIntoHistory) {
+	ShallowHistoryWithDeepEntry* statechart = new ShallowHistoryWithDeepEntry();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(ShallowHistoryWithDeepEntry::main_region_Y));
+	statechart->raise_toC();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(ShallowHistoryWithDeepEntry::main_region_Z__region0_B__region0_C));
+	EXPECT_TRUE(statechart->isActive(ShallowHistoryWithDeepEntry::main_region_Z__region0_B));
+	statechart->raise_toY();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(ShallowHistoryWithDeepEntry::main_region_Y));
+	statechart->raise_toZ();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(ShallowHistoryWithDeepEntry::main_region_Z__region0_B__region0_C));
+	EXPECT_TRUE(statechart->isActive(ShallowHistoryWithDeepEntry::main_region_Z__region0_B));
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/SimpleEventTest/SimpleEvent.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart SimpleEvent {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "SimpleEventTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart SimpleEvent {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "SimpleEventTest"
+		}
+	}
+}

+ 27 - 27
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/SimpleEventTest/SimpleEventTest.cc

@@ -1,27 +1,27 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "SimpleEvent.h"
-
-TEST(StatemachineTest, simpleEventTest) {
-	SimpleEvent* statechart = new SimpleEvent();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(SimpleEvent::main_region_A)) << "Expected A to be active" ;
-	EXPECT_TRUE(5== 5);
-	statechart->raise_event1();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(SimpleEvent::main_region_B)) << "Expected B to be active" ;
-	statechart->runCycle();
-	EXPECT_TRUE(!statechart->isActive(SimpleEvent::main_region_B));
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "SimpleEvent.h"
+
+TEST(StatemachineTest, simpleEventTest) {
+	SimpleEvent* statechart = new SimpleEvent();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(SimpleEvent::main_region_A)) << "Expected A to be active" ;
+	EXPECT_TRUE(5== 5);
+	statechart->raise_event1();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(SimpleEvent::main_region_B)) << "Expected B to be active" ;
+	statechart->runCycle();
+	EXPECT_TRUE(!statechart->isActive(SimpleEvent::main_region_B));
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/SimpleHierachyTest/SimpleHierachy.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart SimpleHierachy {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "SimpleHierachyTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart SimpleHierachy {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "SimpleHierachyTest"
+		}
+	}
+}

+ 27 - 27
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/SimpleHierachyTest/SimpleHierachyTest.cc

@@ -1,27 +1,27 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "SimpleHierachy.h"
-
-TEST(StatemachineTest, simpleHierachyTest) {
-	SimpleHierachy* statechart = new SimpleHierachy();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(SimpleHierachy::main_region_A));
-	statechart->raise_event1();
-	statechart->raise_event1();
-	statechart->raise_event1();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(SimpleHierachy::main_region_B));
-	EXPECT_TRUE(statechart->isActive(SimpleHierachy::main_region_B_subregion1_B1));
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "SimpleHierachy.h"
+
+TEST(StatemachineTest, simpleHierachyTest) {
+	SimpleHierachy* statechart = new SimpleHierachy();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(SimpleHierachy::main_region_A));
+	statechart->raise_event1();
+	statechart->raise_event1();
+	statechart->raise_event1();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(SimpleHierachy::main_region_B));
+	EXPECT_TRUE(statechart->isActive(SimpleHierachy::main_region_B_subregion1_B1));
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/StateIsActiveTest/StateIsActive.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart StateIsActive {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "StateIsActiveTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart StateIsActive {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "StateIsActiveTest"
+		}
+	}
+}

+ 27 - 27
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/StateIsActiveTest/StateIsActiveTest.cc

@@ -1,27 +1,27 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "StateIsActive.h"
-
-TEST(StatemachineTest, stateIsActive) {
-	StateIsActive* statechart = new StateIsActive();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(StateIsActive::R1_R1A));
-	EXPECT_TRUE(statechart->isActive(StateIsActive::R2_R2A));
-	statechart->raise_event1();
-	statechart->runCycle();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(StateIsActive::R1_R1B));
-	EXPECT_TRUE(statechart->isActive(StateIsActive::R2_R2B));
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "StateIsActive.h"
+
+TEST(StatemachineTest, stateIsActive) {
+	StateIsActive* statechart = new StateIsActive();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(StateIsActive::R1_R1A));
+	EXPECT_TRUE(statechart->isActive(StateIsActive::R2_R2A));
+	statechart->raise_event1();
+	statechart->runCycle();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(StateIsActive::R1_R1B));
+	EXPECT_TRUE(statechart->isActive(StateIsActive::R2_R2B));
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/StatechartLocalReactionsTest/StatechartLocalReactions.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart StatechartLocalReactions {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "StatechartLocalReactionsTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart StatechartLocalReactions {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "StatechartLocalReactionsTest"
+		}
+	}
+}

+ 32 - 32
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/StatechartLocalReactionsTest/StatechartLocalReactionsTest.cc

@@ -1,32 +1,32 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "StatechartLocalReactions.h"
-
-TEST(StatemachineTest, statechartLocalReactionsTest) {
-	StatechartLocalReactions* statechart = new StatechartLocalReactions();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(StatechartLocalReactions::main_region_S1));
-	EXPECT_TRUE(statechart->isActive(StatechartLocalReactions::region2_a));
-	while (statechart->getDefaultSCI()->get_myInt()< 10) {
-		EXPECT_TRUE(statechart->isActive(StatechartLocalReactions::region2_a));
-		if (statechart->getDefaultSCI()->get_myInt()%2== 0) {
-					EXPECT_TRUE(statechart->isActive(StatechartLocalReactions::main_region_S1));
-				  }
-				else {
-					EXPECT_TRUE(statechart->isActive(StatechartLocalReactions::main_region_S2));;
-				}
-		statechart->runCycle();
-	}
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "StatechartLocalReactions.h"
+
+TEST(StatemachineTest, statechartLocalReactionsTest) {
+	StatechartLocalReactions* statechart = new StatechartLocalReactions();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(StatechartLocalReactions::main_region_S1));
+	EXPECT_TRUE(statechart->isActive(StatechartLocalReactions::region2_a));
+	while (statechart->getDefaultSCI()->get_myInt()< 10) {
+		EXPECT_TRUE(statechart->isActive(StatechartLocalReactions::region2_a));
+		if (statechart->getDefaultSCI()->get_myInt()%2== 0) {
+					EXPECT_TRUE(statechart->isActive(StatechartLocalReactions::main_region_S1));
+				  }
+				else {
+					EXPECT_TRUE(statechart->isActive(StatechartLocalReactions::main_region_S2));;
+				}
+		statechart->runCycle();
+	}
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/StaticChoiceTest/StaticChoice.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart StaticChoice {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "StaticChoiceTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart StaticChoice {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "StaticChoiceTest"
+		}
+	}
+}

+ 22 - 22
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/StaticChoiceTest/StaticChoiceTest.cc

@@ -1,22 +1,22 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "StaticChoice.h"
-
-TEST(StatemachineTest, StaticChoiceTest) {
-	StaticChoice* statechart = new StaticChoice();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(StaticChoice::main_region_Start));
-	statechart->runCycle();
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "StaticChoice.h"
+
+TEST(StatemachineTest, StaticChoiceTest) {
+	StaticChoice* statechart = new StaticChoice();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(StaticChoice::main_region_Start));
+	statechart->runCycle();
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/StringExpressionsTest/StringExpressions.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart StringExpressions {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "StringExpressionsTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart StringExpressions {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "StringExpressionsTest"
+		}
+	}
+}

+ 51 - 51
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/StringExpressionsTest/StringExpressionsTest.cc

@@ -1,51 +1,51 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "StringExpressions.h"
-
-TEST(StatemachineTest, StringExpressionsTest) {
-	StringExpressions* statechart = new StringExpressions();
-	statechart->init();
-	EXPECT_TRUE(strcmp(statechart->getDefaultSCI()->get_quotedStringX(), "\"X\"") == 0);
-	EXPECT_TRUE(strcmp(statechart->getDefaultSCI()->get_quotedStringY(), "\"Y\"") == 0);
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(StringExpressions::main_region_AssignmentChecked));
-	statechart->raise_e();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(StringExpressions::main_region_VarToVarCompareSucceeded));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_guardStringEqual());
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_guardStringNotEqual());
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_stringVarEqual());
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_stringVarNotEqual());
-	statechart->raise_e();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(StringExpressions::main_region_VarToConstCompareSucceeded));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_guardStringEqual());
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_guardStringNotEqual());
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_stringVarEqual());
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_stringVarNotEqual());
-	statechart->raise_e();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(StringExpressions::main_region_ConstToVarCompareSucceeded));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_guardStringEqual());
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_guardStringNotEqual());
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_stringVarEqual());
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_stringVarNotEqual());
-	statechart->raise_e();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(StringExpressions::main_region_ConstToConstCompareSucceeded));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_guardStringEqual());
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_guardStringNotEqual());
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_stringVarEqual());
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_stringVarNotEqual());
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "StringExpressions.h"
+
+TEST(StatemachineTest, StringExpressionsTest) {
+	StringExpressions* statechart = new StringExpressions();
+	statechart->init();
+	EXPECT_TRUE(strcmp(statechart->getDefaultSCI()->get_quotedStringX(), "\"X\"") == 0);
+	EXPECT_TRUE(strcmp(statechart->getDefaultSCI()->get_quotedStringY(), "\"Y\"") == 0);
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(StringExpressions::main_region_AssignmentChecked));
+	statechart->raise_e();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(StringExpressions::main_region_VarToVarCompareSucceeded));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_guardStringEqual());
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_guardStringNotEqual());
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_stringVarEqual());
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_stringVarNotEqual());
+	statechart->raise_e();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(StringExpressions::main_region_VarToConstCompareSucceeded));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_guardStringEqual());
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_guardStringNotEqual());
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_stringVarEqual());
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_stringVarNotEqual());
+	statechart->raise_e();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(StringExpressions::main_region_ConstToVarCompareSucceeded));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_guardStringEqual());
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_guardStringNotEqual());
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_stringVarEqual());
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_stringVarNotEqual());
+	statechart->raise_e();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(StringExpressions::main_region_ConstToConstCompareSucceeded));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_guardStringEqual());
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_guardStringNotEqual());
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_stringVarEqual());
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_stringVarNotEqual());
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/SyncForkTest/SyncFork.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart SyncFork {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "SyncForkTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart SyncFork {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "SyncForkTest"
+		}
+	}
+}

+ 39 - 39
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/SyncForkTest/SyncForkTest.cc

@@ -1,39 +1,39 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "SyncFork.h"
-
-TEST(StatemachineTest, syncForkTest) {
-	SyncFork* statechart = new SyncFork();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(SyncFork::main_region_A));
-	statechart->raise_f();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(SyncFork::main_region_B));
-	EXPECT_TRUE(statechart->isActive(SyncFork::main_region_B_r1_C1));
-	EXPECT_TRUE(statechart->isActive(SyncFork::main_region_B_r2_D1));
-	statechart->raise_f();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(SyncFork::main_region_B));
-	EXPECT_TRUE(statechart->isActive(SyncFork::main_region_B_r1_C2));
-	EXPECT_TRUE(statechart->isActive(SyncFork::main_region_B_r2_D2));
-	statechart->raise_e();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(SyncFork::main_region_A));
-	statechart->raise_f();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(SyncFork::main_region_B));
-	EXPECT_TRUE(statechart->isActive(SyncFork::main_region_B_r1_C1));
-	EXPECT_TRUE(statechart->isActive(SyncFork::main_region_B_r2_D1));
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "SyncFork.h"
+
+TEST(StatemachineTest, syncForkTest) {
+	SyncFork* statechart = new SyncFork();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(SyncFork::main_region_A));
+	statechart->raise_f();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(SyncFork::main_region_B));
+	EXPECT_TRUE(statechart->isActive(SyncFork::main_region_B_r1_C1));
+	EXPECT_TRUE(statechart->isActive(SyncFork::main_region_B_r2_D1));
+	statechart->raise_f();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(SyncFork::main_region_B));
+	EXPECT_TRUE(statechart->isActive(SyncFork::main_region_B_r1_C2));
+	EXPECT_TRUE(statechart->isActive(SyncFork::main_region_B_r2_D2));
+	statechart->raise_e();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(SyncFork::main_region_A));
+	statechart->raise_f();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(SyncFork::main_region_B));
+	EXPECT_TRUE(statechart->isActive(SyncFork::main_region_B_r1_C1));
+	EXPECT_TRUE(statechart->isActive(SyncFork::main_region_B_r2_D1));
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/SyncJoinTest/SyncJoin.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart SyncJoin {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "SyncJoinTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart SyncJoin {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "SyncJoinTest"
+		}
+	}
+}

+ 100 - 100
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/SyncJoinTest/SyncJoinTest.cc

@@ -1,100 +1,100 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "SyncJoin.h"
-
-TEST(StatemachineTest, syncJoin_C2_Waits) {
-	SyncJoin* statechart = new SyncJoin();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B));
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r1_C1));
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r2_D1));
-	statechart->raise_e();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r1_C2));
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r2_D1));
-	statechart->raise_jc();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r1_C2));
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r2_D1));
-	statechart->raise_jd();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r1_C2));
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r2_D1));
-	statechart->raise_jc();
-	statechart->raise_jd();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r1_C2));
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r2_D1));
-	statechart->raise_f();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r1_C2));
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r2_D2));
-	statechart->raise_jc();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r1_C2));
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r2_D2));
-	statechart->raise_jd();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r1_C2));
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r2_D2));
-	statechart->raise_jc();
-	statechart->raise_jd();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_A));
-	delete statechart;
-}
-TEST(StatemachineTest, syncJoin_D2_Waits) {
-	SyncJoin* statechart = new SyncJoin();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B));
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r1_C1));
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r2_D1));
-	statechart->raise_f();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r1_C1));
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r2_D2));
-	statechart->raise_jc();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r1_C1));
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r2_D2));
-	statechart->raise_jd();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r1_C1));
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r2_D2));
-	statechart->raise_jc();
-	statechart->raise_jd();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r1_C1));
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r2_D2));
-	statechart->raise_e();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r1_C2));
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r2_D2));
-	delete statechart;
-}
-TEST(StatemachineTest, doubleEntryActionBug) {
-	SyncJoin* statechart = new SyncJoin();
-	statechart->init();
-	statechart->enter();
-	statechart->raise_e();
-	statechart->raise_f();
-	statechart->runCycle();
-	statechart->raise_jc();
-	statechart->raise_jd();
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_A));
-	EXPECT_TRUE(statechart->getDefaultSCI()->get_x()== 1);
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "SyncJoin.h"
+
+TEST(StatemachineTest, syncJoin_C2_Waits) {
+	SyncJoin* statechart = new SyncJoin();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B));
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r1_C1));
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r2_D1));
+	statechart->raise_e();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r1_C2));
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r2_D1));
+	statechart->raise_jc();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r1_C2));
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r2_D1));
+	statechart->raise_jd();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r1_C2));
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r2_D1));
+	statechart->raise_jc();
+	statechart->raise_jd();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r1_C2));
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r2_D1));
+	statechart->raise_f();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r1_C2));
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r2_D2));
+	statechart->raise_jc();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r1_C2));
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r2_D2));
+	statechart->raise_jd();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r1_C2));
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r2_D2));
+	statechart->raise_jc();
+	statechart->raise_jd();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_A));
+	delete statechart;
+}
+TEST(StatemachineTest, syncJoin_D2_Waits) {
+	SyncJoin* statechart = new SyncJoin();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B));
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r1_C1));
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r2_D1));
+	statechart->raise_f();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r1_C1));
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r2_D2));
+	statechart->raise_jc();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r1_C1));
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r2_D2));
+	statechart->raise_jd();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r1_C1));
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r2_D2));
+	statechart->raise_jc();
+	statechart->raise_jd();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r1_C1));
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r2_D2));
+	statechart->raise_e();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r1_C2));
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_B_r2_D2));
+	delete statechart;
+}
+TEST(StatemachineTest, doubleEntryActionBug) {
+	SyncJoin* statechart = new SyncJoin();
+	statechart->init();
+	statechart->enter();
+	statechart->raise_e();
+	statechart->raise_f();
+	statechart->runCycle();
+	statechart->raise_jc();
+	statechart->raise_jd();
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(SyncJoin::main_region_A));
+	EXPECT_TRUE(statechart->getDefaultSCI()->get_x()== 1);
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/TimedTransitionsTest/TimedTransitions.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart TimedTransitions {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "TimedTransitionsTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart TimedTransitions {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "TimedTransitionsTest"
+		}
+	}
+}

+ 24 - 24
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/TimedTransitionsTest/TimedTransitionsTest.cc

@@ -1,24 +1,24 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "TimedTransitions.h"
-
-TEST(StatemachineTest, Timer01) {
-	TimedTransitions* statechart = new TimedTransitions();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(TimedTransitions::main_region_Start));
-	/*not implemented: WaitStatement*/
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(TimedTransitions::main_region_End));
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "TimedTransitions.h"
+
+TEST(StatemachineTest, Timer01) {
+	TimedTransitions* statechart = new TimedTransitions();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(TimedTransitions::main_region_Start));
+	/*not implemented: WaitStatement*/
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(TimedTransitions::main_region_End));
+	delete statechart;
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/TransitionWithoutConditionTest/TransitionWithoutCondition.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::cpp {
-	statechart TransitionWithoutCondition {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "TransitionWithoutConditionTest"
-		}
-	}
-}
+GeneratorModel for yakindu::cpp {
+	statechart TransitionWithoutCondition {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "TransitionWithoutConditionTest"
+		}
+	}
+}

+ 23 - 23
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/TransitionWithoutConditionTest/TransitionWithoutConditionTest.cc

@@ -1,23 +1,23 @@
-/**
-* Copyright (c) 2014 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
-#include <string>
-#include "gtest/gtest.h"
-#include "TransitionWithoutCondition.h"
-
-TEST(StatemachineTest, TransitionWithoutConditionTest) {
-	TransitionWithoutCondition* statechart = new TransitionWithoutCondition();
-	statechart->init();
-	statechart->enter();
-	EXPECT_TRUE(statechart->isActive(TransitionWithoutCondition::main_region_A));
-	statechart->runCycle();
-	EXPECT_TRUE(statechart->isActive(TransitionWithoutCondition::main_region_B));
-	delete statechart;
-}
+/**
+* Copyright (c) 2014 committers of YAKINDU and others.
+* All rights reserved. This program and the accompanying materials
+* are made available under the terms of the Eclipse Public License v1.0
+* which accompanies this distribution, and is available at
+* http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+*     committers of YAKINDU - initial API and implementation
+*/
+#include <string>
+#include "gtest/gtest.h"
+#include "TransitionWithoutCondition.h"
+
+TEST(StatemachineTest, TransitionWithoutConditionTest) {
+	TransitionWithoutCondition* statechart = new TransitionWithoutCondition();
+	statechart->init();
+	statechart->enter();
+	EXPECT_TRUE(statechart->isActive(TransitionWithoutCondition::main_region_A));
+	statechart->runCycle();
+	EXPECT_TRUE(statechart->isActive(TransitionWithoutCondition::main_region_B));
+	delete statechart;
+}

+ 0 - 0
test-plugins/org.yakindu.sct.generator.cpp.test/gtests/ValuedEventsTest/ValuedEvents.sgen


Some files were not shown because too many files changed in this diff