Browse Source

Added support for execution on windows os.

markus.muehlbrandt@gmail.com 13 years ago
parent
commit
ac122e1df7
81 changed files with 2246 additions and 2207 deletions
  1. 33 32
      test-plugins/org.yakindu.sct.generator.c.test/gtests/AlwaysOncycle/AlwaysOncycle.cc
  2. 8 8
      test-plugins/org.yakindu.sct.generator.c.test/gtests/AlwaysOncycle/AlwaysOncycle.sgen
  3. 23 22
      test-plugins/org.yakindu.sct.generator.c.test/gtests/AssignmentAsExpression/AssignmentAsExpression.cc
  4. 8 8
      test-plugins/org.yakindu.sct.generator.c.test/gtests/AssignmentAsExpression/AssignmentAsExpression.sgen
  5. 32 31
      test-plugins/org.yakindu.sct.generator.c.test/gtests/BitExpressions/BitExpressions.cc
  6. 8 8
      test-plugins/org.yakindu.sct.generator.c.test/gtests/BitExpressions/BitExpressions.sgen
  7. 31 30
      test-plugins/org.yakindu.sct.generator.c.test/gtests/BooleanExpressions/BooleanExpressions.cc
  8. 8 8
      test-plugins/org.yakindu.sct.generator.c.test/gtests/BooleanExpressions/BooleanExpressions.sgen
  9. 26 25
      test-plugins/org.yakindu.sct.generator.c.test/gtests/CKeywords/CKeywords.cc
  10. 8 8
      test-plugins/org.yakindu.sct.generator.c.test/gtests/CKeywords/CKeywords.sgen
  11. 48 47
      test-plugins/org.yakindu.sct.generator.c.test/gtests/Choice/Choice.cc
  12. 8 8
      test-plugins/org.yakindu.sct.generator.c.test/gtests/Choice/Choice.sgen
  13. 38 37
      test-plugins/org.yakindu.sct.generator.c.test/gtests/DeepHistory/DeepHistory.cc
  14. 8 8
      test-plugins/org.yakindu.sct.generator.c.test/gtests/DeepHistory/DeepHistory.sgen
  15. 31 30
      test-plugins/org.yakindu.sct.generator.c.test/gtests/ExitOnSelfTransition/ExitOnSelfTransition.cc
  16. 8 8
      test-plugins/org.yakindu.sct.generator.c.test/gtests/ExitOnSelfTransition/ExitOnSelfTransition.sgen
  17. 36 35
      test-plugins/org.yakindu.sct.generator.c.test/gtests/Guard/Guard.cc
  18. 8 8
      test-plugins/org.yakindu.sct.generator.c.test/gtests/Guard/Guard.sgen
  19. 64 60
      test-plugins/org.yakindu.sct.generator.c.test/gtests/GuardedEntry/GuardedEntry.cc
  20. 8 8
      test-plugins/org.yakindu.sct.generator.c.test/gtests/GuardedEntry/GuardedEntry.sgen
  21. 38 36
      test-plugins/org.yakindu.sct.generator.c.test/gtests/GuardedExit/GuardedExit.cc
  22. 8 8
      test-plugins/org.yakindu.sct.generator.c.test/gtests/GuardedExit/GuardedExit.sgen
  23. 42 41
      test-plugins/org.yakindu.sct.generator.c.test/gtests/IntegerExpressions/IntegerExpressions.cc
  24. 8 8
      test-plugins/org.yakindu.sct.generator.c.test/gtests/IntegerExpressions/IntegerExpressions.sgen
  25. 36 35
      test-plugins/org.yakindu.sct.generator.c.test/gtests/InternalEventLifeCycle/InternalEventLifeCycle.cc
  26. 8 8
      test-plugins/org.yakindu.sct.generator.c.test/gtests/InternalEventLifeCycle/InternalEventLifeCycle.sgen
  27. 2 1
      test-plugins/org.yakindu.sct.generator.c.test/gtests/Parenthesis/Parenthesis.cc
  28. 8 8
      test-plugins/org.yakindu.sct.generator.c.test/gtests/PerformanceTests/PerformanceTest.sgen
  29. 83 80
      test-plugins/org.yakindu.sct.generator.c.test/gtests/PerformanceTests/PerformanceTests.cc
  30. 35 33
      test-plugins/org.yakindu.sct.generator.c.test/gtests/PriorityValues/PriorityValues.cc
  31. 8 8
      test-plugins/org.yakindu.sct.generator.c.test/gtests/PriorityValues/PriorityValues.sgen
  32. 27 26
      test-plugins/org.yakindu.sct.generator.c.test/gtests/RaiseEvent/RaiseEvent.cc
  33. 8 8
      test-plugins/org.yakindu.sct.generator.c.test/gtests/RaiseEvent/RaiseEvent.sgen
  34. 29 28
      test-plugins/org.yakindu.sct.generator.c.test/gtests/SameNameDifferentRegion/SameNameDifferentRegion.cc
  35. 8 8
      test-plugins/org.yakindu.sct.generator.c.test/gtests/SameNameDifferentRegion/SameNameDifferentRegion.sgen
  36. 50 49
      test-plugins/org.yakindu.sct.generator.c.test/gtests/ShallowHistory/ShallowHistory.cc
  37. 8 8
      test-plugins/org.yakindu.sct.generator.c.test/gtests/ShallowHistory/ShallowHistory.sgen
  38. 25 24
      test-plugins/org.yakindu.sct.generator.c.test/gtests/SimpleEvent/SimpleEvent.cc
  39. 8 8
      test-plugins/org.yakindu.sct.generator.c.test/gtests/SimpleEvent/SimpleEvent.sgen
  40. 8 8
      test-plugins/org.yakindu.sct.generator.c.test/gtests/SimpleHietachy/SimpleHierachy.sgen
  41. 27 26
      test-plugins/org.yakindu.sct.generator.c.test/gtests/SimpleHietachy/SimpleHietachy.cc
  42. 27 26
      test-plugins/org.yakindu.sct.generator.c.test/gtests/StateIsActive/StateIsActive.cc
  43. 8 8
      test-plugins/org.yakindu.sct.generator.c.test/gtests/StateIsActive/StateIsActive.sgen
  44. 32 31
      test-plugins/org.yakindu.sct.generator.c.test/gtests/StatechartLocalReactions/StatechartLocalReactions.cc
  45. 8 8
      test-plugins/org.yakindu.sct.generator.c.test/gtests/StatechartLocalReactions/StatechartLocalReactions.sgen
  46. 28 27
      test-plugins/org.yakindu.sct.generator.c.test/gtests/StringExpressions/StringExpressions.cc
  47. 8 8
      test-plugins/org.yakindu.sct.generator.c.test/gtests/StringExpressions/StringExpressions.sgen
  48. 39 38
      test-plugins/org.yakindu.sct.generator.c.test/gtests/SyncFork/SyncFork.cc
  49. 8 8
      test-plugins/org.yakindu.sct.generator.c.test/gtests/SyncFork/SyncFork.sgen
  50. 86 84
      test-plugins/org.yakindu.sct.generator.c.test/gtests/SyncJoin/SyncJoin.cc
  51. 8 8
      test-plugins/org.yakindu.sct.generator.c.test/gtests/SyncJoin/SyncJoin.sgen
  52. 24 23
      test-plugins/org.yakindu.sct.generator.c.test/gtests/ValuedEvent/ValuedEvent.cc
  53. 8 8
      test-plugins/org.yakindu.sct.generator.c.test/gtests/ValuedEvent/ValuedEvents.sgen
  54. 28 28
      test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/AllTests.java
  55. 39 39
      test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/AlwaysOncycle.java
  56. 39 39
      test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/AssignmentAsExpression.java
  57. 39 39
      test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/BitExpressions.java
  58. 39 39
      test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/BooleanExpressions.java
  59. 39 39
      test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/CKeywords.java
  60. 39 39
      test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/Choice.java
  61. 39 39
      test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/DeepHistory.java
  62. 39 39
      test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/ExitOnSelfTransition.java
  63. 39 39
      test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/Guard.java
  64. 39 39
      test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/GuardedEntry.java
  65. 39 39
      test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/GuardedExit.java
  66. 39 39
      test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/IntegerExpressions.java
  67. 39 39
      test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/InternalEventLifeCycle.java
  68. 39 39
      test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/PerformanceTests.java
  69. 39 39
      test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/PriorityValues.java
  70. 39 39
      test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/RaiseEvent.java
  71. 39 39
      test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/SameNameDifferentRegion.java
  72. 39 39
      test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/ShallowHistory.java
  73. 39 39
      test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/SimpleEvent.java
  74. 39 39
      test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/SimpleHietachy.java
  75. 39 39
      test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/StateIsActive.java
  76. 39 39
      test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/StatechartLocalReactions.java
  77. 39 39
      test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/StringExpressions.java
  78. 39 39
      test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/SyncFork.java
  79. 39 39
      test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/SyncJoin.java
  80. 39 39
      test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/ValuedEvent.java
  81. 4 0
      test-plugins/org.yakindu.sct.generator.c.test/src/org/yakindu/sct/generator/c/gtest/GTestRunner.java

+ 33 - 32
test-plugins/org.yakindu.sct.generator.c.test/gtests/AlwaysOncycle/AlwaysOncycle.cc

@@ -1,32 +1,33 @@
-/**
-* Copyright (c) 2012 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 handle;
-	alwaysOncycle_init(&handle);
-	alwaysOncycle_enter(&handle);
-	EXPECT_TRUE(alwaysOncycle_isActive(&handle, AlwaysOncycle_main_region_StateA));
-	while (alwaysOncycleIface_get_value(&handle) < 5) {
-		alwaysOncycle_runCycle(&handle);
-		EXPECT_TRUE(alwaysOncycle_isActive(&handle, AlwaysOncycle_main_region_StateA));
-	}
-	alwaysOncycle_runCycle(&handle);
-	EXPECT_TRUE(alwaysOncycle_isActive(&handle, AlwaysOncycle_main_region_StateB));
-	while (alwaysOncycleIface_get_value(&handle) < 5) {
-		alwaysOncycle_runCycle(&handle);
-		EXPECT_TRUE(alwaysOncycle_isActive(&handle, AlwaysOncycle_main_region_StateB));
-	}
-	alwaysOncycle_runCycle(&handle);
-	EXPECT_TRUE(alwaysOncycle_isActive(&handle, AlwaysOncycle_main_region_StateA));
-}
+/**
+* Copyright (c) 2012 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 handle;
+	alwaysOncycle_init(&handle);
+	alwaysOncycle_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(alwaysOncycle_isActive(&handle, AlwaysOncycle_main_region_StateA));
+	while (alwaysOncycleIface_get_value(&handle)< 5) {
+		alwaysOncycle_runCycle(&handle);
+		EXPECT_TRUE(alwaysOncycle_isActive(&handle, AlwaysOncycle_main_region_StateA));
+	}
+	alwaysOncycle_runCycle(&handle);
+	EXPECT_TRUE(alwaysOncycle_isActive(&handle, AlwaysOncycle_main_region_StateB));
+	while (alwaysOncycleIface_get_value(&handle)< 5) {
+		alwaysOncycle_runCycle(&handle);
+		EXPECT_TRUE(alwaysOncycle_isActive(&handle, AlwaysOncycle_main_region_StateB));
+	}
+	alwaysOncycle_runCycle(&handle);
+	EXPECT_TRUE(alwaysOncycle_isActive(&handle, AlwaysOncycle_main_region_StateA));
+}

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

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

+ 23 - 22
test-plugins/org.yakindu.sct.generator.c.test/gtests/AssignmentAsExpression/AssignmentAsExpression.cc

@@ -1,22 +1,23 @@
-/**
-* Copyright (c) 2012 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 handle;
-	assignmentAsExpression_init(&handle);
-	assignmentAsExpression_enter(&handle);
-	EXPECT_TRUE(assignmentAsExpression_isActive(&handle, AssignmentAsExpression_main_region_A));
-	EXPECT_TRUE(assignmentAsExpressionIface_get_b(&handle) == 5);
-	EXPECT_TRUE(assignmentAsExpressionIface_get_a(&handle) == 9);
-}
+/**
+* Copyright (c) 2012 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 handle;
+	assignmentAsExpression_init(&handle);
+	assignmentAsExpression_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(assignmentAsExpression_isActive(&handle, AssignmentAsExpression_main_region_A));
+	EXPECT_TRUE(assignmentAsExpressionIface_get_b(&handle)== 5);
+	EXPECT_TRUE(assignmentAsExpressionIface_get_a(&handle)== 9);
+}

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

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

+ 32 - 31
test-plugins/org.yakindu.sct.generator.c.test/gtests/BitExpressions/BitExpressions.cc

@@ -1,31 +1,32 @@
-/**
-* Copyright (c) 2012 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 handle;
-	bitExpressions_init(&handle);
-	bitExpressions_enter(&handle);
-	EXPECT_TRUE(bitExpressions_isActive(&handle, BitExpressions_main_region_StateA));
-	EXPECT_TRUE(bitExpressionsIface_get_myBit1(&handle) == 5);
-	EXPECT_TRUE(bitExpressionsIface_get_myBit2(&handle) == 7);
-	bitExpressionsIface_raise_e1(&handle);
-	bitExpressions_runCycle(&handle);
-	EXPECT_TRUE(bitExpressions_isActive(&handle, BitExpressions_main_region_StateB));
-	EXPECT_TRUE(bitExpressionsIface_get_leftBitshift(&handle) == 10);
-	EXPECT_TRUE(bitExpressionsIface_get_rightBitshift(&handle) == 2);
-	EXPECT_TRUE(bitExpressionsIface_get_complementBitshift(&handle) == - 6 );
-	EXPECT_TRUE(bitExpressionsIface_get_bitwiseAnd(&handle) == 5);
-	EXPECT_TRUE(bitExpressionsIface_get_bitwiseOr(&handle) == 7);
-	EXPECT_TRUE(bitExpressionsIface_get_bitwiseXor(&handle) == 2);
-}
+/**
+* Copyright (c) 2012 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 handle;
+	bitExpressions_init(&handle);
+	bitExpressions_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(bitExpressions_isActive(&handle, BitExpressions_main_region_StateA));
+	EXPECT_TRUE(bitExpressionsIface_get_myBit1(&handle)== 5);
+	EXPECT_TRUE(bitExpressionsIface_get_myBit2(&handle)== 7);
+	bitExpressionsIface_raise_e1(&handle);
+	bitExpressions_runCycle(&handle);
+	EXPECT_TRUE(bitExpressions_isActive(&handle, BitExpressions_main_region_StateB));
+	EXPECT_TRUE(bitExpressionsIface_get_leftBitshift(&handle)== 10);
+	EXPECT_TRUE(bitExpressionsIface_get_rightBitshift(&handle)== 2);
+	EXPECT_TRUE(bitExpressionsIface_get_complementBitshift(&handle)== - 6 );
+	EXPECT_TRUE(bitExpressionsIface_get_bitwiseAnd(&handle)== 5);
+	EXPECT_TRUE(bitExpressionsIface_get_bitwiseOr(&handle)== 7);
+	EXPECT_TRUE(bitExpressionsIface_get_bitwiseXor(&handle)== 2);
+}

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

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

+ 31 - 30
test-plugins/org.yakindu.sct.generator.c.test/gtests/BooleanExpressions/BooleanExpressions.cc

@@ -1,30 +1,31 @@
-/**
-* Copyright (c) 2012 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 handle;
-	booleanExpressions_init(&handle);
-	booleanExpressions_enter(&handle);
-	EXPECT_TRUE(booleanExpressions_isActive(&handle, BooleanExpressions_main_region_StateA));
-	EXPECT_TRUE(booleanExpressionsIface_get_myBool1(&handle) == true);
-	EXPECT_TRUE(booleanExpressionsIface_get_myBool2(&handle) == false);
-	booleanExpressionsIface_raise_e1(&handle);
-	booleanExpressions_runCycle(&handle);
-	EXPECT_TRUE(booleanExpressions_isActive(&handle, BooleanExpressions_main_region_StateB));
-	EXPECT_TRUE(booleanExpressionsIface_get_and(&handle) == false);
-	EXPECT_TRUE(booleanExpressionsIface_get_or(&handle) == true);
-	EXPECT_TRUE(booleanExpressionsIface_get_not(&handle) == false);
-	EXPECT_TRUE(booleanExpressionsIface_get_equal(&handle) == false);
-	EXPECT_TRUE(booleanExpressionsIface_get_notequal(&handle) == true);
-}
+/**
+* Copyright (c) 2012 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 handle;
+	booleanExpressions_init(&handle);
+	booleanExpressions_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(booleanExpressions_isActive(&handle, BooleanExpressions_main_region_StateA));
+	EXPECT_TRUE(booleanExpressionsIface_get_myBool1(&handle)== true);
+	EXPECT_TRUE(booleanExpressionsIface_get_myBool2(&handle)== false);
+	booleanExpressionsIface_raise_e1(&handle);
+	booleanExpressions_runCycle(&handle);
+	EXPECT_TRUE(booleanExpressions_isActive(&handle, BooleanExpressions_main_region_StateB));
+	EXPECT_TRUE(booleanExpressionsIface_get_and(&handle)== false);
+	EXPECT_TRUE(booleanExpressionsIface_get_or(&handle)== true);
+	EXPECT_TRUE(booleanExpressionsIface_get_not(&handle)== false);
+	EXPECT_TRUE(booleanExpressionsIface_get_equal(&handle)== false);
+	EXPECT_TRUE(booleanExpressionsIface_get_notequal(&handle)== true);
+}

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

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

+ 26 - 25
test-plugins/org.yakindu.sct.generator.c.test/gtests/CKeywords/CKeywords.cc

@@ -1,25 +1,26 @@
-/**
-* Copyright (c) 2012 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 handle;
-	cKeywords_init(&handle);
-	cKeywords_enter(&handle);
-	EXPECT_TRUE(cKeywords_isActive(&handle, CKeywords_auto_char));
-	cKeywordsIface_raise_auto(&handle);
-	cKeywords_runCycle(&handle);
-	EXPECT_TRUE(cKeywords_isActive(&handle, CKeywords_auto_const));
-	EXPECT_TRUE(cKeywords_isActive(&handle, CKeywords_auto_const_switch_case));
-	EXPECT_TRUE(cKeywords_isActive(&handle, CKeywords_auto_const_switch_case_enum_asm));
-}
+/**
+* Copyright (c) 2012 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 handle;
+	cKeywords_init(&handle);
+	cKeywords_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(cKeywords_isActive(&handle, CKeywords_auto_char));
+	cKeywordsIface_raise_auto(&handle);
+	cKeywords_runCycle(&handle);
+	EXPECT_TRUE(cKeywords_isActive(&handle, CKeywords_auto_const));
+	EXPECT_TRUE(cKeywords_isActive(&handle, CKeywords_auto_const_switch_case));
+	EXPECT_TRUE(cKeywords_isActive(&handle, CKeywords_auto_const_switch_case_enum_asm));
+}

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

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

+ 48 - 47
test-plugins/org.yakindu.sct.generator.c.test/gtests/Choice/Choice.cc

@@ -1,47 +1,48 @@
-/**
-* Copyright (c) 2012 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, choiceTest) {
-	Choice handle;
-	choice_init(&handle);
-	choice_enter(&handle);
-	EXPECT_TRUE(choice_isActive(&handle, Choice_main_region_A));
-	EXPECT_TRUE(choiceIface_get_value(&handle) == 4);
-	choiceIface_raise_pressKey(&handle);
-	choice_runCycle(&handle);
-	EXPECT_TRUE(choice_isActive(&handle, Choice_main_region_B));
-	EXPECT_TRUE(choiceIface_get_value(&handle) == 3);
-	choiceIface_raise_pressKey(&handle);
-	choice_runCycle(&handle);
-	EXPECT_TRUE(choice_isActive(&handle, Choice_main_region_A));
-	choiceIface_raise_pressKey(&handle);
-	choice_runCycle(&handle);
-	EXPECT_TRUE(choice_isActive(&handle, Choice_main_region_C));
-	EXPECT_TRUE(choiceIface_get_value(&handle) == 2);
-	choiceIface_raise_pressKey(&handle);
-	choice_runCycle(&handle);
-	EXPECT_TRUE(choice_isActive(&handle, Choice_main_region_B));
-	EXPECT_TRUE(choiceIface_get_value(&handle) == 1);
-	choiceIface_raise_pressKey(&handle);
-	choice_runCycle(&handle);
-	EXPECT_TRUE(choice_isActive(&handle, Choice_main_region_A));
-	EXPECT_TRUE(choiceIface_get_value(&handle) == 1);
-	choiceIface_raise_pressKey(&handle);
-	choice_runCycle(&handle);
-	EXPECT_TRUE(choice_isActive(&handle, Choice_main_region_C));
-	EXPECT_TRUE(choiceIface_get_value(&handle) == 0);
-	choiceIface_raise_pressKey(&handle);
-	choice_runCycle(&handle);
-	EXPECT_TRUE(choice_isActive(&handle, Choice_main_region_A));
-}
+/**
+* Copyright (c) 2012 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, choiceTest) {
+	Choice handle;
+	choice_init(&handle);
+	choice_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(choice_isActive(&handle, Choice_main_region_A));
+	EXPECT_TRUE(choiceIface_get_value(&handle)== 4);
+	choiceIface_raise_pressKey(&handle);
+	choice_runCycle(&handle);
+	EXPECT_TRUE(choice_isActive(&handle, Choice_main_region_B));
+	EXPECT_TRUE(choiceIface_get_value(&handle)== 3);
+	choiceIface_raise_pressKey(&handle);
+	choice_runCycle(&handle);
+	EXPECT_TRUE(choice_isActive(&handle, Choice_main_region_A));
+	choiceIface_raise_pressKey(&handle);
+	choice_runCycle(&handle);
+	EXPECT_TRUE(choice_isActive(&handle, Choice_main_region_C));
+	EXPECT_TRUE(choiceIface_get_value(&handle)== 2);
+	choiceIface_raise_pressKey(&handle);
+	choice_runCycle(&handle);
+	EXPECT_TRUE(choice_isActive(&handle, Choice_main_region_B));
+	EXPECT_TRUE(choiceIface_get_value(&handle)== 1);
+	choiceIface_raise_pressKey(&handle);
+	choice_runCycle(&handle);
+	EXPECT_TRUE(choice_isActive(&handle, Choice_main_region_A));
+	EXPECT_TRUE(choiceIface_get_value(&handle)== 1);
+	choiceIface_raise_pressKey(&handle);
+	choice_runCycle(&handle);
+	EXPECT_TRUE(choice_isActive(&handle, Choice_main_region_C));
+	EXPECT_TRUE(choiceIface_get_value(&handle)== 0);
+	choiceIface_raise_pressKey(&handle);
+	choice_runCycle(&handle);
+	EXPECT_TRUE(choice_isActive(&handle, Choice_main_region_A));
+}

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

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

+ 38 - 37
test-plugins/org.yakindu.sct.generator.c.test/gtests/DeepHistory/DeepHistory.cc

@@ -1,37 +1,38 @@
-/**
-* Copyright (c) 2012 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 handle;
-	deepHistory_init(&handle);
-	deepHistory_enter(&handle);
-	deepHistoryIface_raise_event1(&handle);
-	deepHistory_runCycle(&handle);
-	deepHistoryIface_raise_event3(&handle);
-	deepHistory_runCycle(&handle);
-	deepHistoryIface_raise_event5(&handle);
-	deepHistory_runCycle(&handle);
-	deepHistoryIface_raise_event7(&handle);
-	deepHistory_runCycle(&handle);
-	EXPECT_TRUE(!deepHistory_isActive(&handle, DeepHistory_mainRegion_State1));
-	EXPECT_TRUE(deepHistory_isActive(&handle, DeepHistory_mainRegion_State2__region0_State4__region0_State7__region0_State9));
-	deepHistoryIface_raise_event2(&handle);
-	deepHistory_runCycle(&handle);
-	EXPECT_TRUE(deepHistory_isActive(&handle, DeepHistory_mainRegion_State1));
-	EXPECT_TRUE(!deepHistory_isActive(&handle, DeepHistory_mainRegion_State2__region0_State4__region0_State7__region0_State9));
-	deepHistoryIface_raise_event1(&handle);
-	deepHistory_runCycle(&handle);
-	EXPECT_TRUE(!deepHistory_isActive(&handle, DeepHistory_mainRegion_State1));
-	EXPECT_TRUE(deepHistory_isActive(&handle, DeepHistory_mainRegion_State2__region0_State4__region0_State7__region0_State9));
-}
+/**
+* Copyright (c) 2012 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 handle;
+	deepHistory_init(&handle);
+	deepHistory_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	deepHistoryIface_raise_event1(&handle);
+	deepHistory_runCycle(&handle);
+	deepHistoryIface_raise_event3(&handle);
+	deepHistory_runCycle(&handle);
+	deepHistoryIface_raise_event5(&handle);
+	deepHistory_runCycle(&handle);
+	deepHistoryIface_raise_event7(&handle);
+	deepHistory_runCycle(&handle);
+	EXPECT_TRUE(!deepHistory_isActive(&handle, DeepHistory_mainRegion_State1));
+	EXPECT_TRUE(deepHistory_isActive(&handle, DeepHistory_mainRegion_State2__region0_State4__region0_State7__region0_State9));
+	deepHistoryIface_raise_event2(&handle);
+	deepHistory_runCycle(&handle);
+	EXPECT_TRUE(deepHistory_isActive(&handle, DeepHistory_mainRegion_State1));
+	EXPECT_TRUE(!deepHistory_isActive(&handle, DeepHistory_mainRegion_State2__region0_State4__region0_State7__region0_State9));
+	deepHistoryIface_raise_event1(&handle);
+	deepHistory_runCycle(&handle);
+	EXPECT_TRUE(!deepHistory_isActive(&handle, DeepHistory_mainRegion_State1));
+	EXPECT_TRUE(deepHistory_isActive(&handle, DeepHistory_mainRegion_State2__region0_State4__region0_State7__region0_State9));
+}

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

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

+ 31 - 30
test-plugins/org.yakindu.sct.generator.c.test/gtests/ExitOnSelfTransition/ExitOnSelfTransition.cc

@@ -1,30 +1,31 @@
-/**
-* Copyright (c) 2012 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 handle;
-	exitOnSelfTransition_init(&handle);
-	exitOnSelfTransition_enter(&handle);
-	EXPECT_TRUE(exitOnSelfTransition_isActive(&handle, ExitOnSelfTransition_main_region_A));
-	EXPECT_TRUE(exitOnSelfTransitionIface_get_entryCount(&handle) == 1);
-	EXPECT_TRUE(exitOnSelfTransitionIface_get_exitCount(&handle) == 0);
-	exitOnSelfTransitionIface_raise_e(&handle);
-	exitOnSelfTransition_runCycle(&handle);
-	EXPECT_TRUE(exitOnSelfTransitionIface_get_entryCount(&handle) == 2);
-	EXPECT_TRUE(exitOnSelfTransitionIface_get_exitCount(&handle) == 1);
-	exitOnSelfTransitionIface_raise_f(&handle);
-	exitOnSelfTransition_runCycle(&handle);
-	EXPECT_TRUE(exitOnSelfTransitionIface_get_entryCount(&handle) == 2);
-	EXPECT_TRUE(exitOnSelfTransitionIface_get_exitCount(&handle) == 2);
-}
+/**
+* Copyright (c) 2012 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 handle;
+	exitOnSelfTransition_init(&handle);
+	exitOnSelfTransition_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(exitOnSelfTransition_isActive(&handle, ExitOnSelfTransition_main_region_A));
+	EXPECT_TRUE(exitOnSelfTransitionIface_get_entryCount(&handle)== 1);
+	EXPECT_TRUE(exitOnSelfTransitionIface_get_exitCount(&handle)== 0);
+	exitOnSelfTransitionIface_raise_e(&handle);
+	exitOnSelfTransition_runCycle(&handle);
+	EXPECT_TRUE(exitOnSelfTransitionIface_get_entryCount(&handle)== 2);
+	EXPECT_TRUE(exitOnSelfTransitionIface_get_exitCount(&handle)== 1);
+	exitOnSelfTransitionIface_raise_f(&handle);
+	exitOnSelfTransition_runCycle(&handle);
+	EXPECT_TRUE(exitOnSelfTransitionIface_get_entryCount(&handle)== 2);
+	EXPECT_TRUE(exitOnSelfTransitionIface_get_exitCount(&handle)== 2);
+}

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

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

+ 36 - 35
test-plugins/org.yakindu.sct.generator.c.test/gtests/Guard/Guard.cc

@@ -1,35 +1,36 @@
-/**
-* Copyright (c) 2012 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 handle;
-	guard_init(&handle);
-	guard_enter(&handle);
-	EXPECT_TRUE(guard_isActive(&handle, Guard_main_region_A));
-	guardIface_raise_event1(&handle);
-	guard_runCycle(&handle);
-	EXPECT_TRUE(guard_isActive(&handle, Guard_main_region_A));
-	guardIface_raise_event2(&handle);
-	guard_runCycle(&handle);
-	EXPECT_TRUE(guard_isActive(&handle, Guard_main_region_B));
-	guardIface_raise_return(&handle);
-	guard_runCycle(&handle);
-	EXPECT_TRUE(guard_isActive(&handle, Guard_main_region_A));
-	guardIface_raise_event1(&handle);
-	guard_runCycle(&handle);
-	EXPECT_TRUE(guard_isActive(&handle, Guard_main_region_B));
-	guardIface_raise_return(&handle);
-	guard_runCycle(&handle);
-	EXPECT_TRUE(guard_isActive(&handle, Guard_main_region_A));
-}
+/**
+* Copyright (c) 2012 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 handle;
+	guard_init(&handle);
+	guard_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(guard_isActive(&handle, Guard_main_region_A));
+	guardIface_raise_event1(&handle);
+	guard_runCycle(&handle);
+	EXPECT_TRUE(guard_isActive(&handle, Guard_main_region_A));
+	guardIface_raise_event2(&handle);
+	guard_runCycle(&handle);
+	EXPECT_TRUE(guard_isActive(&handle, Guard_main_region_B));
+	guardIface_raise_return(&handle);
+	guard_runCycle(&handle);
+	EXPECT_TRUE(guard_isActive(&handle, Guard_main_region_A));
+	guardIface_raise_event1(&handle);
+	guard_runCycle(&handle);
+	EXPECT_TRUE(guard_isActive(&handle, Guard_main_region_B));
+	guardIface_raise_return(&handle);
+	guard_runCycle(&handle);
+	EXPECT_TRUE(guard_isActive(&handle, Guard_main_region_A));
+}

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

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

+ 64 - 60
test-plugins/org.yakindu.sct.generator.c.test/gtests/GuardedEntry/GuardedEntry.cc

@@ -1,60 +1,64 @@
-/**
-* Copyright (c) 2012 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 handle;
-	guardedEntry_init(&handle);
-	guardedEntry_enter(&handle);
-	EXPECT_TRUE(guardedEntry_isActive(&handle, GuardedEntry_main_region_A));
-	EXPECT_TRUE(guardedEntryIface_get_done(&handle) == false);
-}
-TEST(StatemachineTest, EntryTakenOnStatechartEnter) {
-	GuardedEntry handle;
-	guardedEntry_init(&handle);
-	guardedEntry_enter(&handle);
-	guardedEntryIface_set_guard(&handle, true);
-	EXPECT_TRUE(false);
-	EXPECT_TRUE(guardedEntry_isActive(&handle, GuardedEntry_main_region_A));
-	EXPECT_TRUE(guardedEntryIface_get_done(&handle) == true);
-}
-TEST(StatemachineTest, EntryTakenInTransition) {
-	GuardedEntry handle;
-	guardedEntry_init(&handle);
-	guardedEntry_enter(&handle);
-	EXPECT_TRUE(guardedEntry_isActive(&handle, GuardedEntry_main_region_A));
-	guardedEntryIface_raise_e(&handle);
-	guardedEntry_runCycle(&handle);
-	EXPECT_TRUE(guardedEntry_isActive(&handle, GuardedEntry_main_region_B));
-	guardedEntryIface_set_guard(&handle, true);
-	guardedEntryIface_set_done(&handle, false);
-	guardedEntryIface_raise_e(&handle);
-	guardedEntry_runCycle(&handle);
-	EXPECT_TRUE(guardedEntry_isActive(&handle, GuardedEntry_main_region_A));
-	EXPECT_TRUE(guardedEntryIface_get_done(&handle));
-}
-TEST(StatemachineTest, EntryNotTakenInTransition) {
-	GuardedEntry handle;
-	guardedEntry_init(&handle);
-	guardedEntry_enter(&handle);
-	EXPECT_TRUE(guardedEntry_isActive(&handle, GuardedEntry_main_region_A));
-	guardedEntryIface_raise_e(&handle);
-	guardedEntry_runCycle(&handle);
-	EXPECT_TRUE(guardedEntry_isActive(&handle, GuardedEntry_main_region_B));
-	guardedEntryIface_set_guard(&handle, false);
-	guardedEntryIface_set_done(&handle, false);
-	guardedEntryIface_raise_e(&handle);
-	guardedEntry_runCycle(&handle);
-	EXPECT_TRUE(guardedEntry_isActive(&handle, GuardedEntry_main_region_A));
-	EXPECT_TRUE(!guardedEntryIface_get_done(&handle));
-}
+/**
+* Copyright (c) 2012 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 handle;
+	guardedEntry_init(&handle);
+	guardedEntry_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(guardedEntry_isActive(&handle, GuardedEntry_main_region_A));
+	EXPECT_TRUE(guardedEntryIface_get_done(&handle)== false);
+}
+TEST(StatemachineTest, EntryTakenOnStatechartEnter) {
+	GuardedEntry handle;
+	guardedEntry_init(&handle);
+	guardedEntry_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	guardedEntryIface_set_guard(&handle, true);
+	EXPECT_TRUE(false);
+	EXPECT_TRUE(guardedEntry_isActive(&handle, GuardedEntry_main_region_A));
+	EXPECT_TRUE(guardedEntryIface_get_done(&handle)== true);
+}
+TEST(StatemachineTest, EntryTakenInTransition) {
+	GuardedEntry handle;
+	guardedEntry_init(&handle);
+	guardedEntry_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(guardedEntry_isActive(&handle, GuardedEntry_main_region_A));
+	guardedEntryIface_raise_e(&handle);
+	guardedEntry_runCycle(&handle);
+	EXPECT_TRUE(guardedEntry_isActive(&handle, GuardedEntry_main_region_B));
+	guardedEntryIface_set_guard(&handle, true);
+	guardedEntryIface_set_done(&handle, false);
+	guardedEntryIface_raise_e(&handle);
+	guardedEntry_runCycle(&handle);
+	EXPECT_TRUE(guardedEntry_isActive(&handle, GuardedEntry_main_region_A));
+	EXPECT_TRUE(guardedEntryIface_get_done(&handle));
+}
+TEST(StatemachineTest, EntryNotTakenInTransition) {
+	GuardedEntry handle;
+	guardedEntry_init(&handle);
+	guardedEntry_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(guardedEntry_isActive(&handle, GuardedEntry_main_region_A));
+	guardedEntryIface_raise_e(&handle);
+	guardedEntry_runCycle(&handle);
+	EXPECT_TRUE(guardedEntry_isActive(&handle, GuardedEntry_main_region_B));
+	guardedEntryIface_set_guard(&handle, false);
+	guardedEntryIface_set_done(&handle, false);
+	guardedEntryIface_raise_e(&handle);
+	guardedEntry_runCycle(&handle);
+	EXPECT_TRUE(guardedEntry_isActive(&handle, GuardedEntry_main_region_A));
+	EXPECT_TRUE(!guardedEntryIface_get_done(&handle));
+}

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

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

+ 38 - 36
test-plugins/org.yakindu.sct.generator.c.test/gtests/GuardedExit/GuardedExit.cc

@@ -1,36 +1,38 @@
-/**
-* Copyright (c) 2012 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 handle;
-	guardedExit_init(&handle);
-	guardedExit_enter(&handle);
-	EXPECT_TRUE(guardedExit_isActive(&handle, GuardedExit_main_region_A));
-	EXPECT_TRUE(!guardedExitIface_get_guard(&handle));
-	guardedExitIface_raise_e(&handle);
-	guardedExit_runCycle(&handle);
-	EXPECT_TRUE(guardedExit_isActive(&handle, GuardedExit_main_region_B));
-	EXPECT_TRUE(!guardedExitIface_get_done(&handle));
-}
-TEST(StatemachineTest, ExitNotTaken) {
-	GuardedExit handle;
-	guardedExit_init(&handle);
-	guardedExit_enter(&handle);
-	EXPECT_TRUE(guardedExit_isActive(&handle, GuardedExit_main_region_A));
-	guardedExitIface_set_guard(&handle, true);
-	guardedExitIface_raise_e(&handle);
-	guardedExit_runCycle(&handle);
-	EXPECT_TRUE(guardedExit_isActive(&handle, GuardedExit_main_region_B));
-	EXPECT_TRUE(guardedExitIface_get_done(&handle));
-}
+/**
+* Copyright (c) 2012 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 handle;
+	guardedExit_init(&handle);
+	guardedExit_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(guardedExit_isActive(&handle, GuardedExit_main_region_A));
+	EXPECT_TRUE(!guardedExitIface_get_guard(&handle));
+	guardedExitIface_raise_e(&handle);
+	guardedExit_runCycle(&handle);
+	EXPECT_TRUE(guardedExit_isActive(&handle, GuardedExit_main_region_B));
+	EXPECT_TRUE(!guardedExitIface_get_done(&handle));
+}
+TEST(StatemachineTest, ExitNotTaken) {
+	GuardedExit handle;
+	guardedExit_init(&handle);
+	guardedExit_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(guardedExit_isActive(&handle, GuardedExit_main_region_A));
+	guardedExitIface_set_guard(&handle, true);
+	guardedExitIface_raise_e(&handle);
+	guardedExit_runCycle(&handle);
+	EXPECT_TRUE(guardedExit_isActive(&handle, GuardedExit_main_region_B));
+	EXPECT_TRUE(guardedExitIface_get_done(&handle));
+}

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

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

+ 42 - 41
test-plugins/org.yakindu.sct.generator.c.test/gtests/IntegerExpressions/IntegerExpressions.cc

@@ -1,41 +1,42 @@
-/**
-* Copyright (c) 2012 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 handle;
-	integerExpressions_init(&handle);
-	integerExpressions_enter(&handle);
-	EXPECT_TRUE(integerExpressions_isActive(&handle, IntegerExpressions_main_region_StateA));
-	EXPECT_TRUE(integerExpressionsIface_get_myInt1(&handle) == 10);
-	EXPECT_TRUE(integerExpressionsIface_get_myInt2(&handle) == 5);
-	integerExpressionsIface_raise_e1(&handle);
-	integerExpressions_runCycle(&handle);
-	EXPECT_TRUE(integerExpressionsIface_get_less(&handle) == false);
-	EXPECT_TRUE(integerExpressionsIface_get_greater(&handle) == true);
-	EXPECT_TRUE(integerExpressionsIface_get_equalOrLess(&handle) == false);
-	EXPECT_TRUE(integerExpressionsIface_get_equalOrGreater(&handle) == true);
-	EXPECT_TRUE(integerExpressionsIface_get_equal(&handle) == false);
-	EXPECT_TRUE(integerExpressionsIface_get_notEqual(&handle) == true);
-	EXPECT_TRUE(integerExpressionsIface_get_plus(&handle) == 15);
-	EXPECT_TRUE(integerExpressionsIface_get_minus(&handle) == 5);
-	EXPECT_TRUE(integerExpressionsIface_get_multiply(&handle) == 50);
-	EXPECT_TRUE(integerExpressionsIface_get_division(&handle) == 2);
-	EXPECT_TRUE(integerExpressionsIface_get_modulo(&handle) == 0);
-	EXPECT_TRUE(integerExpressionsIface_get_negat(&handle) == - 10 );
-	EXPECT_TRUE(integerExpressionsIface_get_multiAssign(&handle) == 20);
-	EXPECT_TRUE(integerExpressionsIface_get_divAssign(&handle) == 2);
-	EXPECT_TRUE(integerExpressionsIface_get_plusAssign(&handle) == 12);
-	EXPECT_TRUE(integerExpressionsIface_get_minusAssign(&handle) == - 8 );
-	EXPECT_TRUE(integerExpressionsIface_get_moduloAssign(&handle) == 0);
-}
+/**
+* Copyright (c) 2012 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 handle;
+	integerExpressions_init(&handle);
+	integerExpressions_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(integerExpressions_isActive(&handle, IntegerExpressions_main_region_StateA));
+	EXPECT_TRUE(integerExpressionsIface_get_myInt1(&handle)== 10);
+	EXPECT_TRUE(integerExpressionsIface_get_myInt2(&handle)== 5);
+	integerExpressionsIface_raise_e1(&handle);
+	integerExpressions_runCycle(&handle);
+	EXPECT_TRUE(integerExpressionsIface_get_less(&handle)== false);
+	EXPECT_TRUE(integerExpressionsIface_get_greater(&handle)== true);
+	EXPECT_TRUE(integerExpressionsIface_get_equalOrLess(&handle)== false);
+	EXPECT_TRUE(integerExpressionsIface_get_equalOrGreater(&handle)== true);
+	EXPECT_TRUE(integerExpressionsIface_get_equal(&handle)== false);
+	EXPECT_TRUE(integerExpressionsIface_get_notEqual(&handle)== true);
+	EXPECT_TRUE(integerExpressionsIface_get_plus(&handle)== 15);
+	EXPECT_TRUE(integerExpressionsIface_get_minus(&handle)== 5);
+	EXPECT_TRUE(integerExpressionsIface_get_multiply(&handle)== 50);
+	EXPECT_TRUE(integerExpressionsIface_get_division(&handle)== 2);
+	EXPECT_TRUE(integerExpressionsIface_get_modulo(&handle)== 0);
+	EXPECT_TRUE(integerExpressionsIface_get_negat(&handle)== - 10 );
+	EXPECT_TRUE(integerExpressionsIface_get_multiAssign(&handle)== 20);
+	EXPECT_TRUE(integerExpressionsIface_get_divAssign(&handle)== 2);
+	EXPECT_TRUE(integerExpressionsIface_get_plusAssign(&handle)== 12);
+	EXPECT_TRUE(integerExpressionsIface_get_minusAssign(&handle)== - 8 );
+	EXPECT_TRUE(integerExpressionsIface_get_moduloAssign(&handle)== 0);
+}

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

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

+ 36 - 35
test-plugins/org.yakindu.sct.generator.c.test/gtests/InternalEventLifeCycle/InternalEventLifeCycle.cc

@@ -1,35 +1,36 @@
-/**
-* Copyright (c) 2012 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 handle;
-	internalEventLifeCycle_init(&handle);
-	internalEventLifeCycle_enter(&handle);
-	EXPECT_TRUE(internalEventLifeCycle_isActive(&handle, InternalEventLifeCycle_r1_A));
-	EXPECT_TRUE(internalEventLifeCycle_isActive(&handle, InternalEventLifeCycle_r2_C));
-	internalEventLifeCycleIface_raise_e(&handle);
-	internalEventLifeCycle_runCycle(&handle);
-	EXPECT_TRUE(internalEventLifeCycle_isActive(&handle, InternalEventLifeCycle_r1_A));
-	EXPECT_TRUE(internalEventLifeCycle_isActive(&handle, InternalEventLifeCycle_r2_D));
-	internalEventLifeCycle_runCycle(&handle);
-	EXPECT_TRUE(internalEventLifeCycle_isActive(&handle, InternalEventLifeCycle_r1_A));
-	EXPECT_TRUE(internalEventLifeCycle_isActive(&handle, InternalEventLifeCycle_r2_D));
-	internalEventLifeCycleIface_raise_f(&handle);
-	internalEventLifeCycle_runCycle(&handle);
-	EXPECT_TRUE(internalEventLifeCycle_isActive(&handle, InternalEventLifeCycle_r1_A));
-	EXPECT_TRUE(internalEventLifeCycle_isActive(&handle, InternalEventLifeCycle_r2_C));
-	internalEventLifeCycle_runCycle(&handle);
-	EXPECT_TRUE(internalEventLifeCycle_isActive(&handle, InternalEventLifeCycle_r1_A));
-	EXPECT_TRUE(internalEventLifeCycle_isActive(&handle, InternalEventLifeCycle_r2_C));
-}
+/**
+* Copyright (c) 2012 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 handle;
+	internalEventLifeCycle_init(&handle);
+	internalEventLifeCycle_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(internalEventLifeCycle_isActive(&handle, InternalEventLifeCycle_r1_A));
+	EXPECT_TRUE(internalEventLifeCycle_isActive(&handle, InternalEventLifeCycle_r2_C));
+	internalEventLifeCycleIface_raise_e(&handle);
+	internalEventLifeCycle_runCycle(&handle);
+	EXPECT_TRUE(internalEventLifeCycle_isActive(&handle, InternalEventLifeCycle_r1_A));
+	EXPECT_TRUE(internalEventLifeCycle_isActive(&handle, InternalEventLifeCycle_r2_D));
+	internalEventLifeCycle_runCycle(&handle);
+	EXPECT_TRUE(internalEventLifeCycle_isActive(&handle, InternalEventLifeCycle_r1_A));
+	EXPECT_TRUE(internalEventLifeCycle_isActive(&handle, InternalEventLifeCycle_r2_D));
+	internalEventLifeCycleIface_raise_f(&handle);
+	internalEventLifeCycle_runCycle(&handle);
+	EXPECT_TRUE(internalEventLifeCycle_isActive(&handle, InternalEventLifeCycle_r1_A));
+	EXPECT_TRUE(internalEventLifeCycle_isActive(&handle, InternalEventLifeCycle_r2_C));
+	internalEventLifeCycle_runCycle(&handle);
+	EXPECT_TRUE(internalEventLifeCycle_isActive(&handle, InternalEventLifeCycle_r1_A));
+	EXPECT_TRUE(internalEventLifeCycle_isActive(&handle, InternalEventLifeCycle_r2_C));
+}

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

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

+ 2 - 1
test-plugins/org.yakindu.sct.generator.c.test/gtests/Parenthesis/Parenthesis.cc

@@ -16,6 +16,7 @@ TEST(StatemachineTest, simple) {
 	Parenthesis handle;
 	parenthesis_init(&handle);
 	parenthesis_enter(&handle);
+	//statechart.enterFunctionName(&handle);
 	EXPECT_TRUE(parenthesis_isActive(&handle, Parenthesis_mainRegion_A));
-	EXPECT_TRUE(parenthesisIface_get_erg(&handle) == 8);
+	EXPECT_TRUE(parenthesisIface_get_erg(&handle)== 8);
 }

+ 8 - 8
test-plugins/org.yakindu.sct.generator.c.test/gtests/PerformanceTests/PerformanceTest.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::c {
-	statechart PerformanceTest {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "PerformanceTests"
-		}
-	}
-}
+GeneratorModel for yakindu::c {
+	statechart PerformanceTest {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "PerformanceTests"
+		}
+	}
+}

+ 83 - 80
test-plugins/org.yakindu.sct.generator.c.test/gtests/PerformanceTests/PerformanceTests.cc

@@ -1,80 +1,83 @@
-/**
-* Copyright (c) 2012 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 "PerformanceTest.h"
-
-TEST(StatemachineTest, test_100_000) {
-	PerformanceTest handle;
-	performanceTest_init(&handle);
-	performanceTest_enter(&handle);
-	EXPECT_TRUE(performanceTest_isActive(&handle, PerformanceTest_mr_A));
-	while (performanceTestIface_get_c(&handle) < 100000) {
-		if (performanceTest_isActive(&handle, PerformanceTest_mr_A)) {
-					performanceTestIface_raise_e1(&handle);;
-				  }
-				else {
-					if (performanceTestIface_get_c(&handle) % 2 == 0) {
-								performanceTestIface_raise_e2(&handle);;
-							  }
-							else {
-								performanceTestIface_raise_e3(&handle);;
-							}
-					;
-				}
-		performanceTest_runCycle(&handle);
-	}
-	EXPECT_TRUE(performanceTestIface_get_a(&handle) > 2);
-}
-TEST(StatemachineTest, test_1_000_000) {
-	PerformanceTest handle;
-	performanceTest_init(&handle);
-	performanceTest_enter(&handle);
-	EXPECT_TRUE(performanceTest_isActive(&handle, PerformanceTest_mr_A));
-	while (performanceTestIface_get_c(&handle) < 1000000) {
-		if (performanceTest_isActive(&handle, PerformanceTest_mr_A)) {
-					performanceTestIface_raise_e1(&handle);;
-				  }
-				else {
-					if (performanceTestIface_get_c(&handle) % 2 == 0) {
-								performanceTestIface_raise_e2(&handle);;
-							  }
-							else {
-								performanceTestIface_raise_e3(&handle);;
-							}
-					;
-				}
-		performanceTest_runCycle(&handle);
-	}
-	EXPECT_TRUE(performanceTestIface_get_a(&handle) > 2);
-}
-TEST(StatemachineTest, test_10_000_000) {
-	PerformanceTest handle;
-	performanceTest_init(&handle);
-	performanceTest_enter(&handle);
-	EXPECT_TRUE(performanceTest_isActive(&handle, PerformanceTest_mr_A));
-	while (performanceTestIface_get_c(&handle) < 10000000) {
-		if (performanceTest_isActive(&handle, PerformanceTest_mr_A)) {
-					performanceTestIface_raise_e1(&handle);;
-				  }
-				else {
-					if (performanceTestIface_get_c(&handle) % 2 == 0) {
-								performanceTestIface_raise_e2(&handle);;
-							  }
-							else {
-								performanceTestIface_raise_e3(&handle);;
-							}
-					;
-				}
-		performanceTest_runCycle(&handle);
-	}
-	EXPECT_TRUE(performanceTestIface_get_a(&handle) > 2);
-}
+/**
+* Copyright (c) 2012 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 "PerformanceTest.h"
+
+TEST(StatemachineTest, test_100_000) {
+	PerformanceTest handle;
+	performanceTest_init(&handle);
+	performanceTest_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(performanceTest_isActive(&handle, PerformanceTest_mr_A));
+	while (performanceTestIface_get_c(&handle)< 100000) {
+		if (performanceTest_isActive(&handle, PerformanceTest_mr_A)) {
+					performanceTestIface_raise_e1(&handle);;
+				  }
+				else {
+					if (performanceTestIface_get_c(&handle)%2== 0) {
+								performanceTestIface_raise_e2(&handle);;
+							  }
+							else {
+								performanceTestIface_raise_e3(&handle);;
+							}
+					;
+				}
+		performanceTest_runCycle(&handle);
+	}
+	EXPECT_TRUE(performanceTestIface_get_a(&handle)> 2);
+}
+TEST(StatemachineTest, test_1_000_000) {
+	PerformanceTest handle;
+	performanceTest_init(&handle);
+	performanceTest_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(performanceTest_isActive(&handle, PerformanceTest_mr_A));
+	while (performanceTestIface_get_c(&handle)< 1000000) {
+		if (performanceTest_isActive(&handle, PerformanceTest_mr_A)) {
+					performanceTestIface_raise_e1(&handle);;
+				  }
+				else {
+					if (performanceTestIface_get_c(&handle)%2== 0) {
+								performanceTestIface_raise_e2(&handle);;
+							  }
+							else {
+								performanceTestIface_raise_e3(&handle);;
+							}
+					;
+				}
+		performanceTest_runCycle(&handle);
+	}
+	EXPECT_TRUE(performanceTestIface_get_a(&handle)> 2);
+}
+TEST(StatemachineTest, test_10_000_000) {
+	PerformanceTest handle;
+	performanceTest_init(&handle);
+	performanceTest_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(performanceTest_isActive(&handle, PerformanceTest_mr_A));
+	while (performanceTestIface_get_c(&handle)< 10000000) {
+		if (performanceTest_isActive(&handle, PerformanceTest_mr_A)) {
+					performanceTestIface_raise_e1(&handle);;
+				  }
+				else {
+					if (performanceTestIface_get_c(&handle)%2== 0) {
+								performanceTestIface_raise_e2(&handle);;
+							  }
+							else {
+								performanceTestIface_raise_e3(&handle);;
+							}
+					;
+				}
+		performanceTest_runCycle(&handle);
+	}
+	EXPECT_TRUE(performanceTestIface_get_a(&handle)> 2);
+}

+ 35 - 33
test-plugins/org.yakindu.sct.generator.c.test/gtests/PriorityValues/PriorityValues.cc

@@ -1,33 +1,35 @@
-/**
-* Copyright (c) 2012 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 handle;
-	priorityValues_init(&handle);
-	priorityValues_enter(&handle);
-	EXPECT_TRUE(priorityValues_isActive(&handle, PriorityValues_main_region_A));
-	priorityValuesIface_raise_event1(&handle);
-	priorityValues_runCycle(&handle);
-	EXPECT_TRUE(priorityValues_isActive(&handle, PriorityValues_main_region_C));
-}
-TEST(StatemachineTest, regionPriority) {
-	PriorityValues handle;
-	priorityValues_init(&handle);
-	priorityValues_enter(&handle);
-	EXPECT_TRUE(priorityValues_isActive(&handle, PriorityValues_someRegion_A));
-	priorityValuesIface_raise_event2(&handle);
-	priorityValues_runCycle(&handle);
-	EXPECT_TRUE(priorityValues_isActive(&handle, PriorityValues_someRegion_B));
-	EXPECT_TRUE(!priorityValues_isActive(&handle, PriorityValues_main_region_E));
-}
+/**
+* Copyright (c) 2012 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 handle;
+	priorityValues_init(&handle);
+	priorityValues_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(priorityValues_isActive(&handle, PriorityValues_main_region_A));
+	priorityValuesIface_raise_event1(&handle);
+	priorityValues_runCycle(&handle);
+	EXPECT_TRUE(priorityValues_isActive(&handle, PriorityValues_main_region_C));
+}
+TEST(StatemachineTest, regionPriority) {
+	PriorityValues handle;
+	priorityValues_init(&handle);
+	priorityValues_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(priorityValues_isActive(&handle, PriorityValues_someRegion_A));
+	priorityValuesIface_raise_event2(&handle);
+	priorityValues_runCycle(&handle);
+	EXPECT_TRUE(priorityValues_isActive(&handle, PriorityValues_someRegion_B));
+	EXPECT_TRUE(!priorityValues_isActive(&handle, PriorityValues_main_region_E));
+}

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

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

+ 27 - 26
test-plugins/org.yakindu.sct.generator.c.test/gtests/RaiseEvent/RaiseEvent.cc

@@ -1,26 +1,27 @@
-/**
-* Copyright (c) 2012 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 handle;
-	raiseEvent_init(&handle);
-	raiseEvent_enter(&handle);
-	EXPECT_TRUE(raiseEvent_isActive(&handle, RaiseEvent_second_region_SateA));
-	EXPECT_TRUE(raiseEvent_isActive(&handle, RaiseEvent_main_region_StateA));
-	raiseEventIface_raise_e2(&handle);
-	raiseEvent_runCycle(&handle);
-	raiseEvent_runCycle(&handle);
-	EXPECT_TRUE(raiseEvent_isActive(&handle, RaiseEvent_second_region_StateB));
-	EXPECT_TRUE(raiseEvent_isActive(&handle, RaiseEvent_main_region_StateB));
-}
+/**
+* Copyright (c) 2012 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 handle;
+	raiseEvent_init(&handle);
+	raiseEvent_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(raiseEvent_isActive(&handle, RaiseEvent_second_region_SateA));
+	EXPECT_TRUE(raiseEvent_isActive(&handle, RaiseEvent_main_region_StateA));
+	raiseEventIface_raise_e2(&handle);
+	raiseEvent_runCycle(&handle);
+	raiseEvent_runCycle(&handle);
+	EXPECT_TRUE(raiseEvent_isActive(&handle, RaiseEvent_second_region_StateB));
+	EXPECT_TRUE(raiseEvent_isActive(&handle, RaiseEvent_main_region_StateB));
+}

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

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

+ 29 - 28
test-plugins/org.yakindu.sct.generator.c.test/gtests/SameNameDifferentRegion/SameNameDifferentRegion.cc

@@ -1,28 +1,29 @@
-/**
-* Copyright (c) 2012 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 handle;
-	sameNameDifferentRegion_init(&handle);
-	sameNameDifferentRegion_enter(&handle);
-	EXPECT_TRUE(sameNameDifferentRegion_isActive(&handle, SameNameDifferentRegion_main_region_StateA));
-	sameNameDifferentRegionIface_raise_e1(&handle);
-	sameNameDifferentRegion_runCycle(&handle);
-	EXPECT_TRUE(sameNameDifferentRegion_isActive(&handle, SameNameDifferentRegion_main_region_StateB));
-	EXPECT_TRUE(sameNameDifferentRegion_isActive(&handle, SameNameDifferentRegion_main_region_StateB_r1_StateA));
-	sameNameDifferentRegionIface_raise_e1(&handle);
-	sameNameDifferentRegion_runCycle(&handle);
-	EXPECT_TRUE(sameNameDifferentRegion_isActive(&handle, SameNameDifferentRegion_main_region_StateB));
-	EXPECT_TRUE(sameNameDifferentRegion_isActive(&handle, SameNameDifferentRegion_main_region_StateB_r1_StateB));
-}
+/**
+* Copyright (c) 2012 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 handle;
+	sameNameDifferentRegion_init(&handle);
+	sameNameDifferentRegion_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(sameNameDifferentRegion_isActive(&handle, SameNameDifferentRegion_main_region_StateA));
+	sameNameDifferentRegionIface_raise_e1(&handle);
+	sameNameDifferentRegion_runCycle(&handle);
+	EXPECT_TRUE(sameNameDifferentRegion_isActive(&handle, SameNameDifferentRegion_main_region_StateB));
+	EXPECT_TRUE(sameNameDifferentRegion_isActive(&handle, SameNameDifferentRegion_main_region_StateB_r1_StateA));
+	sameNameDifferentRegionIface_raise_e1(&handle);
+	sameNameDifferentRegion_runCycle(&handle);
+	EXPECT_TRUE(sameNameDifferentRegion_isActive(&handle, SameNameDifferentRegion_main_region_StateB));
+	EXPECT_TRUE(sameNameDifferentRegion_isActive(&handle, SameNameDifferentRegion_main_region_StateB_r1_StateB));
+}

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

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

+ 50 - 49
test-plugins/org.yakindu.sct.generator.c.test/gtests/ShallowHistory/ShallowHistory.cc

@@ -1,49 +1,50 @@
-/**
-* Copyright (c) 2012 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 handle;
-	shallowHistory_init(&handle);
-	shallowHistory_enter(&handle);
-	shallowHistoryIface_raise_event1(&handle);
-	shallowHistory_runCycle(&handle);
-	shallowHistoryIface_raise_event3(&handle);
-	shallowHistory_runCycle(&handle);
-	shallowHistoryIface_raise_event5(&handle);
-	shallowHistory_runCycle(&handle);
-	shallowHistoryIface_raise_event7(&handle);
-	shallowHistory_runCycle(&handle);
-	EXPECT_TRUE(!shallowHistory_isActive(&handle, ShallowHistory_mainRegion_State1));
-	EXPECT_TRUE(shallowHistory_isActive(&handle, ShallowHistory_mainRegion_State2__region0_State4__region0_State7__region0_State9));
-	shallowHistoryIface_raise_event6(&handle);
-	shallowHistory_runCycle(&handle);
-	EXPECT_TRUE(!shallowHistory_isActive(&handle, ShallowHistory_mainRegion_State2__region0_State4__region0_State7__region0_State9));
-	EXPECT_TRUE(shallowHistory_isActive(&handle, ShallowHistory_mainRegion_State2__region0_State4__region0_State6));
-	shallowHistoryIface_raise_event5(&handle);
-	shallowHistory_runCycle(&handle);
-	EXPECT_TRUE(!shallowHistory_isActive(&handle, ShallowHistory_mainRegion_State2__region0_State4__region0_State7__region0_State8));
-	EXPECT_TRUE(shallowHistory_isActive(&handle, ShallowHistory_mainRegion_State2__region0_State4__region0_State7__region0_State9));
-	shallowHistoryIface_raise_event2(&handle);
-	shallowHistory_runCycle(&handle);
-	EXPECT_TRUE(!shallowHistory_isActive(&handle, ShallowHistory_mainRegion_State2__region0_State4__region0_State7__region0_State9));
-	EXPECT_TRUE(shallowHistory_isActive(&handle, ShallowHistory_mainRegion_State1));
-	shallowHistoryIface_raise_event1(&handle);
-	shallowHistory_runCycle(&handle);
-	EXPECT_TRUE(shallowHistory_isActive(&handle, ShallowHistory_mainRegion_State2__region0_State4__region0_State6));
-	EXPECT_TRUE(!shallowHistory_isActive(&handle, ShallowHistory_mainRegion_State1));
-	shallowHistoryIface_raise_event5(&handle);
-	shallowHistory_runCycle(&handle);
-	EXPECT_TRUE(!shallowHistory_isActive(&handle, ShallowHistory_mainRegion_State2__region0_State4__region0_State6));
-	EXPECT_TRUE(shallowHistory_isActive(&handle, ShallowHistory_mainRegion_State2__region0_State4__region0_State7__region0_State9));
-}
+/**
+* Copyright (c) 2012 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 handle;
+	shallowHistory_init(&handle);
+	shallowHistory_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	shallowHistoryIface_raise_event1(&handle);
+	shallowHistory_runCycle(&handle);
+	shallowHistoryIface_raise_event3(&handle);
+	shallowHistory_runCycle(&handle);
+	shallowHistoryIface_raise_event5(&handle);
+	shallowHistory_runCycle(&handle);
+	shallowHistoryIface_raise_event7(&handle);
+	shallowHistory_runCycle(&handle);
+	EXPECT_TRUE(!shallowHistory_isActive(&handle, ShallowHistory_mainRegion_State1));
+	EXPECT_TRUE(shallowHistory_isActive(&handle, ShallowHistory_mainRegion_State2__region0_State4__region0_State7__region0_State9));
+	shallowHistoryIface_raise_event6(&handle);
+	shallowHistory_runCycle(&handle);
+	EXPECT_TRUE(!shallowHistory_isActive(&handle, ShallowHistory_mainRegion_State2__region0_State4__region0_State7__region0_State9));
+	EXPECT_TRUE(shallowHistory_isActive(&handle, ShallowHistory_mainRegion_State2__region0_State4__region0_State6));
+	shallowHistoryIface_raise_event5(&handle);
+	shallowHistory_runCycle(&handle);
+	EXPECT_TRUE(!shallowHistory_isActive(&handle, ShallowHistory_mainRegion_State2__region0_State4__region0_State7__region0_State8));
+	EXPECT_TRUE(shallowHistory_isActive(&handle, ShallowHistory_mainRegion_State2__region0_State4__region0_State7__region0_State9));
+	shallowHistoryIface_raise_event2(&handle);
+	shallowHistory_runCycle(&handle);
+	EXPECT_TRUE(!shallowHistory_isActive(&handle, ShallowHistory_mainRegion_State2__region0_State4__region0_State7__region0_State9));
+	EXPECT_TRUE(shallowHistory_isActive(&handle, ShallowHistory_mainRegion_State1));
+	shallowHistoryIface_raise_event1(&handle);
+	shallowHistory_runCycle(&handle);
+	EXPECT_TRUE(shallowHistory_isActive(&handle, ShallowHistory_mainRegion_State2__region0_State4__region0_State6));
+	EXPECT_TRUE(!shallowHistory_isActive(&handle, ShallowHistory_mainRegion_State1));
+	shallowHistoryIface_raise_event5(&handle);
+	shallowHistory_runCycle(&handle);
+	EXPECT_TRUE(!shallowHistory_isActive(&handle, ShallowHistory_mainRegion_State2__region0_State4__region0_State6));
+	EXPECT_TRUE(shallowHistory_isActive(&handle, ShallowHistory_mainRegion_State2__region0_State4__region0_State7__region0_State9));
+}

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

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

+ 25 - 24
test-plugins/org.yakindu.sct.generator.c.test/gtests/SimpleEvent/SimpleEvent.cc

@@ -1,24 +1,25 @@
-/**
-* Copyright (c) 2012 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 handle;
-	simpleEvent_init(&handle);
-	simpleEvent_enter(&handle);
-	EXPECT_TRUE(simpleEvent_isActive(&handle, SimpleEvent_main_region_A));
-	EXPECT_TRUE(5 == 5);
-	simpleEventIface_raise_event1(&handle);
-	simpleEvent_runCycle(&handle);
-	EXPECT_TRUE(simpleEvent_isActive(&handle, SimpleEvent_main_region_B));
-}
+/**
+* Copyright (c) 2012 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 handle;
+	simpleEvent_init(&handle);
+	simpleEvent_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(simpleEvent_isActive(&handle, SimpleEvent_main_region_A));
+	EXPECT_TRUE(5== 5);
+	simpleEventIface_raise_event1(&handle);
+	simpleEvent_runCycle(&handle);
+	EXPECT_TRUE(simpleEvent_isActive(&handle, SimpleEvent_main_region_B));
+}

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

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

+ 8 - 8
test-plugins/org.yakindu.sct.generator.c.test/gtests/SimpleHietachy/SimpleHierachy.sgen

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

+ 27 - 26
test-plugins/org.yakindu.sct.generator.c.test/gtests/SimpleHietachy/SimpleHietachy.cc

@@ -1,26 +1,27 @@
-/**
-* Copyright (c) 2012 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 handle;
-	simpleHierachy_init(&handle);
-	simpleHierachy_enter(&handle);
-	EXPECT_TRUE(simpleHierachy_isActive(&handle, SimpleHierachy_main_region_A));
-	simpleHierachyIface_raise_event1(&handle);
-	simpleHierachyIface_raise_event1(&handle);
-	simpleHierachyIface_raise_event1(&handle);
-	simpleHierachy_runCycle(&handle);
-	EXPECT_TRUE(simpleHierachy_isActive(&handle, SimpleHierachy_main_region_B));
-	EXPECT_TRUE(simpleHierachy_isActive(&handle, SimpleHierachy_main_region_B_subregion1_B1));
-}
+/**
+* Copyright (c) 2012 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 handle;
+	simpleHierachy_init(&handle);
+	simpleHierachy_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(simpleHierachy_isActive(&handle, SimpleHierachy_main_region_A));
+	simpleHierachyIface_raise_event1(&handle);
+	simpleHierachyIface_raise_event1(&handle);
+	simpleHierachyIface_raise_event1(&handle);
+	simpleHierachy_runCycle(&handle);
+	EXPECT_TRUE(simpleHierachy_isActive(&handle, SimpleHierachy_main_region_B));
+	EXPECT_TRUE(simpleHierachy_isActive(&handle, SimpleHierachy_main_region_B_subregion1_B1));
+}

+ 27 - 26
test-plugins/org.yakindu.sct.generator.c.test/gtests/StateIsActive/StateIsActive.cc

@@ -1,26 +1,27 @@
-/**
-* Copyright (c) 2012 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 handle;
-	stateIsActive_init(&handle);
-	stateIsActive_enter(&handle);
-	EXPECT_TRUE(stateIsActive_isActive(&handle, StateIsActive_R1_R1A));
-	EXPECT_TRUE(stateIsActive_isActive(&handle, StateIsActive_R2_R2A));
-	stateIsActiveIface_raise_event1(&handle);
-	stateIsActive_runCycle(&handle);
-	stateIsActive_runCycle(&handle);
-	EXPECT_TRUE(stateIsActive_isActive(&handle, StateIsActive_R1_R1B));
-	EXPECT_TRUE(stateIsActive_isActive(&handle, StateIsActive_R2_R2B));
-}
+/**
+* Copyright (c) 2012 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 handle;
+	stateIsActive_init(&handle);
+	stateIsActive_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(stateIsActive_isActive(&handle, StateIsActive_R1_R1A));
+	EXPECT_TRUE(stateIsActive_isActive(&handle, StateIsActive_R2_R2A));
+	stateIsActiveIface_raise_event1(&handle);
+	stateIsActive_runCycle(&handle);
+	stateIsActive_runCycle(&handle);
+	EXPECT_TRUE(stateIsActive_isActive(&handle, StateIsActive_R1_R1B));
+	EXPECT_TRUE(stateIsActive_isActive(&handle, StateIsActive_R2_R2B));
+}

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

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

+ 32 - 31
test-plugins/org.yakindu.sct.generator.c.test/gtests/StatechartLocalReactions/StatechartLocalReactions.cc

@@ -1,31 +1,32 @@
-/**
-* Copyright (c) 2012 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 handle;
-	statechartLocalReactions_init(&handle);
-	statechartLocalReactions_enter(&handle);
-	EXPECT_TRUE(statechartLocalReactions_isActive(&handle, StatechartLocalReactions_main_region_S1));
-	EXPECT_TRUE(statechartLocalReactions_isActive(&handle, StatechartLocalReactions_region2_a));
-	while (statechartLocalReactionsIface_get_myInt(&handle) < 10) {
-		EXPECT_TRUE(statechartLocalReactions_isActive(&handle, StatechartLocalReactions_region2_a));
-		if (statechartLocalReactionsIface_get_myInt(&handle) % 2 == 0) {
-					EXPECT_TRUE(statechartLocalReactions_isActive(&handle, StatechartLocalReactions_main_region_S1));;
-				  }
-				else {
-					EXPECT_TRUE(statechartLocalReactions_isActive(&handle, StatechartLocalReactions_main_region_S2));;
-				}
-		statechartLocalReactions_runCycle(&handle);
-	}
-}
+/**
+* Copyright (c) 2012 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 handle;
+	statechartLocalReactions_init(&handle);
+	statechartLocalReactions_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(statechartLocalReactions_isActive(&handle, StatechartLocalReactions_main_region_S1));
+	EXPECT_TRUE(statechartLocalReactions_isActive(&handle, StatechartLocalReactions_region2_a));
+	while (statechartLocalReactionsIface_get_myInt(&handle)< 10) {
+		EXPECT_TRUE(statechartLocalReactions_isActive(&handle, StatechartLocalReactions_region2_a));
+		if (statechartLocalReactionsIface_get_myInt(&handle)%2== 0) {
+					EXPECT_TRUE(statechartLocalReactions_isActive(&handle, StatechartLocalReactions_main_region_S1));;
+				  }
+				else {
+					EXPECT_TRUE(statechartLocalReactions_isActive(&handle, StatechartLocalReactions_main_region_S2));;
+				}
+		statechartLocalReactions_runCycle(&handle);
+	}
+}

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

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

+ 28 - 27
test-plugins/org.yakindu.sct.generator.c.test/gtests/StringExpressions/StringExpressions.cc

@@ -1,27 +1,28 @@
-/**
-* Copyright (c) 2012 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 handle;
-	stringExpressions_init(&handle);
-	stringExpressions_enter(&handle);
-	EXPECT_TRUE(stringExpressions_isActive(&handle, StringExpressions_main_region_StateA));
-	EXPECT_TRUE(strcmp(stringExpressionsIface_get_myString(&handle), "hello") == 0);
-	EXPECT_TRUE(strcmp(stringExpressionsIface_get_myString2(&handle), "world") == 0);
-	stringExpressionsIface_raise_e1(&handle);
-	stringExpressions_runCycle(&handle);
-	EXPECT_TRUE(stringExpressions_isActive(&handle, StringExpressions_main_region_StateB));
-	EXPECT_TRUE(stringExpressionsIface_get_equals(&handle) == false);
-	EXPECT_TRUE(stringExpressionsIface_get_notEqual(&handle) == true);
-}
+/**
+* Copyright (c) 2012 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 handle;
+	stringExpressions_init(&handle);
+	stringExpressions_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(stringExpressions_isActive(&handle, StringExpressions_main_region_StateA));
+	EXPECT_TRUE(strcmp(stringExpressionsIface_get_myString(&handle), "hello") == 0);
+	EXPECT_TRUE(strcmp(stringExpressionsIface_get_myString2(&handle), "world") == 0);
+	stringExpressionsIface_raise_e1(&handle);
+	stringExpressions_runCycle(&handle);
+	EXPECT_TRUE(stringExpressions_isActive(&handle, StringExpressions_main_region_StateB));
+	EXPECT_TRUE(stringExpressionsIface_get_equals(&handle)== false);
+	EXPECT_TRUE(stringExpressionsIface_get_notEqual(&handle)== true);
+}

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

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

+ 39 - 38
test-plugins/org.yakindu.sct.generator.c.test/gtests/SyncFork/SyncFork.cc

@@ -1,38 +1,39 @@
-/**
-* Copyright (c) 2012 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 handle;
-	syncFork_init(&handle);
-	syncFork_enter(&handle);
-	EXPECT_TRUE(syncFork_isActive(&handle, SyncFork_main_region_A));
-	syncForkIface_raise_f(&handle);
-	syncFork_runCycle(&handle);
-	EXPECT_TRUE(syncFork_isActive(&handle, SyncFork_main_region_B));
-	EXPECT_TRUE(syncFork_isActive(&handle, SyncFork_main_region_B_r1_C1));
-	EXPECT_TRUE(syncFork_isActive(&handle, SyncFork_main_region_B_r2_D1));
-	syncForkIface_raise_f(&handle);
-	syncFork_runCycle(&handle);
-	EXPECT_TRUE(syncFork_isActive(&handle, SyncFork_main_region_B));
-	EXPECT_TRUE(syncFork_isActive(&handle, SyncFork_main_region_B_r1_C2));
-	EXPECT_TRUE(syncFork_isActive(&handle, SyncFork_main_region_B_r2_D2));
-	syncForkIface_raise_e(&handle);
-	syncFork_runCycle(&handle);
-	EXPECT_TRUE(syncFork_isActive(&handle, SyncFork_main_region_A));
-	syncForkIface_raise_f(&handle);
-	syncFork_runCycle(&handle);
-	EXPECT_TRUE(syncFork_isActive(&handle, SyncFork_main_region_B));
-	EXPECT_TRUE(syncFork_isActive(&handle, SyncFork_main_region_B_r1_C1));
-	EXPECT_TRUE(syncFork_isActive(&handle, SyncFork_main_region_B_r2_D1));
-}
+/**
+* Copyright (c) 2012 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 handle;
+	syncFork_init(&handle);
+	syncFork_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(syncFork_isActive(&handle, SyncFork_main_region_A));
+	syncForkIface_raise_f(&handle);
+	syncFork_runCycle(&handle);
+	EXPECT_TRUE(syncFork_isActive(&handle, SyncFork_main_region_B));
+	EXPECT_TRUE(syncFork_isActive(&handle, SyncFork_main_region_B_r1_C1));
+	EXPECT_TRUE(syncFork_isActive(&handle, SyncFork_main_region_B_r2_D1));
+	syncForkIface_raise_f(&handle);
+	syncFork_runCycle(&handle);
+	EXPECT_TRUE(syncFork_isActive(&handle, SyncFork_main_region_B));
+	EXPECT_TRUE(syncFork_isActive(&handle, SyncFork_main_region_B_r1_C2));
+	EXPECT_TRUE(syncFork_isActive(&handle, SyncFork_main_region_B_r2_D2));
+	syncForkIface_raise_e(&handle);
+	syncFork_runCycle(&handle);
+	EXPECT_TRUE(syncFork_isActive(&handle, SyncFork_main_region_A));
+	syncForkIface_raise_f(&handle);
+	syncFork_runCycle(&handle);
+	EXPECT_TRUE(syncFork_isActive(&handle, SyncFork_main_region_B));
+	EXPECT_TRUE(syncFork_isActive(&handle, SyncFork_main_region_B_r1_C1));
+	EXPECT_TRUE(syncFork_isActive(&handle, SyncFork_main_region_B_r2_D1));
+}

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

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

+ 86 - 84
test-plugins/org.yakindu.sct.generator.c.test/gtests/SyncJoin/SyncJoin.cc

@@ -1,84 +1,86 @@
-/**
-* Copyright (c) 2012 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 handle;
-	syncJoin_init(&handle);
-	syncJoin_enter(&handle);
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B));
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r1_C1));
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r2_D1));
-	syncJoinIface_raise_e(&handle);
-	syncJoin_runCycle(&handle);
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r1_C2));
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r2_D1));
-	syncJoinIface_raise_jc(&handle);
-	syncJoin_runCycle(&handle);
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r1_C2));
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r2_D1));
-	syncJoinIface_raise_jd(&handle);
-	syncJoin_runCycle(&handle);
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r1_C2));
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r2_D1));
-	syncJoinIface_raise_jc(&handle);
-	syncJoinIface_raise_jd(&handle);
-	syncJoin_runCycle(&handle);
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r1_C2));
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r2_D1));
-	syncJoinIface_raise_f(&handle);
-	syncJoin_runCycle(&handle);
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r1_C2));
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r2_D2));
-	syncJoinIface_raise_jc(&handle);
-	syncJoin_runCycle(&handle);
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r1_C2));
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r2_D2));
-	syncJoinIface_raise_jd(&handle);
-	syncJoin_runCycle(&handle);
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r1_C2));
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r2_D2));
-	syncJoinIface_raise_jc(&handle);
-	syncJoinIface_raise_jd(&handle);
-	syncJoin_runCycle(&handle);
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_A));
-}
-TEST(StatemachineTest, syncJoin_D2_Waits) {
-	SyncJoin handle;
-	syncJoin_init(&handle);
-	syncJoin_enter(&handle);
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B));
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r1_C1));
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r2_D1));
-	syncJoinIface_raise_f(&handle);
-	syncJoin_runCycle(&handle);
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r1_C1));
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r2_D2));
-	syncJoinIface_raise_jc(&handle);
-	syncJoin_runCycle(&handle);
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r1_C1));
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r2_D2));
-	syncJoinIface_raise_jd(&handle);
-	syncJoin_runCycle(&handle);
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r1_C1));
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r2_D2));
-	syncJoinIface_raise_jc(&handle);
-	syncJoinIface_raise_jd(&handle);
-	syncJoin_runCycle(&handle);
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r1_C1));
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r2_D2));
-	syncJoinIface_raise_e(&handle);
-	syncJoin_runCycle(&handle);
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r1_C2));
-	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r2_D2));
-}
+/**
+* Copyright (c) 2012 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 handle;
+	syncJoin_init(&handle);
+	syncJoin_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B));
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r1_C1));
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r2_D1));
+	syncJoinIface_raise_e(&handle);
+	syncJoin_runCycle(&handle);
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r1_C2));
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r2_D1));
+	syncJoinIface_raise_jc(&handle);
+	syncJoin_runCycle(&handle);
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r1_C2));
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r2_D1));
+	syncJoinIface_raise_jd(&handle);
+	syncJoin_runCycle(&handle);
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r1_C2));
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r2_D1));
+	syncJoinIface_raise_jc(&handle);
+	syncJoinIface_raise_jd(&handle);
+	syncJoin_runCycle(&handle);
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r1_C2));
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r2_D1));
+	syncJoinIface_raise_f(&handle);
+	syncJoin_runCycle(&handle);
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r1_C2));
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r2_D2));
+	syncJoinIface_raise_jc(&handle);
+	syncJoin_runCycle(&handle);
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r1_C2));
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r2_D2));
+	syncJoinIface_raise_jd(&handle);
+	syncJoin_runCycle(&handle);
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r1_C2));
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r2_D2));
+	syncJoinIface_raise_jc(&handle);
+	syncJoinIface_raise_jd(&handle);
+	syncJoin_runCycle(&handle);
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_A));
+}
+TEST(StatemachineTest, syncJoin_D2_Waits) {
+	SyncJoin handle;
+	syncJoin_init(&handle);
+	syncJoin_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B));
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r1_C1));
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r2_D1));
+	syncJoinIface_raise_f(&handle);
+	syncJoin_runCycle(&handle);
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r1_C1));
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r2_D2));
+	syncJoinIface_raise_jc(&handle);
+	syncJoin_runCycle(&handle);
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r1_C1));
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r2_D2));
+	syncJoinIface_raise_jd(&handle);
+	syncJoin_runCycle(&handle);
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r1_C1));
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r2_D2));
+	syncJoinIface_raise_jc(&handle);
+	syncJoinIface_raise_jd(&handle);
+	syncJoin_runCycle(&handle);
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r1_C1));
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r2_D2));
+	syncJoinIface_raise_e(&handle);
+	syncJoin_runCycle(&handle);
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r1_C2));
+	EXPECT_TRUE(syncJoin_isActive(&handle, SyncJoin_main_region_B_r2_D2));
+}

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

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

+ 24 - 23
test-plugins/org.yakindu.sct.generator.c.test/gtests/ValuedEvent/ValuedEvent.cc

@@ -1,23 +1,24 @@
-/**
-* Copyright (c) 2012 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 "ValuedEvents.h"
-
-TEST(StatemachineTest, valuedEventTest) {
-	ValuedEvents handle;
-	valuedEvents_init(&handle);
-	valuedEvents_enter(&handle);
-	valuedEvents_runCycle(&handle);
-	EXPECT_TRUE(valuedEvents_isActive(&handle, ValuedEvents_main_region_A));
-	EXPECT_TRUE(valuedEvents_isActive(&handle, ValuedEvents__region1_C));
-	EXPECT_TRUE(valuedEventsIface_get_myVar(&handle) == 42);
-}
+/**
+* Copyright (c) 2012 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 "ValuedEvents.h"
+
+TEST(StatemachineTest, valuedEventTest) {
+	ValuedEvents handle;
+	valuedEvents_init(&handle);
+	valuedEvents_enter(&handle);
+	//statechart.enterFunctionName(&handle);
+	valuedEvents_runCycle(&handle);
+	EXPECT_TRUE(valuedEvents_isActive(&handle, ValuedEvents_main_region_A));
+	EXPECT_TRUE(valuedEvents_isActive(&handle, ValuedEvents__region1_C));
+	EXPECT_TRUE(valuedEventsIface_get_myVar(&handle)== 42);
+}

+ 8 - 8
test-plugins/org.yakindu.sct.generator.c.test/gtests/ValuedEvent/ValuedEvents.sgen

@@ -1,8 +1,8 @@
-GeneratorModel for yakindu::c {
-	statechart ValuedEvents {
-		feature Outlet {
-			targetProject = "gtests"
-			targetFolder = "ValuedEvent"
-		}
-	}
-}
+GeneratorModel for yakindu::c {
+	statechart ValuedEvents {
+		feature Outlet {
+			targetProject = "gtests"
+			targetFolder = "ValuedEvent"
+		}
+	}
+}

+ 28 - 28
test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/AllTests.java

@@ -1,28 +1,28 @@
-/**
- * Copyright (c) 2012 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
- */
-package org.yakindu.sct.generator.c.test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite;
-import org.junit.runners.Suite.SuiteClasses;
-
-@RunWith(Suite.class)
-@SuiteClasses({AlwaysOncycle.class, AssignmentAsExpression.class,
-		BitExpressions.class, BooleanExpressions.class, CKeywords.class,
-		Choice.class, DeepHistory.class, ExitOnSelfTransition.class,
-		Guard.class, GuardedEntry.class, GuardedExit.class,
-		IntegerExpressions.class, InternalEventLifeCycle.class,
-		Parenthesis.class, PriorityValues.class, RaiseEvent.class,
-		SameNameDifferentRegion.class, ShallowHistory.class,
-		SimpleHietachy.class, StateIsActive.class,
-		StatechartLocalReactions.class, StringExpressions.class,
-		SyncFork.class, SyncJoin.class, ValuedEvent.class, SimpleEvent.class})
-public class AllTests {
-}
+/**
+ * Copyright (c) 2012 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
+ */
+package org.yakindu.sct.generator.c.test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+import org.junit.runners.Suite.SuiteClasses;
+
+@RunWith(Suite.class)
+@SuiteClasses({AlwaysOncycle.class, AssignmentAsExpression.class,
+		BitExpressions.class, BooleanExpressions.class, CKeywords.class,
+		Choice.class, DeepHistory.class, ExitOnSelfTransition.class,
+		Guard.class, GuardedEntry.class, GuardedExit.class,
+		IntegerExpressions.class, InternalEventLifeCycle.class,
+		Parenthesis.class, PriorityValues.class, RaiseEvent.class,
+		SameNameDifferentRegion.class, ShallowHistory.class,
+		SimpleHietachy.class, StateIsActive.class,
+		StatechartLocalReactions.class, StringExpressions.class,
+		SyncFork.class, SyncJoin.class, ValuedEvent.class, SimpleEvent.class})
+public class AllTests {
+}

+ 39 - 39
test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/AlwaysOncycle.java

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 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
- */
-package org.yakindu.sct.generator.c.test;
-
-import java.util.Collection;
-
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.yakindu.sct.generator.c.gtest.GTest;
-import org.yakindu.sct.generator.c.gtest.GTestRunner;
-import org.yakindu.sct.generator.c.gtest.GTestHelper;
-
-@GTest(sourceFile = "gtests/AlwaysOncycle/AlwaysOncycle.cc", program = "gtests/AlwaysOncycle/AlwaysOncycle", model = "testmodels/AlwaysOncycle.sct")
-@RunWith(GTestRunner.class)
-public class AlwaysOncycle {
-
-	protected final GTestHelper helper = new GTestHelper(this) {
-
-		@Override
-		protected void getSourceFiles(Collection<String> files) {
-			super.getSourceFiles(files);
-			files.add(getFileName(getTestProgram()) + ".c");
-		}
-	};
-
-	@Before
-	public void setUp() {
-		helper.generate();
-		helper.compile();
-	}
-}
+/**
+ * Copyright (c) 2012 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
+ */
+package org.yakindu.sct.generator.c.test;
+
+import java.util.Collection;
+
+import org.junit.Before;
+import org.junit.runner.RunWith;
+import org.yakindu.sct.generator.c.gtest.GTest;
+import org.yakindu.sct.generator.c.gtest.GTestRunner;
+import org.yakindu.sct.generator.c.gtest.GTestHelper;
+
+@GTest(sourceFile = "gtests/AlwaysOncycle/AlwaysOncycle.cc", program = "gtests/AlwaysOncycle/AlwaysOncycle", model = "testmodels/AlwaysOncycle.sct")
+@RunWith(GTestRunner.class)
+public class AlwaysOncycle {
+
+	protected final GTestHelper helper = new GTestHelper(this) {
+
+		@Override
+		protected void getSourceFiles(Collection<String> files) {
+			super.getSourceFiles(files);
+			files.add(getFileName(getTestProgram()) + ".c");
+		}
+	};
+
+	@Before
+	public void setUp() {
+		helper.generate();
+		helper.compile();
+	}
+}

+ 39 - 39
test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/AssignmentAsExpression.java

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 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
- */
-package org.yakindu.sct.generator.c.test;
-
-import java.util.Collection;
-
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.yakindu.sct.generator.c.gtest.GTest;
-import org.yakindu.sct.generator.c.gtest.GTestRunner;
-import org.yakindu.sct.generator.c.gtest.GTestHelper;
-
-@GTest(sourceFile = "gtests/AssignmentAsExpression/AssignmentAsExpression.cc", program = "gtests/AssignmentAsExpression/AssignmentAsExpression", model = "testmodels/AssignmentAsExpression.sct")
-@RunWith(GTestRunner.class)
-public class AssignmentAsExpression {
-
-	protected final GTestHelper helper = new GTestHelper(this) {
-
-		@Override
-		protected void getSourceFiles(Collection<String> files) {
-			super.getSourceFiles(files);
-			files.add(getFileName(getTestProgram()) + ".c");
-		}
-	};
-
-	@Before
-	public void setUp() {
-		helper.generate();
-		helper.compile();
-	}
-}
+/**
+ * Copyright (c) 2012 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
+ */
+package org.yakindu.sct.generator.c.test;
+
+import java.util.Collection;
+
+import org.junit.Before;
+import org.junit.runner.RunWith;
+import org.yakindu.sct.generator.c.gtest.GTest;
+import org.yakindu.sct.generator.c.gtest.GTestRunner;
+import org.yakindu.sct.generator.c.gtest.GTestHelper;
+
+@GTest(sourceFile = "gtests/AssignmentAsExpression/AssignmentAsExpression.cc", program = "gtests/AssignmentAsExpression/AssignmentAsExpression", model = "testmodels/AssignmentAsExpression.sct")
+@RunWith(GTestRunner.class)
+public class AssignmentAsExpression {
+
+	protected final GTestHelper helper = new GTestHelper(this) {
+
+		@Override
+		protected void getSourceFiles(Collection<String> files) {
+			super.getSourceFiles(files);
+			files.add(getFileName(getTestProgram()) + ".c");
+		}
+	};
+
+	@Before
+	public void setUp() {
+		helper.generate();
+		helper.compile();
+	}
+}

+ 39 - 39
test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/BitExpressions.java

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 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
- */
-package org.yakindu.sct.generator.c.test;
-
-import java.util.Collection;
-
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.yakindu.sct.generator.c.gtest.GTest;
-import org.yakindu.sct.generator.c.gtest.GTestRunner;
-import org.yakindu.sct.generator.c.gtest.GTestHelper;
-
-@GTest(sourceFile = "gtests/BitExpressions/BitExpressions.cc", program = "gtests/BitExpressions/BitExpressions", model = "testmodels/BitExpressions.sct")
-@RunWith(GTestRunner.class)
-public class BitExpressions {
-
-	protected final GTestHelper helper = new GTestHelper(this) {
-
-		@Override
-		protected void getSourceFiles(Collection<String> files) {
-			super.getSourceFiles(files);
-			files.add(getFileName(getTestProgram()) + ".c");
-		}
-	};
-
-	@Before
-	public void setUp() {
-		helper.generate();
-		helper.compile();
-	}
-}
+/**
+ * Copyright (c) 2012 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
+ */
+package org.yakindu.sct.generator.c.test;
+
+import java.util.Collection;
+
+import org.junit.Before;
+import org.junit.runner.RunWith;
+import org.yakindu.sct.generator.c.gtest.GTest;
+import org.yakindu.sct.generator.c.gtest.GTestRunner;
+import org.yakindu.sct.generator.c.gtest.GTestHelper;
+
+@GTest(sourceFile = "gtests/BitExpressions/BitExpressions.cc", program = "gtests/BitExpressions/BitExpressions", model = "testmodels/BitExpressions.sct")
+@RunWith(GTestRunner.class)
+public class BitExpressions {
+
+	protected final GTestHelper helper = new GTestHelper(this) {
+
+		@Override
+		protected void getSourceFiles(Collection<String> files) {
+			super.getSourceFiles(files);
+			files.add(getFileName(getTestProgram()) + ".c");
+		}
+	};
+
+	@Before
+	public void setUp() {
+		helper.generate();
+		helper.compile();
+	}
+}

+ 39 - 39
test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/BooleanExpressions.java

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 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
- */
-package org.yakindu.sct.generator.c.test;
-
-import java.util.Collection;
-
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.yakindu.sct.generator.c.gtest.GTest;
-import org.yakindu.sct.generator.c.gtest.GTestRunner;
-import org.yakindu.sct.generator.c.gtest.GTestHelper;
-
-@GTest(sourceFile = "gtests/BooleanExpressions/BooleanExpressions.cc", program = "gtests/BooleanExpressions/BooleanExpressions", model = "testmodels/BooleanExpressions.sct")
-@RunWith(GTestRunner.class)
-public class BooleanExpressions {
-
-	protected final GTestHelper helper = new GTestHelper(this) {
-
-		@Override
-		protected void getSourceFiles(Collection<String> files) {
-			super.getSourceFiles(files);
-			files.add(getFileName(getTestProgram()) + ".c");
-		}
-	};
-
-	@Before
-	public void setUp() {
-		helper.generate();
-		helper.compile();
-	}
-}
+/**
+ * Copyright (c) 2012 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
+ */
+package org.yakindu.sct.generator.c.test;
+
+import java.util.Collection;
+
+import org.junit.Before;
+import org.junit.runner.RunWith;
+import org.yakindu.sct.generator.c.gtest.GTest;
+import org.yakindu.sct.generator.c.gtest.GTestRunner;
+import org.yakindu.sct.generator.c.gtest.GTestHelper;
+
+@GTest(sourceFile = "gtests/BooleanExpressions/BooleanExpressions.cc", program = "gtests/BooleanExpressions/BooleanExpressions", model = "testmodels/BooleanExpressions.sct")
+@RunWith(GTestRunner.class)
+public class BooleanExpressions {
+
+	protected final GTestHelper helper = new GTestHelper(this) {
+
+		@Override
+		protected void getSourceFiles(Collection<String> files) {
+			super.getSourceFiles(files);
+			files.add(getFileName(getTestProgram()) + ".c");
+		}
+	};
+
+	@Before
+	public void setUp() {
+		helper.generate();
+		helper.compile();
+	}
+}

+ 39 - 39
test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/CKeywords.java

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 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
- */
-package org.yakindu.sct.generator.c.test;
-
-import java.util.Collection;
-
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.yakindu.sct.generator.c.gtest.GTest;
-import org.yakindu.sct.generator.c.gtest.GTestRunner;
-import org.yakindu.sct.generator.c.gtest.GTestHelper;
-
-@GTest(sourceFile = "gtests/CKeywords/CKeywords.cc", program = "gtests/CKeywords/CKeywords", model = "testmodels/CKeywords.sct")
-@RunWith(GTestRunner.class)
-public class CKeywords {
-
-	protected final GTestHelper helper = new GTestHelper(this) {
-
-		@Override
-		protected void getSourceFiles(Collection<String> files) {
-			super.getSourceFiles(files);
-			files.add(getFileName(getTestProgram()) + ".c");
-		}
-	};
-
-	@Before
-	public void setUp() {
-		helper.generate();
-		helper.compile();
-	}
-}
+/**
+ * Copyright (c) 2012 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
+ */
+package org.yakindu.sct.generator.c.test;
+
+import java.util.Collection;
+
+import org.junit.Before;
+import org.junit.runner.RunWith;
+import org.yakindu.sct.generator.c.gtest.GTest;
+import org.yakindu.sct.generator.c.gtest.GTestRunner;
+import org.yakindu.sct.generator.c.gtest.GTestHelper;
+
+@GTest(sourceFile = "gtests/CKeywords/CKeywords.cc", program = "gtests/CKeywords/CKeywords", model = "testmodels/CKeywords.sct")
+@RunWith(GTestRunner.class)
+public class CKeywords {
+
+	protected final GTestHelper helper = new GTestHelper(this) {
+
+		@Override
+		protected void getSourceFiles(Collection<String> files) {
+			super.getSourceFiles(files);
+			files.add(getFileName(getTestProgram()) + ".c");
+		}
+	};
+
+	@Before
+	public void setUp() {
+		helper.generate();
+		helper.compile();
+	}
+}

+ 39 - 39
test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/Choice.java

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 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
- */
-package org.yakindu.sct.generator.c.test;
-
-import java.util.Collection;
-
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.yakindu.sct.generator.c.gtest.GTest;
-import org.yakindu.sct.generator.c.gtest.GTestRunner;
-import org.yakindu.sct.generator.c.gtest.GTestHelper;
-
-@GTest(sourceFile = "gtests/Choice/Choice.cc", program = "gtests/Choice/Choice", model = "testmodels/Choice.sct")
-@RunWith(GTestRunner.class)
-public class Choice {
-
-	protected final GTestHelper helper = new GTestHelper(this) {
-
-		@Override
-		protected void getSourceFiles(Collection<String> files) {
-			super.getSourceFiles(files);
-			files.add(getFileName(getTestProgram()) + ".c");
-		}
-	};
-
-	@Before
-	public void setUp() {
-		helper.generate();
-		helper.compile();
-	}
-}
+/**
+ * Copyright (c) 2012 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
+ */
+package org.yakindu.sct.generator.c.test;
+
+import java.util.Collection;
+
+import org.junit.Before;
+import org.junit.runner.RunWith;
+import org.yakindu.sct.generator.c.gtest.GTest;
+import org.yakindu.sct.generator.c.gtest.GTestRunner;
+import org.yakindu.sct.generator.c.gtest.GTestHelper;
+
+@GTest(sourceFile = "gtests/Choice/Choice.cc", program = "gtests/Choice/Choice", model = "testmodels/Choice.sct")
+@RunWith(GTestRunner.class)
+public class Choice {
+
+	protected final GTestHelper helper = new GTestHelper(this) {
+
+		@Override
+		protected void getSourceFiles(Collection<String> files) {
+			super.getSourceFiles(files);
+			files.add(getFileName(getTestProgram()) + ".c");
+		}
+	};
+
+	@Before
+	public void setUp() {
+		helper.generate();
+		helper.compile();
+	}
+}

+ 39 - 39
test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/DeepHistory.java

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 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
- */
-package org.yakindu.sct.generator.c.test;
-
-import java.util.Collection;
-
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.yakindu.sct.generator.c.gtest.GTest;
-import org.yakindu.sct.generator.c.gtest.GTestRunner;
-import org.yakindu.sct.generator.c.gtest.GTestHelper;
-
-@GTest(sourceFile = "gtests/DeepHistory/DeepHistory.cc", program = "gtests/DeepHistory/DeepHistory", model = "testmodels/DeepHistory.sct")
-@RunWith(GTestRunner.class)
-public class DeepHistory {
-
-	protected final GTestHelper helper = new GTestHelper(this) {
-
-		@Override
-		protected void getSourceFiles(Collection<String> files) {
-			super.getSourceFiles(files);
-			files.add(getFileName(getTestProgram()) + ".c");
-		}
-	};
-
-	@Before
-	public void setUp() {
-		helper.generate();
-		helper.compile();
-	}
-}
+/**
+ * Copyright (c) 2012 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
+ */
+package org.yakindu.sct.generator.c.test;
+
+import java.util.Collection;
+
+import org.junit.Before;
+import org.junit.runner.RunWith;
+import org.yakindu.sct.generator.c.gtest.GTest;
+import org.yakindu.sct.generator.c.gtest.GTestRunner;
+import org.yakindu.sct.generator.c.gtest.GTestHelper;
+
+@GTest(sourceFile = "gtests/DeepHistory/DeepHistory.cc", program = "gtests/DeepHistory/DeepHistory", model = "testmodels/DeepHistory.sct")
+@RunWith(GTestRunner.class)
+public class DeepHistory {
+
+	protected final GTestHelper helper = new GTestHelper(this) {
+
+		@Override
+		protected void getSourceFiles(Collection<String> files) {
+			super.getSourceFiles(files);
+			files.add(getFileName(getTestProgram()) + ".c");
+		}
+	};
+
+	@Before
+	public void setUp() {
+		helper.generate();
+		helper.compile();
+	}
+}

+ 39 - 39
test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/ExitOnSelfTransition.java

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 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
- */
-package org.yakindu.sct.generator.c.test;
-
-import java.util.Collection;
-
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.yakindu.sct.generator.c.gtest.GTest;
-import org.yakindu.sct.generator.c.gtest.GTestRunner;
-import org.yakindu.sct.generator.c.gtest.GTestHelper;
-
-@GTest(sourceFile = "gtests/ExitOnSelfTransition/ExitOnSelfTransition.cc", program = "gtests/ExitOnSelfTransition/ExitOnSelfTransition", model = "testmodels/ExitOnSelfTransition.sct")
-@RunWith(GTestRunner.class)
-public class ExitOnSelfTransition {
-
-	protected final GTestHelper helper = new GTestHelper(this) {
-
-		@Override
-		protected void getSourceFiles(Collection<String> files) {
-			super.getSourceFiles(files);
-			files.add(getFileName(getTestProgram()) + ".c");
-		}
-	};
-
-	@Before
-	public void setUp() {
-		helper.generate();
-		helper.compile();
-	}
-}
+/**
+ * Copyright (c) 2012 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
+ */
+package org.yakindu.sct.generator.c.test;
+
+import java.util.Collection;
+
+import org.junit.Before;
+import org.junit.runner.RunWith;
+import org.yakindu.sct.generator.c.gtest.GTest;
+import org.yakindu.sct.generator.c.gtest.GTestRunner;
+import org.yakindu.sct.generator.c.gtest.GTestHelper;
+
+@GTest(sourceFile = "gtests/ExitOnSelfTransition/ExitOnSelfTransition.cc", program = "gtests/ExitOnSelfTransition/ExitOnSelfTransition", model = "testmodels/ExitOnSelfTransition.sct")
+@RunWith(GTestRunner.class)
+public class ExitOnSelfTransition {
+
+	protected final GTestHelper helper = new GTestHelper(this) {
+
+		@Override
+		protected void getSourceFiles(Collection<String> files) {
+			super.getSourceFiles(files);
+			files.add(getFileName(getTestProgram()) + ".c");
+		}
+	};
+
+	@Before
+	public void setUp() {
+		helper.generate();
+		helper.compile();
+	}
+}

+ 39 - 39
test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/Guard.java

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 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
- */
-package org.yakindu.sct.generator.c.test;
-
-import java.util.Collection;
-
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.yakindu.sct.generator.c.gtest.GTest;
-import org.yakindu.sct.generator.c.gtest.GTestRunner;
-import org.yakindu.sct.generator.c.gtest.GTestHelper;
-
-@GTest(sourceFile = "gtests/Guard/Guard.cc", program = "gtests/Guard/Guard", model = "testmodels/Guard.sct")
-@RunWith(GTestRunner.class)
-public class Guard {
-
-	protected final GTestHelper helper = new GTestHelper(this) {
-
-		@Override
-		protected void getSourceFiles(Collection<String> files) {
-			super.getSourceFiles(files);
-			files.add(getFileName(getTestProgram()) + ".c");
-		}
-	};
-
-	@Before
-	public void setUp() {
-		helper.generate();
-		helper.compile();
-	}
-}
+/**
+ * Copyright (c) 2012 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
+ */
+package org.yakindu.sct.generator.c.test;
+
+import java.util.Collection;
+
+import org.junit.Before;
+import org.junit.runner.RunWith;
+import org.yakindu.sct.generator.c.gtest.GTest;
+import org.yakindu.sct.generator.c.gtest.GTestRunner;
+import org.yakindu.sct.generator.c.gtest.GTestHelper;
+
+@GTest(sourceFile = "gtests/Guard/Guard.cc", program = "gtests/Guard/Guard", model = "testmodels/Guard.sct")
+@RunWith(GTestRunner.class)
+public class Guard {
+
+	protected final GTestHelper helper = new GTestHelper(this) {
+
+		@Override
+		protected void getSourceFiles(Collection<String> files) {
+			super.getSourceFiles(files);
+			files.add(getFileName(getTestProgram()) + ".c");
+		}
+	};
+
+	@Before
+	public void setUp() {
+		helper.generate();
+		helper.compile();
+	}
+}

+ 39 - 39
test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/GuardedEntry.java

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 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
- */
-package org.yakindu.sct.generator.c.test;
-
-import java.util.Collection;
-
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.yakindu.sct.generator.c.gtest.GTest;
-import org.yakindu.sct.generator.c.gtest.GTestRunner;
-import org.yakindu.sct.generator.c.gtest.GTestHelper;
-
-@GTest(sourceFile = "gtests/GuardedEntry/GuardedEntry.cc", program = "gtests/GuardedEntry/GuardedEntry", model = "testmodels/GuardedEntry.sct")
-@RunWith(GTestRunner.class)
-public class GuardedEntry {
-
-	protected final GTestHelper helper = new GTestHelper(this) {
-
-		@Override
-		protected void getSourceFiles(Collection<String> files) {
-			super.getSourceFiles(files);
-			files.add(getFileName(getTestProgram()) + ".c");
-		}
-	};
-
-	@Before
-	public void setUp() {
-		helper.generate();
-		helper.compile();
-	}
-}
+/**
+ * Copyright (c) 2012 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
+ */
+package org.yakindu.sct.generator.c.test;
+
+import java.util.Collection;
+
+import org.junit.Before;
+import org.junit.runner.RunWith;
+import org.yakindu.sct.generator.c.gtest.GTest;
+import org.yakindu.sct.generator.c.gtest.GTestRunner;
+import org.yakindu.sct.generator.c.gtest.GTestHelper;
+
+@GTest(sourceFile = "gtests/GuardedEntry/GuardedEntry.cc", program = "gtests/GuardedEntry/GuardedEntry", model = "testmodels/GuardedEntry.sct")
+@RunWith(GTestRunner.class)
+public class GuardedEntry {
+
+	protected final GTestHelper helper = new GTestHelper(this) {
+
+		@Override
+		protected void getSourceFiles(Collection<String> files) {
+			super.getSourceFiles(files);
+			files.add(getFileName(getTestProgram()) + ".c");
+		}
+	};
+
+	@Before
+	public void setUp() {
+		helper.generate();
+		helper.compile();
+	}
+}

+ 39 - 39
test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/GuardedExit.java

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 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
- */
-package org.yakindu.sct.generator.c.test;
-
-import java.util.Collection;
-
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.yakindu.sct.generator.c.gtest.GTest;
-import org.yakindu.sct.generator.c.gtest.GTestRunner;
-import org.yakindu.sct.generator.c.gtest.GTestHelper;
-
-@GTest(sourceFile = "gtests/GuardedExit/GuardedExit.cc", program = "gtests/GuardedExit/GuardedExit", model = "testmodels/GuardedExit.sct")
-@RunWith(GTestRunner.class)
-public class GuardedExit {
-
-	protected final GTestHelper helper = new GTestHelper(this) {
-
-		@Override
-		protected void getSourceFiles(Collection<String> files) {
-			super.getSourceFiles(files);
-			files.add(getFileName(getTestProgram()) + ".c");
-		}
-	};
-
-	@Before
-	public void setUp() {
-		helper.generate();
-		helper.compile();
-	}
-}
+/**
+ * Copyright (c) 2012 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
+ */
+package org.yakindu.sct.generator.c.test;
+
+import java.util.Collection;
+
+import org.junit.Before;
+import org.junit.runner.RunWith;
+import org.yakindu.sct.generator.c.gtest.GTest;
+import org.yakindu.sct.generator.c.gtest.GTestRunner;
+import org.yakindu.sct.generator.c.gtest.GTestHelper;
+
+@GTest(sourceFile = "gtests/GuardedExit/GuardedExit.cc", program = "gtests/GuardedExit/GuardedExit", model = "testmodels/GuardedExit.sct")
+@RunWith(GTestRunner.class)
+public class GuardedExit {
+
+	protected final GTestHelper helper = new GTestHelper(this) {
+
+		@Override
+		protected void getSourceFiles(Collection<String> files) {
+			super.getSourceFiles(files);
+			files.add(getFileName(getTestProgram()) + ".c");
+		}
+	};
+
+	@Before
+	public void setUp() {
+		helper.generate();
+		helper.compile();
+	}
+}

+ 39 - 39
test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/IntegerExpressions.java

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 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
- */
-package org.yakindu.sct.generator.c.test;
-
-import java.util.Collection;
-
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.yakindu.sct.generator.c.gtest.GTest;
-import org.yakindu.sct.generator.c.gtest.GTestRunner;
-import org.yakindu.sct.generator.c.gtest.GTestHelper;
-
-@GTest(sourceFile = "gtests/IntegerExpressions/IntegerExpressions.cc", program = "gtests/IntegerExpressions/IntegerExpressions", model = "testmodels/IntegerExpressions.sct")
-@RunWith(GTestRunner.class)
-public class IntegerExpressions {
-
-	protected final GTestHelper helper = new GTestHelper(this) {
-
-		@Override
-		protected void getSourceFiles(Collection<String> files) {
-			super.getSourceFiles(files);
-			files.add(getFileName(getTestProgram()) + ".c");
-		}
-	};
-
-	@Before
-	public void setUp() {
-		helper.generate();
-		helper.compile();
-	}
-}
+/**
+ * Copyright (c) 2012 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
+ */
+package org.yakindu.sct.generator.c.test;
+
+import java.util.Collection;
+
+import org.junit.Before;
+import org.junit.runner.RunWith;
+import org.yakindu.sct.generator.c.gtest.GTest;
+import org.yakindu.sct.generator.c.gtest.GTestRunner;
+import org.yakindu.sct.generator.c.gtest.GTestHelper;
+
+@GTest(sourceFile = "gtests/IntegerExpressions/IntegerExpressions.cc", program = "gtests/IntegerExpressions/IntegerExpressions", model = "testmodels/IntegerExpressions.sct")
+@RunWith(GTestRunner.class)
+public class IntegerExpressions {
+
+	protected final GTestHelper helper = new GTestHelper(this) {
+
+		@Override
+		protected void getSourceFiles(Collection<String> files) {
+			super.getSourceFiles(files);
+			files.add(getFileName(getTestProgram()) + ".c");
+		}
+	};
+
+	@Before
+	public void setUp() {
+		helper.generate();
+		helper.compile();
+	}
+}

+ 39 - 39
test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/InternalEventLifeCycle.java

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 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
- */
-package org.yakindu.sct.generator.c.test;
-
-import java.util.Collection;
-
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.yakindu.sct.generator.c.gtest.GTest;
-import org.yakindu.sct.generator.c.gtest.GTestRunner;
-import org.yakindu.sct.generator.c.gtest.GTestHelper;
-
-@GTest(sourceFile = "gtests/InternalEventLifeCycle/InternalEventLifeCycle.cc", program = "gtests/InternalEventLifeCycle/InternalEventLifeCycle", model = "testmodels/InternalEventLifeCycle.sct")
-@RunWith(GTestRunner.class)
-public class InternalEventLifeCycle {
-
-	protected final GTestHelper helper = new GTestHelper(this) {
-
-		@Override
-		protected void getSourceFiles(Collection<String> files) {
-			super.getSourceFiles(files);
-			files.add(getFileName(getTestProgram()) + ".c");
-		}
-	};
-
-	@Before
-	public void setUp() {
-		helper.generate();
-		helper.compile();
-	}
-}
+/**
+ * Copyright (c) 2012 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
+ */
+package org.yakindu.sct.generator.c.test;
+
+import java.util.Collection;
+
+import org.junit.Before;
+import org.junit.runner.RunWith;
+import org.yakindu.sct.generator.c.gtest.GTest;
+import org.yakindu.sct.generator.c.gtest.GTestRunner;
+import org.yakindu.sct.generator.c.gtest.GTestHelper;
+
+@GTest(sourceFile = "gtests/InternalEventLifeCycle/InternalEventLifeCycle.cc", program = "gtests/InternalEventLifeCycle/InternalEventLifeCycle", model = "testmodels/InternalEventLifeCycle.sct")
+@RunWith(GTestRunner.class)
+public class InternalEventLifeCycle {
+
+	protected final GTestHelper helper = new GTestHelper(this) {
+
+		@Override
+		protected void getSourceFiles(Collection<String> files) {
+			super.getSourceFiles(files);
+			files.add(getFileName(getTestProgram()) + ".c");
+		}
+	};
+
+	@Before
+	public void setUp() {
+		helper.generate();
+		helper.compile();
+	}
+}

+ 39 - 39
test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/PerformanceTests.java

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 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
- */
-package org.yakindu.sct.generator.c.test;
-
-import java.util.Collection;
-
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.yakindu.sct.generator.c.gtest.GTest;
-import org.yakindu.sct.generator.c.gtest.GTestRunner;
-import org.yakindu.sct.generator.c.gtest.GTestHelper;
-
-@GTest(sourceFile = "gtests/PerformanceTests/PerformanceTests.cc", program = "gtests/PerformanceTests/PerformanceTest", model = "testmodels/PerformanceTest.sct")
-@RunWith(GTestRunner.class)
-public class PerformanceTests {
-
-	protected final GTestHelper helper = new GTestHelper(this) {
-
-		@Override
-		protected void getSourceFiles(Collection<String> files) {
-			super.getSourceFiles(files);
-			files.add(getFileName(getTestProgram()) + ".c");
-		}
-	};
-
-	@Before
-	public void setUp() {
-		helper.generate();
-		helper.compile();
-	}
-}
+/**
+ * Copyright (c) 2012 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
+ */
+package org.yakindu.sct.generator.c.test;
+
+import java.util.Collection;
+
+import org.junit.Before;
+import org.junit.runner.RunWith;
+import org.yakindu.sct.generator.c.gtest.GTest;
+import org.yakindu.sct.generator.c.gtest.GTestRunner;
+import org.yakindu.sct.generator.c.gtest.GTestHelper;
+
+@GTest(sourceFile = "gtests/PerformanceTests/PerformanceTests.cc", program = "gtests/PerformanceTests/PerformanceTest", model = "testmodels/PerformanceTest.sct")
+@RunWith(GTestRunner.class)
+public class PerformanceTests {
+
+	protected final GTestHelper helper = new GTestHelper(this) {
+
+		@Override
+		protected void getSourceFiles(Collection<String> files) {
+			super.getSourceFiles(files);
+			files.add(getFileName(getTestProgram()) + ".c");
+		}
+	};
+
+	@Before
+	public void setUp() {
+		helper.generate();
+		helper.compile();
+	}
+}

+ 39 - 39
test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/PriorityValues.java

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 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
- */
-package org.yakindu.sct.generator.c.test;
-
-import java.util.Collection;
-
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.yakindu.sct.generator.c.gtest.GTest;
-import org.yakindu.sct.generator.c.gtest.GTestRunner;
-import org.yakindu.sct.generator.c.gtest.GTestHelper;
-
-@GTest(sourceFile = "gtests/PriorityValues/PriorityValues.cc", program = "gtests/PriorityValues/PriorityValues", model = "testmodels/PriorityValues.sct")
-@RunWith(GTestRunner.class)
-public class PriorityValues {
-
-	protected final GTestHelper helper = new GTestHelper(this) {
-
-		@Override
-		protected void getSourceFiles(Collection<String> files) {
-			super.getSourceFiles(files);
-			files.add(getFileName(getTestProgram()) + ".c");
-		}
-	};
-
-	@Before
-	public void setUp() {
-		helper.generate();
-		helper.compile();
-	}
-}
+/**
+ * Copyright (c) 2012 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
+ */
+package org.yakindu.sct.generator.c.test;
+
+import java.util.Collection;
+
+import org.junit.Before;
+import org.junit.runner.RunWith;
+import org.yakindu.sct.generator.c.gtest.GTest;
+import org.yakindu.sct.generator.c.gtest.GTestRunner;
+import org.yakindu.sct.generator.c.gtest.GTestHelper;
+
+@GTest(sourceFile = "gtests/PriorityValues/PriorityValues.cc", program = "gtests/PriorityValues/PriorityValues", model = "testmodels/PriorityValues.sct")
+@RunWith(GTestRunner.class)
+public class PriorityValues {
+
+	protected final GTestHelper helper = new GTestHelper(this) {
+
+		@Override
+		protected void getSourceFiles(Collection<String> files) {
+			super.getSourceFiles(files);
+			files.add(getFileName(getTestProgram()) + ".c");
+		}
+	};
+
+	@Before
+	public void setUp() {
+		helper.generate();
+		helper.compile();
+	}
+}

+ 39 - 39
test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/RaiseEvent.java

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 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
- */
-package org.yakindu.sct.generator.c.test;
-
-import java.util.Collection;
-
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.yakindu.sct.generator.c.gtest.GTest;
-import org.yakindu.sct.generator.c.gtest.GTestRunner;
-import org.yakindu.sct.generator.c.gtest.GTestHelper;
-
-@GTest(sourceFile = "gtests/RaiseEvent/RaiseEvent.cc", program = "gtests/RaiseEvent/RaiseEvent", model = "testmodels/RaiseEvent.sct")
-@RunWith(GTestRunner.class)
-public class RaiseEvent {
-
-	protected final GTestHelper helper = new GTestHelper(this) {
-
-		@Override
-		protected void getSourceFiles(Collection<String> files) {
-			super.getSourceFiles(files);
-			files.add(getFileName(getTestProgram()) + ".c");
-		}
-	};
-
-	@Before
-	public void setUp() {
-		helper.generate();
-		helper.compile();
-	}
-}
+/**
+ * Copyright (c) 2012 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
+ */
+package org.yakindu.sct.generator.c.test;
+
+import java.util.Collection;
+
+import org.junit.Before;
+import org.junit.runner.RunWith;
+import org.yakindu.sct.generator.c.gtest.GTest;
+import org.yakindu.sct.generator.c.gtest.GTestRunner;
+import org.yakindu.sct.generator.c.gtest.GTestHelper;
+
+@GTest(sourceFile = "gtests/RaiseEvent/RaiseEvent.cc", program = "gtests/RaiseEvent/RaiseEvent", model = "testmodels/RaiseEvent.sct")
+@RunWith(GTestRunner.class)
+public class RaiseEvent {
+
+	protected final GTestHelper helper = new GTestHelper(this) {
+
+		@Override
+		protected void getSourceFiles(Collection<String> files) {
+			super.getSourceFiles(files);
+			files.add(getFileName(getTestProgram()) + ".c");
+		}
+	};
+
+	@Before
+	public void setUp() {
+		helper.generate();
+		helper.compile();
+	}
+}

+ 39 - 39
test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/SameNameDifferentRegion.java

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 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
- */
-package org.yakindu.sct.generator.c.test;
-
-import java.util.Collection;
-
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.yakindu.sct.generator.c.gtest.GTest;
-import org.yakindu.sct.generator.c.gtest.GTestRunner;
-import org.yakindu.sct.generator.c.gtest.GTestHelper;
-
-@GTest(sourceFile = "gtests/SameNameDifferentRegion/SameNameDifferentRegion.cc", program = "gtests/SameNameDifferentRegion/SameNameDifferentRegion", model = "testmodels/SameNameDifferentRegion.sct")
-@RunWith(GTestRunner.class)
-public class SameNameDifferentRegion {
-
-	protected final GTestHelper helper = new GTestHelper(this) {
-
-		@Override
-		protected void getSourceFiles(Collection<String> files) {
-			super.getSourceFiles(files);
-			files.add(getFileName(getTestProgram()) + ".c");
-		}
-	};
-
-	@Before
-	public void setUp() {
-		helper.generate();
-		helper.compile();
-	}
-}
+/**
+ * Copyright (c) 2012 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
+ */
+package org.yakindu.sct.generator.c.test;
+
+import java.util.Collection;
+
+import org.junit.Before;
+import org.junit.runner.RunWith;
+import org.yakindu.sct.generator.c.gtest.GTest;
+import org.yakindu.sct.generator.c.gtest.GTestRunner;
+import org.yakindu.sct.generator.c.gtest.GTestHelper;
+
+@GTest(sourceFile = "gtests/SameNameDifferentRegion/SameNameDifferentRegion.cc", program = "gtests/SameNameDifferentRegion/SameNameDifferentRegion", model = "testmodels/SameNameDifferentRegion.sct")
+@RunWith(GTestRunner.class)
+public class SameNameDifferentRegion {
+
+	protected final GTestHelper helper = new GTestHelper(this) {
+
+		@Override
+		protected void getSourceFiles(Collection<String> files) {
+			super.getSourceFiles(files);
+			files.add(getFileName(getTestProgram()) + ".c");
+		}
+	};
+
+	@Before
+	public void setUp() {
+		helper.generate();
+		helper.compile();
+	}
+}

+ 39 - 39
test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/ShallowHistory.java

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 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
- */
-package org.yakindu.sct.generator.c.test;
-
-import java.util.Collection;
-
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.yakindu.sct.generator.c.gtest.GTest;
-import org.yakindu.sct.generator.c.gtest.GTestRunner;
-import org.yakindu.sct.generator.c.gtest.GTestHelper;
-
-@GTest(sourceFile = "gtests/ShallowHistory/ShallowHistory.cc", program = "gtests/ShallowHistory/ShallowHistory", model = "testmodels/ShallowHistory.sct")
-@RunWith(GTestRunner.class)
-public class ShallowHistory {
-
-	protected final GTestHelper helper = new GTestHelper(this) {
-
-		@Override
-		protected void getSourceFiles(Collection<String> files) {
-			super.getSourceFiles(files);
-			files.add(getFileName(getTestProgram()) + ".c");
-		}
-	};
-
-	@Before
-	public void setUp() {
-		helper.generate();
-		helper.compile();
-	}
-}
+/**
+ * Copyright (c) 2012 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
+ */
+package org.yakindu.sct.generator.c.test;
+
+import java.util.Collection;
+
+import org.junit.Before;
+import org.junit.runner.RunWith;
+import org.yakindu.sct.generator.c.gtest.GTest;
+import org.yakindu.sct.generator.c.gtest.GTestRunner;
+import org.yakindu.sct.generator.c.gtest.GTestHelper;
+
+@GTest(sourceFile = "gtests/ShallowHistory/ShallowHistory.cc", program = "gtests/ShallowHistory/ShallowHistory", model = "testmodels/ShallowHistory.sct")
+@RunWith(GTestRunner.class)
+public class ShallowHistory {
+
+	protected final GTestHelper helper = new GTestHelper(this) {
+
+		@Override
+		protected void getSourceFiles(Collection<String> files) {
+			super.getSourceFiles(files);
+			files.add(getFileName(getTestProgram()) + ".c");
+		}
+	};
+
+	@Before
+	public void setUp() {
+		helper.generate();
+		helper.compile();
+	}
+}

+ 39 - 39
test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/SimpleEvent.java

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 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
- */
-package org.yakindu.sct.generator.c.test;
-
-import java.util.Collection;
-
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.yakindu.sct.generator.c.gtest.GTest;
-import org.yakindu.sct.generator.c.gtest.GTestRunner;
-import org.yakindu.sct.generator.c.gtest.GTestHelper;
-
-@GTest(sourceFile = "gtests/SimpleEvent/SimpleEvent.cc", program = "gtests/SimpleEvent/SimpleEvent", model = "testmodels/SimpleEvent.sct")
-@RunWith(GTestRunner.class)
-public class SimpleEvent {
-
-	protected final GTestHelper helper = new GTestHelper(this) {
-
-		@Override
-		protected void getSourceFiles(Collection<String> files) {
-			super.getSourceFiles(files);
-			files.add(getFileName(getTestProgram()) + ".c");
-		}
-	};
-
-	@Before
-	public void setUp() {
-		helper.generate();
-		helper.compile();
-	}
-}
+/**
+ * Copyright (c) 2012 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
+ */
+package org.yakindu.sct.generator.c.test;
+
+import java.util.Collection;
+
+import org.junit.Before;
+import org.junit.runner.RunWith;
+import org.yakindu.sct.generator.c.gtest.GTest;
+import org.yakindu.sct.generator.c.gtest.GTestRunner;
+import org.yakindu.sct.generator.c.gtest.GTestHelper;
+
+@GTest(sourceFile = "gtests/SimpleEvent/SimpleEvent.cc", program = "gtests/SimpleEvent/SimpleEvent", model = "testmodels/SimpleEvent.sct")
+@RunWith(GTestRunner.class)
+public class SimpleEvent {
+
+	protected final GTestHelper helper = new GTestHelper(this) {
+
+		@Override
+		protected void getSourceFiles(Collection<String> files) {
+			super.getSourceFiles(files);
+			files.add(getFileName(getTestProgram()) + ".c");
+		}
+	};
+
+	@Before
+	public void setUp() {
+		helper.generate();
+		helper.compile();
+	}
+}

+ 39 - 39
test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/SimpleHietachy.java

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 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
- */
-package org.yakindu.sct.generator.c.test;
-
-import java.util.Collection;
-
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.yakindu.sct.generator.c.gtest.GTest;
-import org.yakindu.sct.generator.c.gtest.GTestRunner;
-import org.yakindu.sct.generator.c.gtest.GTestHelper;
-
-@GTest(sourceFile = "gtests/SimpleHietachy/SimpleHietachy.cc", program = "gtests/SimpleHietachy/SimpleHierachy", model = "testmodels/SimpleHierachy.sct")
-@RunWith(GTestRunner.class)
-public class SimpleHietachy {
-
-	protected final GTestHelper helper = new GTestHelper(this) {
-
-		@Override
-		protected void getSourceFiles(Collection<String> files) {
-			super.getSourceFiles(files);
-			files.add(getFileName(getTestProgram()) + ".c");
-		}
-	};
-
-	@Before
-	public void setUp() {
-		helper.generate();
-		helper.compile();
-	}
-}
+/**
+ * Copyright (c) 2012 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
+ */
+package org.yakindu.sct.generator.c.test;
+
+import java.util.Collection;
+
+import org.junit.Before;
+import org.junit.runner.RunWith;
+import org.yakindu.sct.generator.c.gtest.GTest;
+import org.yakindu.sct.generator.c.gtest.GTestRunner;
+import org.yakindu.sct.generator.c.gtest.GTestHelper;
+
+@GTest(sourceFile = "gtests/SimpleHietachy/SimpleHietachy.cc", program = "gtests/SimpleHietachy/SimpleHierachy", model = "testmodels/SimpleHierachy.sct")
+@RunWith(GTestRunner.class)
+public class SimpleHietachy {
+
+	protected final GTestHelper helper = new GTestHelper(this) {
+
+		@Override
+		protected void getSourceFiles(Collection<String> files) {
+			super.getSourceFiles(files);
+			files.add(getFileName(getTestProgram()) + ".c");
+		}
+	};
+
+	@Before
+	public void setUp() {
+		helper.generate();
+		helper.compile();
+	}
+}

+ 39 - 39
test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/StateIsActive.java

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 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
- */
-package org.yakindu.sct.generator.c.test;
-
-import java.util.Collection;
-
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.yakindu.sct.generator.c.gtest.GTest;
-import org.yakindu.sct.generator.c.gtest.GTestRunner;
-import org.yakindu.sct.generator.c.gtest.GTestHelper;
-
-@GTest(sourceFile = "gtests/StateIsActive/StateIsActive.cc", program = "gtests/StateIsActive/StateIsActive", model = "testmodels/StateIsActive.sct")
-@RunWith(GTestRunner.class)
-public class StateIsActive {
-
-	protected final GTestHelper helper = new GTestHelper(this) {
-
-		@Override
-		protected void getSourceFiles(Collection<String> files) {
-			super.getSourceFiles(files);
-			files.add(getFileName(getTestProgram()) + ".c");
-		}
-	};
-
-	@Before
-	public void setUp() {
-		helper.generate();
-		helper.compile();
-	}
-}
+/**
+ * Copyright (c) 2012 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
+ */
+package org.yakindu.sct.generator.c.test;
+
+import java.util.Collection;
+
+import org.junit.Before;
+import org.junit.runner.RunWith;
+import org.yakindu.sct.generator.c.gtest.GTest;
+import org.yakindu.sct.generator.c.gtest.GTestRunner;
+import org.yakindu.sct.generator.c.gtest.GTestHelper;
+
+@GTest(sourceFile = "gtests/StateIsActive/StateIsActive.cc", program = "gtests/StateIsActive/StateIsActive", model = "testmodels/StateIsActive.sct")
+@RunWith(GTestRunner.class)
+public class StateIsActive {
+
+	protected final GTestHelper helper = new GTestHelper(this) {
+
+		@Override
+		protected void getSourceFiles(Collection<String> files) {
+			super.getSourceFiles(files);
+			files.add(getFileName(getTestProgram()) + ".c");
+		}
+	};
+
+	@Before
+	public void setUp() {
+		helper.generate();
+		helper.compile();
+	}
+}

+ 39 - 39
test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/StatechartLocalReactions.java

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 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
- */
-package org.yakindu.sct.generator.c.test;
-
-import java.util.Collection;
-
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.yakindu.sct.generator.c.gtest.GTest;
-import org.yakindu.sct.generator.c.gtest.GTestRunner;
-import org.yakindu.sct.generator.c.gtest.GTestHelper;
-
-@GTest(sourceFile = "gtests/StatechartLocalReactions/StatechartLocalReactions.cc", program = "gtests/StatechartLocalReactions/StatechartLocalReactions", model = "testmodels/StatechartLocalReactions.sct")
-@RunWith(GTestRunner.class)
-public class StatechartLocalReactions {
-
-	protected final GTestHelper helper = new GTestHelper(this) {
-
-		@Override
-		protected void getSourceFiles(Collection<String> files) {
-			super.getSourceFiles(files);
-			files.add(getFileName(getTestProgram()) + ".c");
-		}
-	};
-
-	@Before
-	public void setUp() {
-		helper.generate();
-		helper.compile();
-	}
-}
+/**
+ * Copyright (c) 2012 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
+ */
+package org.yakindu.sct.generator.c.test;
+
+import java.util.Collection;
+
+import org.junit.Before;
+import org.junit.runner.RunWith;
+import org.yakindu.sct.generator.c.gtest.GTest;
+import org.yakindu.sct.generator.c.gtest.GTestRunner;
+import org.yakindu.sct.generator.c.gtest.GTestHelper;
+
+@GTest(sourceFile = "gtests/StatechartLocalReactions/StatechartLocalReactions.cc", program = "gtests/StatechartLocalReactions/StatechartLocalReactions", model = "testmodels/StatechartLocalReactions.sct")
+@RunWith(GTestRunner.class)
+public class StatechartLocalReactions {
+
+	protected final GTestHelper helper = new GTestHelper(this) {
+
+		@Override
+		protected void getSourceFiles(Collection<String> files) {
+			super.getSourceFiles(files);
+			files.add(getFileName(getTestProgram()) + ".c");
+		}
+	};
+
+	@Before
+	public void setUp() {
+		helper.generate();
+		helper.compile();
+	}
+}

+ 39 - 39
test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/StringExpressions.java

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 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
- */
-package org.yakindu.sct.generator.c.test;
-
-import java.util.Collection;
-
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.yakindu.sct.generator.c.gtest.GTest;
-import org.yakindu.sct.generator.c.gtest.GTestRunner;
-import org.yakindu.sct.generator.c.gtest.GTestHelper;
-
-@GTest(sourceFile = "gtests/StringExpressions/StringExpressions.cc", program = "gtests/StringExpressions/StringExpressions", model = "testmodels/StringExpressions.sct")
-@RunWith(GTestRunner.class)
-public class StringExpressions {
-
-	protected final GTestHelper helper = new GTestHelper(this) {
-
-		@Override
-		protected void getSourceFiles(Collection<String> files) {
-			super.getSourceFiles(files);
-			files.add(getFileName(getTestProgram()) + ".c");
-		}
-	};
-
-	@Before
-	public void setUp() {
-		helper.generate();
-		helper.compile();
-	}
-}
+/**
+ * Copyright (c) 2012 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
+ */
+package org.yakindu.sct.generator.c.test;
+
+import java.util.Collection;
+
+import org.junit.Before;
+import org.junit.runner.RunWith;
+import org.yakindu.sct.generator.c.gtest.GTest;
+import org.yakindu.sct.generator.c.gtest.GTestRunner;
+import org.yakindu.sct.generator.c.gtest.GTestHelper;
+
+@GTest(sourceFile = "gtests/StringExpressions/StringExpressions.cc", program = "gtests/StringExpressions/StringExpressions", model = "testmodels/StringExpressions.sct")
+@RunWith(GTestRunner.class)
+public class StringExpressions {
+
+	protected final GTestHelper helper = new GTestHelper(this) {
+
+		@Override
+		protected void getSourceFiles(Collection<String> files) {
+			super.getSourceFiles(files);
+			files.add(getFileName(getTestProgram()) + ".c");
+		}
+	};
+
+	@Before
+	public void setUp() {
+		helper.generate();
+		helper.compile();
+	}
+}

+ 39 - 39
test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/SyncFork.java

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 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
- */
-package org.yakindu.sct.generator.c.test;
-
-import java.util.Collection;
-
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.yakindu.sct.generator.c.gtest.GTest;
-import org.yakindu.sct.generator.c.gtest.GTestRunner;
-import org.yakindu.sct.generator.c.gtest.GTestHelper;
-
-@GTest(sourceFile = "gtests/SyncFork/SyncFork.cc", program = "gtests/SyncFork/SyncFork", model = "testmodels/SyncFork.sct")
-@RunWith(GTestRunner.class)
-public class SyncFork {
-
-	protected final GTestHelper helper = new GTestHelper(this) {
-
-		@Override
-		protected void getSourceFiles(Collection<String> files) {
-			super.getSourceFiles(files);
-			files.add(getFileName(getTestProgram()) + ".c");
-		}
-	};
-
-	@Before
-	public void setUp() {
-		helper.generate();
-		helper.compile();
-	}
-}
+/**
+ * Copyright (c) 2012 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
+ */
+package org.yakindu.sct.generator.c.test;
+
+import java.util.Collection;
+
+import org.junit.Before;
+import org.junit.runner.RunWith;
+import org.yakindu.sct.generator.c.gtest.GTest;
+import org.yakindu.sct.generator.c.gtest.GTestRunner;
+import org.yakindu.sct.generator.c.gtest.GTestHelper;
+
+@GTest(sourceFile = "gtests/SyncFork/SyncFork.cc", program = "gtests/SyncFork/SyncFork", model = "testmodels/SyncFork.sct")
+@RunWith(GTestRunner.class)
+public class SyncFork {
+
+	protected final GTestHelper helper = new GTestHelper(this) {
+
+		@Override
+		protected void getSourceFiles(Collection<String> files) {
+			super.getSourceFiles(files);
+			files.add(getFileName(getTestProgram()) + ".c");
+		}
+	};
+
+	@Before
+	public void setUp() {
+		helper.generate();
+		helper.compile();
+	}
+}

+ 39 - 39
test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/SyncJoin.java

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 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
- */
-package org.yakindu.sct.generator.c.test;
-
-import java.util.Collection;
-
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.yakindu.sct.generator.c.gtest.GTest;
-import org.yakindu.sct.generator.c.gtest.GTestRunner;
-import org.yakindu.sct.generator.c.gtest.GTestHelper;
-
-@GTest(sourceFile = "gtests/SyncJoin/SyncJoin.cc", program = "gtests/SyncJoin/SyncJoin", model = "testmodels/SyncJoin.sct")
-@RunWith(GTestRunner.class)
-public class SyncJoin {
-
-	protected final GTestHelper helper = new GTestHelper(this) {
-
-		@Override
-		protected void getSourceFiles(Collection<String> files) {
-			super.getSourceFiles(files);
-			files.add(getFileName(getTestProgram()) + ".c");
-		}
-	};
-
-	@Before
-	public void setUp() {
-		helper.generate();
-		helper.compile();
-	}
-}
+/**
+ * Copyright (c) 2012 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
+ */
+package org.yakindu.sct.generator.c.test;
+
+import java.util.Collection;
+
+import org.junit.Before;
+import org.junit.runner.RunWith;
+import org.yakindu.sct.generator.c.gtest.GTest;
+import org.yakindu.sct.generator.c.gtest.GTestRunner;
+import org.yakindu.sct.generator.c.gtest.GTestHelper;
+
+@GTest(sourceFile = "gtests/SyncJoin/SyncJoin.cc", program = "gtests/SyncJoin/SyncJoin", model = "testmodels/SyncJoin.sct")
+@RunWith(GTestRunner.class)
+public class SyncJoin {
+
+	protected final GTestHelper helper = new GTestHelper(this) {
+
+		@Override
+		protected void getSourceFiles(Collection<String> files) {
+			super.getSourceFiles(files);
+			files.add(getFileName(getTestProgram()) + ".c");
+		}
+	};
+
+	@Before
+	public void setUp() {
+		helper.generate();
+		helper.compile();
+	}
+}

+ 39 - 39
test-plugins/org.yakindu.sct.generator.c.test/src-gen/org/yakindu/sct/generator/c/test/ValuedEvent.java

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 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
- */
-package org.yakindu.sct.generator.c.test;
-
-import java.util.Collection;
-
-import org.junit.Before;
-import org.junit.runner.RunWith;
-import org.yakindu.sct.generator.c.gtest.GTest;
-import org.yakindu.sct.generator.c.gtest.GTestRunner;
-import org.yakindu.sct.generator.c.gtest.GTestHelper;
-
-@GTest(sourceFile = "gtests/ValuedEvent/ValuedEvent.cc", program = "gtests/ValuedEvent/ValuedEvents", model = "testmodels/ValuedEvents.sct")
-@RunWith(GTestRunner.class)
-public class ValuedEvent {
-
-	protected final GTestHelper helper = new GTestHelper(this) {
-
-		@Override
-		protected void getSourceFiles(Collection<String> files) {
-			super.getSourceFiles(files);
-			files.add(getFileName(getTestProgram()) + ".c");
-		}
-	};
-
-	@Before
-	public void setUp() {
-		helper.generate();
-		helper.compile();
-	}
-}
+/**
+ * Copyright (c) 2012 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
+ */
+package org.yakindu.sct.generator.c.test;
+
+import java.util.Collection;
+
+import org.junit.Before;
+import org.junit.runner.RunWith;
+import org.yakindu.sct.generator.c.gtest.GTest;
+import org.yakindu.sct.generator.c.gtest.GTestRunner;
+import org.yakindu.sct.generator.c.gtest.GTestHelper;
+
+@GTest(sourceFile = "gtests/ValuedEvent/ValuedEvent.cc", program = "gtests/ValuedEvent/ValuedEvents", model = "testmodels/ValuedEvents.sct")
+@RunWith(GTestRunner.class)
+public class ValuedEvent {
+
+	protected final GTestHelper helper = new GTestHelper(this) {
+
+		@Override
+		protected void getSourceFiles(Collection<String> files) {
+			super.getSourceFiles(files);
+			files.add(getFileName(getTestProgram()) + ".c");
+		}
+	};
+
+	@Before
+	public void setUp() {
+		helper.generate();
+		helper.compile();
+	}
+}

+ 4 - 0
test-plugins/org.yakindu.sct.generator.c.test/src/org/yakindu/sct/generator/c/gtest/GTestRunner.java

@@ -34,6 +34,7 @@ import org.eclipse.core.resources.IResource;
 import org.eclipse.core.resources.ResourcesPlugin;
 import org.eclipse.core.runtime.FileLocator;
 import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.Platform;
 import org.junit.After;
 import org.junit.Before;
 import org.junit.runner.Description;
@@ -173,6 +174,9 @@ public class GTestRunner extends Runner {
 
 	private void runGTests(RunNotifier notifier) throws IOException, InterruptedException {
 		String program = testClass.getAnnotation(GTest.class).program();
+		if (Platform.getOS().equalsIgnoreCase(Platform.OS_WIN32)) {
+			program += ".exe";
+		}
 		IResource programFile = ResourcesPlugin.getWorkspace().getRoot().findMember(new Path(program));
 		IContainer programContainer = programFile.getParent();
 		if (!programContainer.isAccessible()) {