Procházet zdrojové kódy

Adapt the test.sgen Model to the new generator features (#1307)

Also newly generated the Java Tests.
jthoene před 8 roky
rodič
revize
682bca6ca6
68 změnil soubory, kde provedl 6270 přidání a 5940 odebrání
  1. 873 543
      test-plugins/org.yakindu.sct.generator.java.test/model/test.sgen
  2. 82 82
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/AllTestsTest.java
  3. 61 61
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/AlwaysOncycleTest.java
  4. 92 92
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/AssignmentAsExpressionTest.java
  5. 65 65
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/BitExpressionsTest.java
  6. 63 63
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/BooleanExpressionsTest.java
  7. 53 53
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/CKeywordsTest.java
  8. 55 55
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/CastExpressionsTest.java
  9. 116 116
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/ChoiceTest.java
  10. 53 53
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/ConditionalExpressionTest.java
  11. 53 53
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/ConstOnlyDefaultScopeTest.java
  12. 53 53
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/ConstOnlyInternalScopeTest.java
  13. 53 53
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/ConstOnlyNamedScopeTest.java
  14. 67 67
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/ConstantsTestsTest.java
  15. 43 43
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/DeclarationsTest.java
  16. 69 69
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/DeepEntryTest.java
  17. 67 67
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/DeepHistoryTest.java
  18. 48 48
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/DynamicChoiceTest.java
  19. 48 48
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/EmptyTransitionTest.java
  20. 69 69
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/EnterStateTest.java
  21. 47 47
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/EntryChoiceTest.java
  22. 81 81
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/EntryExitSelfTransitionTest.java
  23. 95 95
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/EntryReactionActionTest.java
  24. 61 61
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/ExitOnSelfTransitionTest.java
  25. 78 78
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/ExitStateTest.java
  26. 48 48
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/FeatureCallsTest.java
  27. 46 46
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/FinalStateTest.java
  28. 65 65
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/GuardTest.java
  29. 94 94
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/GuardedEntryTest.java
  30. 66 66
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/GuardedExitTest.java
  31. 65 65
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/HistoryWithExitPointTest.java
  32. 91 91
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/HistoryWithoutInitialStepTest.java
  33. 49 49
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/InEventLifeCycleTest.java
  34. 85 85
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/IntegerExpressionsTest.java
  35. 69 69
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/InternalEventLifeCycleTest.java
  36. 48 48
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/LocalReactionsTest.java
  37. 46 46
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/LogicalAndTestsTest.java
  38. 46 46
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/LogicalOrTestsTest.java
  39. 52 52
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/NamedInterfaceAccessTest.java
  40. 48 48
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/NullCheckTest.java
  41. 162 162
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/OperationsTest.java
  42. 62 62
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/OperationsWithoutBracesTest.java
  43. 73 73
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/OutEventLifeCycleTest.java
  44. 47 47
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/ParenthesisTest.java
  45. 110 110
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/PerformanceTestsTest.java
  46. 61 61
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/PriorityValuesTest.java
  47. 54 54
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/RaiseEventTest.java
  48. 80 80
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/ReadOnlyVariableTest.java
  49. 923 923
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/STextKeywordsInStatesAndRegionsTest.java
  50. 57 57
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/SameNameDifferentRegionTest.java
  51. 85 85
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/ShallowHistoryTest.java
  52. 105 105
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/ShallowHistoryWithDeepEntryTest.java
  53. 54 54
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/SimpleEventTest.java
  54. 53 53
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/SimpleHierachyTest.java
  55. 54 54
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/StateIsActiveTest.java
  56. 65 65
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/StatechartActiveTest.java
  57. 62 62
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/StatechartLocalReactionsTest.java
  58. 47 47
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/StatemachineKeywordsTest.java
  59. 46 46
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/StaticChoiceTest.java
  60. 97 97
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/StringExpressionsTest.java
  61. 73 73
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/SyncForkTest.java
  62. 152 152
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/SyncJoinTest.java
  63. 51 51
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/TimedTransitionsTest.java
  64. 48 48
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/TransitionWithoutConditionTest.java
  65. 75 75
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/TriggerExpressionPrecedenceTest.java
  66. 85 85
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/TriggerGuardExpressionsTest.java
  67. 59 59
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/TypeAliasTest.java
  68. 67 67
      test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/ValuedEventsTest.java

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 873 - 543
test-plugins/org.yakindu.sct.generator.java.test/model/test.sgen


+ 82 - 82
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/AllTestsTest.java

@@ -1,82 +1,82 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite;
-import org.junit.runners.Suite.SuiteClasses;
-
-@RunWith(Suite.class)
-@SuiteClasses({
-	AlwaysOncycleTest.class,
-	AssignmentAsExpressionTest.class,
-	BitExpressionsTest.class,
-	BooleanExpressionsTest.class,
-	CastExpressionsTest.class,
-	ChoiceTest.class,
-	CKeywordsTest.class,
-	ConditionalExpressionTest.class,
-	ConstantsTestsTest.class,
-	ConstOnlyDefaultScopeTest.class,
-	ConstOnlyInternalScopeTest.class,
-	ConstOnlyNamedScopeTest.class,
-	DeclarationsTest.class,
-	DeepEntryTest.class,
-	DeepHistoryTest.class,
-	DynamicChoiceTest.class,
-	EmptyTransitionTest.class,
-	EnterStateTest.class,
-	EntryChoiceTest.class,
-	EntryExitSelfTransitionTest.class,
-	EntryReactionActionTest.class,
-	ExitOnSelfTransitionTest.class,
-	ExitStateTest.class,
-	FeatureCallsTest.class,
-	FinalStateTest.class,
-	GuardTest.class,
-	GuardedEntryTest.class,
-	GuardedExitTest.class,
-	HistoryWithExitPointTest.class,
-	HistoryWithoutInitialStepTest.class,
-	InEventLifeCycleTest.class,
-	IntegerExpressionsTest.class,
-	InternalEventLifeCycleTest.class,
-	LocalReactionsTest.class,
-	LogicalAndTestsTest.class,
-	LogicalOrTestsTest.class,
-	NamedInterfaceAccessTest.class,
-	OperationsTest.class,
-	OutEventLifeCycleTest.class,
-	ParenthesisTest.class,
-	PriorityValuesTest.class,
-	RaiseEventTest.class,
-	ReadOnlyVariableTest.class,
-	SameNameDifferentRegionTest.class,
-	ShallowHistoryTest.class,
-	ShallowHistoryWithDeepEntryTest.class,
-	SimpleEventTest.class,
-	SimpleHierachyTest.class,
-	StatechartActiveTest.class,
-	StatechartLocalReactionsTest.class,
-	StateIsActiveTest.class,
-	StaticChoiceTest.class,
-	STextKeywordsInStatesAndRegionsTest.class,
-	StringExpressionsTest.class,
-	SyncForkTest.class,
-	SyncJoinTest.class,
-	TransitionWithoutConditionTest.class,
-	TriggerGuardExpressionsTest.class,
-	TriggerExpressionPrecedenceTest.class,
-	ValuedEventsTest.class,
-	TypeAliasTest.class
-	})
-public class AllTestsTest {
-}
+/**
+* Copyright (c) 2017 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.scttests;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+import org.junit.runners.Suite.SuiteClasses;
+
+@RunWith(Suite.class)
+@SuiteClasses({
+	AlwaysOncycleTest.class,
+	AssignmentAsExpressionTest.class,
+	BitExpressionsTest.class,
+	BooleanExpressionsTest.class,
+	CastExpressionsTest.class,
+	ChoiceTest.class,
+	CKeywordsTest.class,
+	ConditionalExpressionTest.class,
+	ConstantsTestsTest.class,
+	ConstOnlyDefaultScopeTest.class,
+	ConstOnlyInternalScopeTest.class,
+	ConstOnlyNamedScopeTest.class,
+	DeclarationsTest.class,
+	DeepEntryTest.class,
+	DeepHistoryTest.class,
+	DynamicChoiceTest.class,
+	EmptyTransitionTest.class,
+	EnterStateTest.class,
+	EntryChoiceTest.class,
+	EntryExitSelfTransitionTest.class,
+	EntryReactionActionTest.class,
+	ExitOnSelfTransitionTest.class,
+	ExitStateTest.class,
+	FeatureCallsTest.class,
+	FinalStateTest.class,
+	GuardTest.class,
+	GuardedEntryTest.class,
+	GuardedExitTest.class,
+	HistoryWithExitPointTest.class,
+	HistoryWithoutInitialStepTest.class,
+	InEventLifeCycleTest.class,
+	IntegerExpressionsTest.class,
+	InternalEventLifeCycleTest.class,
+	LocalReactionsTest.class,
+	LogicalAndTestsTest.class,
+	LogicalOrTestsTest.class,
+	NamedInterfaceAccessTest.class,
+	OperationsTest.class,
+	OutEventLifeCycleTest.class,
+	ParenthesisTest.class,
+	PriorityValuesTest.class,
+	RaiseEventTest.class,
+	ReadOnlyVariableTest.class,
+	SameNameDifferentRegionTest.class,
+	ShallowHistoryTest.class,
+	ShallowHistoryWithDeepEntryTest.class,
+	SimpleEventTest.class,
+	SimpleHierachyTest.class,
+	StatechartActiveTest.class,
+	StatechartLocalReactionsTest.class,
+	StateIsActiveTest.class,
+	StaticChoiceTest.class,
+	STextKeywordsInStatesAndRegionsTest.class,
+	StringExpressionsTest.class,
+	SyncForkTest.class,
+	SyncJoinTest.class,
+	TransitionWithoutConditionTest.class,
+	TriggerGuardExpressionsTest.class,
+	TriggerExpressionPrecedenceTest.class,
+	ValuedEventsTest.class,
+	TypeAliasTest.class
+	})
+public class AllTestsTest {
+}

+ 61 - 61
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/AlwaysOncycleTest.java

@@ -1,61 +1,61 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.alwaysoncycle.AlwaysOncycleStatemachine;
-import org.yakindu.scr.alwaysoncycle.AlwaysOncycleStatemachine.State;
-
-/**
- * Unit TestCase for AlwaysOncycle
- */
-@SuppressWarnings("all")
-public class AlwaysOncycleTest {
-	private AlwaysOncycleStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new AlwaysOncycleStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testalwaysOncycleTest() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_StateA));
-		 
-		while (statemachine.getValue() < 5l) {
-			statemachine.runCycle();
-			assertTrue(statemachine.isStateActive(State.main_region_StateA));
-			 
-		}
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_StateB));
-		 
-		while (statemachine.getValue() < 5l) {
-			statemachine.runCycle();
-			assertTrue(statemachine.isStateActive(State.main_region_StateB));
-			 
-		}
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_StateA));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.alwaysoncycle.AlwaysOncycleStatemachine;
+import org.yakindu.scr.alwaysoncycle.AlwaysOncycleStatemachine.State;
+
+/**
+ * Unit TestCase for AlwaysOncycle
+ */
+@SuppressWarnings("all")
+public class AlwaysOncycleTest {
+	private AlwaysOncycleStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new AlwaysOncycleStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testalwaysOncycleTest() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_StateA));
+		 
+		while (statemachine.getValue() < 5l) {
+			statemachine.runCycle();
+			assertTrue(statemachine.isStateActive(State.main_region_StateA));
+			 
+		}
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_StateB));
+		 
+		while (statemachine.getValue() < 5l) {
+			statemachine.runCycle();
+			assertTrue(statemachine.isStateActive(State.main_region_StateB));
+			 
+		}
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_StateA));
+		 
+	}
+}

+ 92 - 92
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/AssignmentAsExpressionTest.java

@@ -1,92 +1,92 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.assignmentasexpression.AssignmentAsExpressionStatemachine;
-import org.yakindu.scr.assignmentasexpression.AssignmentAsExpressionStatemachine.State;
-
-/**
- * Unit TestCase for AssignmentAsExpression
- */
-@SuppressWarnings("all")
-public class AssignmentAsExpressionTest {
-	private AssignmentAsExpressionStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new AssignmentAsExpressionStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testsimpleAssignment() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_Add));
-		 
-		assertTrue(statemachine.getB() == 5l);
-		 
-		assertTrue(statemachine.getA() == 9l);
-		 
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_Subtract));
-		 
-		assertTrue(statemachine.getD() == 6l);
-		 
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_Multiply));
-		 
-		assertTrue(statemachine.getE() == 15l);
-		 
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_Divide));
-		 
-		assertTrue(statemachine.getG() == 1l);
-		 
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_Modulo));
-		 
-		assertTrue(statemachine.getI() == 1l);
-		 
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_Shift));
-		 
-		assertTrue(statemachine.getJ() == 16l);
-		 
-		assertTrue(statemachine.getK() == 4l);
-		 
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_boolean_And));
-		 
-		assertTrue(statemachine.getL() == 1l);
-		 
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_boolean_Or));
-		 
-		assertTrue(statemachine.getP() == 15l);
-		 
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_boolean_Xor));
-		 
-		assertTrue(statemachine.getU() == 12l);
-		 
-		statemachine.exit();
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.assignmentasexpression.AssignmentAsExpressionStatemachine;
+import org.yakindu.scr.assignmentasexpression.AssignmentAsExpressionStatemachine.State;
+
+/**
+ * Unit TestCase for AssignmentAsExpression
+ */
+@SuppressWarnings("all")
+public class AssignmentAsExpressionTest {
+	private AssignmentAsExpressionStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new AssignmentAsExpressionStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testsimpleAssignment() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_Add));
+		 
+		assertTrue(statemachine.getB() == 5l);
+		 
+		assertTrue(statemachine.getA() == 9l);
+		 
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_Subtract));
+		 
+		assertTrue(statemachine.getD() == 6l);
+		 
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_Multiply));
+		 
+		assertTrue(statemachine.getE() == 15l);
+		 
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_Divide));
+		 
+		assertTrue(statemachine.getG() == 1l);
+		 
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_Modulo));
+		 
+		assertTrue(statemachine.getI() == 1l);
+		 
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_Shift));
+		 
+		assertTrue(statemachine.getJ() == 16l);
+		 
+		assertTrue(statemachine.getK() == 4l);
+		 
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_boolean_And));
+		 
+		assertTrue(statemachine.getL() == 1l);
+		 
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_boolean_Or));
+		 
+		assertTrue(statemachine.getP() == 15l);
+		 
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_boolean_Xor));
+		 
+		assertTrue(statemachine.getU() == 12l);
+		 
+		statemachine.exit();
+	}
+}

+ 65 - 65
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/BitExpressionsTest.java

@@ -1,65 +1,65 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.bitexpressions.BitExpressionsStatemachine;
-import org.yakindu.scr.bitexpressions.BitExpressionsStatemachine.State;
-
-/**
- * Unit TestCase for BitExpressions
- */
-@SuppressWarnings("all")
-public class BitExpressionsTest {
-	private BitExpressionsStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new BitExpressionsStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testBitExpressions() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_StateA));
-		 
-		assertTrue(statemachine.getMyBit1() == 5l);
-		 
-		assertTrue(statemachine.getMyBit2() == 7l);
-		 
-		statemachine.raiseE1();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_StateB));
-		 
-		assertTrue(statemachine.getLeftBitshift() == 10l);
-		 
-		assertTrue(statemachine.getRightBitshift() == 2l);
-		 
-		assertTrue(statemachine.getComplementBitshift() == - 6l );
-		 
-		assertTrue(statemachine.getBitwiseAnd() == 5l);
-		 
-		assertTrue(statemachine.getBitwiseOr() == 7l);
-		 
-		assertTrue(statemachine.getBitwiseXor() == 2l);
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.bitexpressions.BitExpressionsStatemachine;
+import org.yakindu.scr.bitexpressions.BitExpressionsStatemachine.State;
+
+/**
+ * Unit TestCase for BitExpressions
+ */
+@SuppressWarnings("all")
+public class BitExpressionsTest {
+	private BitExpressionsStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new BitExpressionsStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testBitExpressions() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_StateA));
+		 
+		assertTrue(statemachine.getMyBit1() == 5l);
+		 
+		assertTrue(statemachine.getMyBit2() == 7l);
+		 
+		statemachine.raiseE1();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_StateB));
+		 
+		assertTrue(statemachine.getLeftBitshift() == 10l);
+		 
+		assertTrue(statemachine.getRightBitshift() == 2l);
+		 
+		assertTrue(statemachine.getComplementBitshift() == - 6l );
+		 
+		assertTrue(statemachine.getBitwiseAnd() == 5l);
+		 
+		assertTrue(statemachine.getBitwiseOr() == 7l);
+		 
+		assertTrue(statemachine.getBitwiseXor() == 2l);
+		 
+	}
+}

+ 63 - 63
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/BooleanExpressionsTest.java

@@ -1,63 +1,63 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.booleanexpressions.BooleanExpressionsStatemachine;
-import org.yakindu.scr.booleanexpressions.BooleanExpressionsStatemachine.State;
-
-/**
- * Unit TestCase for BooleanExpressions
- */
-@SuppressWarnings("all")
-public class BooleanExpressionsTest {
-	private BooleanExpressionsStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new BooleanExpressionsStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testbooleanExpressions() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_StateA));
-		 
-		assertTrue(statemachine.getMyBool1() == true);
-		 
-		assertTrue(statemachine.getMyBool2() == false);
-		 
-		statemachine.raiseE1();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_StateB));
-		 
-		assertTrue(statemachine.getAnd() == false);
-		 
-		assertTrue(statemachine.getOr() == true);
-		 
-		assertTrue(statemachine.getNot() == false);
-		 
-		assertTrue(statemachine.getEqual() == false);
-		 
-		assertTrue(statemachine.getNotequal() == true);
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.booleanexpressions.BooleanExpressionsStatemachine;
+import org.yakindu.scr.booleanexpressions.BooleanExpressionsStatemachine.State;
+
+/**
+ * Unit TestCase for BooleanExpressions
+ */
+@SuppressWarnings("all")
+public class BooleanExpressionsTest {
+	private BooleanExpressionsStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new BooleanExpressionsStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testbooleanExpressions() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_StateA));
+		 
+		assertTrue(statemachine.getMyBool1() == true);
+		 
+		assertTrue(statemachine.getMyBool2() == false);
+		 
+		statemachine.raiseE1();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_StateB));
+		 
+		assertTrue(statemachine.getAnd() == false);
+		 
+		assertTrue(statemachine.getOr() == true);
+		 
+		assertTrue(statemachine.getNot() == false);
+		 
+		assertTrue(statemachine.getEqual() == false);
+		 
+		assertTrue(statemachine.getNotequal() == true);
+		 
+	}
+}

+ 53 - 53
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/CKeywordsTest.java

@@ -1,53 +1,53 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.ckeywords.CKeywordsStatemachine;
-import org.yakindu.scr.ckeywords.CKeywordsStatemachine.State;
-
-/**
- * Unit TestCase for CKeywords
- */
-@SuppressWarnings("all")
-public class CKeywordsTest {
-	private CKeywordsStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new CKeywordsStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testCKeywordsTest() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.auto_char));
-		 
-		statemachine.raiseAuto();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.auto_loop));
-		 
-		assertTrue(statemachine.isStateActive(State.auto_loop_switch_case));
-		 
-		assertTrue(statemachine.isStateActive(State.auto_loop_switch_case_enum_asm));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.ckeywords.CKeywordsStatemachine;
+import org.yakindu.scr.ckeywords.CKeywordsStatemachine.State;
+
+/**
+ * Unit TestCase for CKeywords
+ */
+@SuppressWarnings("all")
+public class CKeywordsTest {
+	private CKeywordsStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new CKeywordsStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testCKeywordsTest() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.auto_char));
+		 
+		statemachine.raiseAuto();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.auto_loop));
+		 
+		assertTrue(statemachine.isStateActive(State.auto_loop_switch_case));
+		 
+		assertTrue(statemachine.isStateActive(State.auto_loop_switch_case_enum_asm));
+		 
+	}
+}

+ 55 - 55
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/CastExpressionsTest.java

@@ -1,55 +1,55 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.castexpressions.CastExpressionsStatemachine;
-import org.yakindu.scr.castexpressions.CastExpressionsStatemachine.State;
-
-/**
- * Unit TestCase for CastExpressions
- */
-@SuppressWarnings("all")
-public class CastExpressionsTest {
-	private CastExpressionsStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new CastExpressionsStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testCastExpressionTest() {
-		statemachine.enter();
-		assertTrue(statemachine.getRealValue() == 5l);
-		 
-		assertTrue(statemachine.getIntValue() == 5l);
-		 
-		statemachine.runCycle();
-		assertTrue(statemachine.getRealValue() == 15l);
-		 
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_C));
-		 
-		assertTrue(statemachine.getRealValue() == 757l);
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.castexpressions.CastExpressionsStatemachine;
+import org.yakindu.scr.castexpressions.CastExpressionsStatemachine.State;
+
+/**
+ * Unit TestCase for CastExpressions
+ */
+@SuppressWarnings("all")
+public class CastExpressionsTest {
+	private CastExpressionsStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new CastExpressionsStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testCastExpressionTest() {
+		statemachine.enter();
+		assertTrue(statemachine.getRealValue() == 5l);
+		 
+		assertTrue(statemachine.getIntValue() == 5l);
+		 
+		statemachine.runCycle();
+		assertTrue(statemachine.getRealValue() == 15l);
+		 
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_C));
+		 
+		assertTrue(statemachine.getRealValue() == 757l);
+		 
+	}
+}

+ 116 - 116
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/ChoiceTest.java

@@ -1,116 +1,116 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.choice.ChoiceStatemachine;
-import org.yakindu.scr.choice.ChoiceStatemachine.State;
-
-/**
- * Unit TestCase for Choice
- */
-@SuppressWarnings("all")
-public class ChoiceTest {
-	private ChoiceStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new ChoiceStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testelseChoiceUsingNonDefaultTransition() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.setC(true);
-		statemachine.raiseE();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_C));
-		 
-	}
-	@Test
-	public void testelseChoiceUsingDefaultTransition() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.setC(false);
-		statemachine.raiseE();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B));
-		 
-	}
-	@Test
-	public void testdefaultChoiceUsingNonDefaultTransition() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.setC(true);
-		statemachine.raiseG();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_C));
-		 
-	}
-	@Test
-	public void testdefaultChoiceUsingDefaultTransition() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.setC(false);
-		statemachine.raiseG();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B));
-		 
-	}
-	@Test
-	public void testuncheckedChoiceUsingNonDefaultTransition() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.setC(true);
-		statemachine.raiseF();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_C));
-		 
-	}
-	@Test
-	public void testuncheckedChoiceUsingDefaultTransition() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.setC(false);
-		statemachine.raiseF();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B));
-		 
-	}
-	@Test
-	public void testalwaysTrueTransitionInChoice() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.setC(true);
-		statemachine.raiseH();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_C));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.choice.ChoiceStatemachine;
+import org.yakindu.scr.choice.ChoiceStatemachine.State;
+
+/**
+ * Unit TestCase for Choice
+ */
+@SuppressWarnings("all")
+public class ChoiceTest {
+	private ChoiceStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new ChoiceStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testelseChoiceUsingNonDefaultTransition() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.setC(true);
+		statemachine.raiseE();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_C));
+		 
+	}
+	@Test
+	public void testelseChoiceUsingDefaultTransition() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.setC(false);
+		statemachine.raiseE();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B));
+		 
+	}
+	@Test
+	public void testdefaultChoiceUsingNonDefaultTransition() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.setC(true);
+		statemachine.raiseG();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_C));
+		 
+	}
+	@Test
+	public void testdefaultChoiceUsingDefaultTransition() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.setC(false);
+		statemachine.raiseG();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B));
+		 
+	}
+	@Test
+	public void testuncheckedChoiceUsingNonDefaultTransition() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.setC(true);
+		statemachine.raiseF();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_C));
+		 
+	}
+	@Test
+	public void testuncheckedChoiceUsingDefaultTransition() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.setC(false);
+		statemachine.raiseF();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B));
+		 
+	}
+	@Test
+	public void testalwaysTrueTransitionInChoice() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.setC(true);
+		statemachine.raiseH();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_C));
+		 
+	}
+}

+ 53 - 53
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/ConditionalExpressionTest.java

@@ -1,53 +1,53 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.conditionalexpressions.ConditionalExpressionsStatemachine;
-import org.yakindu.scr.conditionalexpressions.ConditionalExpressionsStatemachine.State;
-
-/**
- * Unit TestCase for ConditionalExpressions
- */
-@SuppressWarnings("all")
-public class ConditionalExpressionTest {
-	private ConditionalExpressionsStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new ConditionalExpressionsStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testConditionalExpressionTest() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		assertTrue(statemachine.getCondition() == 1l);
-		 
-		statemachine.raiseE();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B));
-		 
-		assertTrue(statemachine.getCondition() == 2l);
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.conditionalexpressions.ConditionalExpressionsStatemachine;
+import org.yakindu.scr.conditionalexpressions.ConditionalExpressionsStatemachine.State;
+
+/**
+ * Unit TestCase for ConditionalExpressions
+ */
+@SuppressWarnings("all")
+public class ConditionalExpressionTest {
+	private ConditionalExpressionsStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new ConditionalExpressionsStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testConditionalExpressionTest() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		assertTrue(statemachine.getCondition() == 1l);
+		 
+		statemachine.raiseE();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B));
+		 
+		assertTrue(statemachine.getCondition() == 2l);
+		 
+	}
+}

+ 53 - 53
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/ConstOnlyDefaultScopeTest.java

@@ -1,53 +1,53 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.constonlydefaultscope.ConstOnlyDefaultScopeStatemachine;
-import org.yakindu.scr.constonlydefaultscope.ConstOnlyDefaultScopeStatemachine.State;
-
-/**
- * Unit TestCase for ConstOnlyDefaultScope
- */
-@SuppressWarnings("all")
-public class ConstOnlyDefaultScopeTest {
-	private ConstOnlyDefaultScopeStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new ConstOnlyDefaultScopeStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void teststatechartEntry() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.constOnlyDefaultScope_main_region_A));
-		 
-	}
-	@Test
-	public void teststateTransition() {
-		statemachine.enter();
-		statemachine.getSCIA().raiseE(1l);
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.constOnlyDefaultScope_main_region_B));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.constonlydefaultscope.ConstOnlyDefaultScopeStatemachine;
+import org.yakindu.scr.constonlydefaultscope.ConstOnlyDefaultScopeStatemachine.State;
+
+/**
+ * Unit TestCase for ConstOnlyDefaultScope
+ */
+@SuppressWarnings("all")
+public class ConstOnlyDefaultScopeTest {
+	private ConstOnlyDefaultScopeStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new ConstOnlyDefaultScopeStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void teststatechartEntry() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.constOnlyDefaultScope_main_region_A));
+		 
+	}
+	@Test
+	public void teststateTransition() {
+		statemachine.enter();
+		statemachine.getSCIA().raiseE(1l);
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.constOnlyDefaultScope_main_region_B));
+		 
+	}
+}

+ 53 - 53
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/ConstOnlyInternalScopeTest.java

@@ -1,53 +1,53 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.constonlyinternalscope.ConstOnlyInternalScopeStatemachine;
-import org.yakindu.scr.constonlyinternalscope.ConstOnlyInternalScopeStatemachine.State;
-
-/**
- * Unit TestCase for ConstOnlyInternalScope
- */
-@SuppressWarnings("all")
-public class ConstOnlyInternalScopeTest {
-	private ConstOnlyInternalScopeStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new ConstOnlyInternalScopeStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void teststatechartEntry() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.constOnlyInternalScope_main_region_A));
-		 
-	}
-	@Test
-	public void teststateTransition() {
-		statemachine.enter();
-		statemachine.raiseE(1l);
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.constOnlyInternalScope_main_region_B));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.constonlyinternalscope.ConstOnlyInternalScopeStatemachine;
+import org.yakindu.scr.constonlyinternalscope.ConstOnlyInternalScopeStatemachine.State;
+
+/**
+ * Unit TestCase for ConstOnlyInternalScope
+ */
+@SuppressWarnings("all")
+public class ConstOnlyInternalScopeTest {
+	private ConstOnlyInternalScopeStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new ConstOnlyInternalScopeStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void teststatechartEntry() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.constOnlyInternalScope_main_region_A));
+		 
+	}
+	@Test
+	public void teststateTransition() {
+		statemachine.enter();
+		statemachine.raiseE(1l);
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.constOnlyInternalScope_main_region_B));
+		 
+	}
+}

+ 53 - 53
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/ConstOnlyNamedScopeTest.java

@@ -1,53 +1,53 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.constonlynamedscope.ConstOnlyNamedScopeStatemachine;
-import org.yakindu.scr.constonlynamedscope.ConstOnlyNamedScopeStatemachine.State;
-
-/**
- * Unit TestCase for ConstOnlyNamedScope
- */
-@SuppressWarnings("all")
-public class ConstOnlyNamedScopeTest {
-	private ConstOnlyNamedScopeStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new ConstOnlyNamedScopeStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void teststatechartEntry() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.constOnlyNamedScope_main_region_A));
-		 
-	}
-	@Test
-	public void teststateTransition() {
-		statemachine.enter();
-		statemachine.raiseE(1l);
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.constOnlyNamedScope_main_region_B));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.constonlynamedscope.ConstOnlyNamedScopeStatemachine;
+import org.yakindu.scr.constonlynamedscope.ConstOnlyNamedScopeStatemachine.State;
+
+/**
+ * Unit TestCase for ConstOnlyNamedScope
+ */
+@SuppressWarnings("all")
+public class ConstOnlyNamedScopeTest {
+	private ConstOnlyNamedScopeStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new ConstOnlyNamedScopeStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void teststatechartEntry() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.constOnlyNamedScope_main_region_A));
+		 
+	}
+	@Test
+	public void teststateTransition() {
+		statemachine.enter();
+		statemachine.raiseE(1l);
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.constOnlyNamedScope_main_region_B));
+		 
+	}
+}

+ 67 - 67
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/ConstantsTestsTest.java

@@ -1,67 +1,67 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.constants.ConstantsStatemachine;
-import org.yakindu.scr.constants.ConstantsStatemachine.State;
-
-/**
- * Unit TestCase for Constants
- */
-@SuppressWarnings("all")
-public class ConstantsTestsTest {
-	private ConstantsStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new ConstantsStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testconstantDefinition() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		assertTrue(statemachine.getX() == 10l);
-		 
-		assertTrue(statemachine.getY() == 20l);
-		 
-		assertTrue(statemachine.getSCINamed().getY().equals("Hello World"));
-		 
-		statemachine.raiseE();
-		statemachine.runCycle();
-		assertTrue(statemachine.getResult() == 20l);
-		 
-		statemachine.raiseE();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_C));
-		 
-		assertTrue(statemachine.getResult() == 100l);
-		 
-		statemachine.raiseE2(statemachine.getX());
-		statemachine.runCycle();
-		assertTrue(statemachine.getResult() == 1000l);
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.constants.ConstantsStatemachine;
+import org.yakindu.scr.constants.ConstantsStatemachine.State;
+
+/**
+ * Unit TestCase for Constants
+ */
+@SuppressWarnings("all")
+public class ConstantsTestsTest {
+	private ConstantsStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new ConstantsStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testconstantDefinition() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		assertTrue(statemachine.getX() == 10l);
+		 
+		assertTrue(statemachine.getY() == 20l);
+		 
+		assertTrue(statemachine.getSCINamed().getY().equals("Hello World"));
+		 
+		statemachine.raiseE();
+		statemachine.runCycle();
+		assertTrue(statemachine.getResult() == 20l);
+		 
+		statemachine.raiseE();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_C));
+		 
+		assertTrue(statemachine.getResult() == 100l);
+		 
+		statemachine.raiseE2(statemachine.getX());
+		statemachine.runCycle();
+		assertTrue(statemachine.getResult() == 1000l);
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+	}
+}

+ 43 - 43
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/DeclarationsTest.java

@@ -1,43 +1,43 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.declarations.DeclarationsStatemachine;
-import org.yakindu.scr.declarations.DeclarationsStatemachine.State;
-
-/**
- * Unit TestCase for Declarations
- */
-@SuppressWarnings("all")
-public class DeclarationsTest {
-	private DeclarationsStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new DeclarationsStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testdeclarationsTest() {
-		statemachine.enter();
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.declarations.DeclarationsStatemachine;
+import org.yakindu.scr.declarations.DeclarationsStatemachine.State;
+
+/**
+ * Unit TestCase for Declarations
+ */
+@SuppressWarnings("all")
+public class DeclarationsTest {
+	private DeclarationsStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new DeclarationsStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testdeclarationsTest() {
+		statemachine.enter();
+	}
+}

+ 69 - 69
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/DeepEntryTest.java

@@ -1,69 +1,69 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.deepentry.DeepEntryStatemachine;
-import org.yakindu.scr.deepentry.DeepEntryStatemachine.State;
-
-/**
- * Unit TestCase for DeepEntry
- */
-@SuppressWarnings("all")
-public class DeepEntryTest {
-	private DeepEntryStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new DeepEntryStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testenterToSubstate() {
-		assertTrue(statemachine.getX() == 0l);
-		 
-		assertTrue(statemachine.getY() == 0l);
-		 
-		assertTrue(statemachine.getZ() == 0l);
-		 
-		statemachine.enter();
-		assertTrue(statemachine.getX() == 1l);
-		 
-		assertTrue(statemachine.getY() == 1l);
-		 
-		assertTrue(statemachine.getZ() == 2l);
-		 
-		statemachine.raiseE();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.r2_B_r_BB));
-		 
-		statemachine.raiseF();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.r2_C));
-		 
-		statemachine.raiseF();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.r2_B_r_BB));
-		 
-		assertTrue(statemachine.getY() == 1l);
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.deepentry.DeepEntryStatemachine;
+import org.yakindu.scr.deepentry.DeepEntryStatemachine.State;
+
+/**
+ * Unit TestCase for DeepEntry
+ */
+@SuppressWarnings("all")
+public class DeepEntryTest {
+	private DeepEntryStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new DeepEntryStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testenterToSubstate() {
+		assertTrue(statemachine.getX() == 0l);
+		 
+		assertTrue(statemachine.getY() == 0l);
+		 
+		assertTrue(statemachine.getZ() == 0l);
+		 
+		statemachine.enter();
+		assertTrue(statemachine.getX() == 1l);
+		 
+		assertTrue(statemachine.getY() == 1l);
+		 
+		assertTrue(statemachine.getZ() == 2l);
+		 
+		statemachine.raiseE();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.r2_B_r_BB));
+		 
+		statemachine.raiseF();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.r2_C));
+		 
+		statemachine.raiseF();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.r2_B_r_BB));
+		 
+		assertTrue(statemachine.getY() == 1l);
+		 
+	}
+}

+ 67 - 67
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/DeepHistoryTest.java

@@ -1,67 +1,67 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.deephistory.DeepHistoryStatemachine;
-import org.yakindu.scr.deephistory.DeepHistoryStatemachine.State;
-
-/**
- * Unit TestCase for DeepHistory
- */
-@SuppressWarnings("all")
-public class DeepHistoryTest {
-	private DeepHistoryStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new DeepHistoryStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testdeepHistoryTest() {
-		statemachine.enter();
-		statemachine.raiseEvent1();
-		statemachine.runCycle();
-		statemachine.raiseEvent3();
-		statemachine.runCycle();
-		statemachine.raiseEvent5();
-		statemachine.runCycle();
-		statemachine.raiseEvent7();
-		statemachine.runCycle();
-		assertTrue(!statemachine.isStateActive(State.mainRegion_State1));
-		 
-		assertTrue(statemachine.isStateActive(State.mainRegion_State2__region0_State4__region0_State7__region0_State9));
-		 
-		statemachine.raiseEvent2();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.mainRegion_State1));
-		 
-		assertTrue(!statemachine.isStateActive(State.mainRegion_State2__region0_State4__region0_State7__region0_State9));
-		 
-		statemachine.raiseEvent1();
-		statemachine.runCycle();
-		assertTrue(!statemachine.isStateActive(State.mainRegion_State1));
-		 
-		assertTrue(statemachine.isStateActive(State.mainRegion_State2__region0_State4__region0_State7__region0_State9));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.deephistory.DeepHistoryStatemachine;
+import org.yakindu.scr.deephistory.DeepHistoryStatemachine.State;
+
+/**
+ * Unit TestCase for DeepHistory
+ */
+@SuppressWarnings("all")
+public class DeepHistoryTest {
+	private DeepHistoryStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new DeepHistoryStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testdeepHistoryTest() {
+		statemachine.enter();
+		statemachine.raiseEvent1();
+		statemachine.runCycle();
+		statemachine.raiseEvent3();
+		statemachine.runCycle();
+		statemachine.raiseEvent5();
+		statemachine.runCycle();
+		statemachine.raiseEvent7();
+		statemachine.runCycle();
+		assertTrue(!statemachine.isStateActive(State.mainRegion_State1));
+		 
+		assertTrue(statemachine.isStateActive(State.mainRegion_State2__region0_State4__region0_State7__region0_State9));
+		 
+		statemachine.raiseEvent2();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.mainRegion_State1));
+		 
+		assertTrue(!statemachine.isStateActive(State.mainRegion_State2__region0_State4__region0_State7__region0_State9));
+		 
+		statemachine.raiseEvent1();
+		statemachine.runCycle();
+		assertTrue(!statemachine.isStateActive(State.mainRegion_State1));
+		 
+		assertTrue(statemachine.isStateActive(State.mainRegion_State2__region0_State4__region0_State7__region0_State9));
+		 
+	}
+}

+ 48 - 48
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/DynamicChoiceTest.java

@@ -1,48 +1,48 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.dynamicchoice.DynamicChoiceStatemachine;
-import org.yakindu.scr.dynamicchoice.DynamicChoiceStatemachine.State;
-
-/**
- * Unit TestCase for DynamicChoice
- */
-@SuppressWarnings("all")
-public class DynamicChoiceTest {
-	private DynamicChoiceStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new DynamicChoiceStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testDynamicChoiceTest() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_Start));
-		 
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.dynamicchoice.DynamicChoiceStatemachine;
+import org.yakindu.scr.dynamicchoice.DynamicChoiceStatemachine.State;
+
+/**
+ * Unit TestCase for DynamicChoice
+ */
+@SuppressWarnings("all")
+public class DynamicChoiceTest {
+	private DynamicChoiceStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new DynamicChoiceStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testDynamicChoiceTest() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_Start));
+		 
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+	}
+}

+ 48 - 48
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/EmptyTransitionTest.java

@@ -1,48 +1,48 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.emptytransition.EmptyTransitionStatemachine;
-import org.yakindu.scr.emptytransition.EmptyTransitionStatemachine.State;
-
-/**
- * Unit TestCase for EmptyTransition
- */
-@SuppressWarnings("all")
-public class EmptyTransitionTest {
-	private EmptyTransitionStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new EmptyTransitionStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testEmptyTransitionTest() {
-		statemachine.enter();
-		statemachine.runCycle();
-		assertTrue(!statemachine.isStateActive(State.main_region_B));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.emptytransition.EmptyTransitionStatemachine;
+import org.yakindu.scr.emptytransition.EmptyTransitionStatemachine.State;
+
+/**
+ * Unit TestCase for EmptyTransition
+ */
+@SuppressWarnings("all")
+public class EmptyTransitionTest {
+	private EmptyTransitionStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new EmptyTransitionStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testEmptyTransitionTest() {
+		statemachine.enter();
+		statemachine.runCycle();
+		assertTrue(!statemachine.isStateActive(State.main_region_B));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+	}
+}

+ 69 - 69
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/EnterStateTest.java

@@ -1,69 +1,69 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.enterstate.EnterStateStatemachine;
-import org.yakindu.scr.enterstate.EnterStateStatemachine.State;
-
-/**
- * Unit TestCase for EnterState
- */
-@SuppressWarnings("all")
-public class EnterStateTest {
-	private EnterStateStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new EnterStateStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testdefaultEntry() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.r_A));
-		 
-		statemachine.raiseE();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.r_B_r_E));
-		 
-	}
-	@Test
-	public void testnamedEntryThroughNamedTransition() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.r_A));
-		 
-		statemachine.raiseF();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.r_B_r_F));
-		 
-	}
-	@Test
-	public void testnamedEntryThroughDefaultTransition() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.r_A));
-		 
-		statemachine.raiseG();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.r_B_r_E));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.enterstate.EnterStateStatemachine;
+import org.yakindu.scr.enterstate.EnterStateStatemachine.State;
+
+/**
+ * Unit TestCase for EnterState
+ */
+@SuppressWarnings("all")
+public class EnterStateTest {
+	private EnterStateStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new EnterStateStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testdefaultEntry() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.r_A));
+		 
+		statemachine.raiseE();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.r_B_r_E));
+		 
+	}
+	@Test
+	public void testnamedEntryThroughNamedTransition() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.r_A));
+		 
+		statemachine.raiseF();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.r_B_r_F));
+		 
+	}
+	@Test
+	public void testnamedEntryThroughDefaultTransition() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.r_A));
+		 
+		statemachine.raiseG();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.r_B_r_E));
+		 
+	}
+}

+ 47 - 47
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/EntryChoiceTest.java

@@ -1,47 +1,47 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.entrychoice.EntryChoiceStatemachine;
-import org.yakindu.scr.entrychoice.EntryChoiceStatemachine.State;
-
-/**
- * Unit TestCase for EntryChoice
- */
-@SuppressWarnings("all")
-public class EntryChoiceTest {
-	private EntryChoiceStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new EntryChoiceStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testEntryChoiceTest() {
-		statemachine.enter();
-		statemachine.runCycle();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.entrychoice.EntryChoiceStatemachine;
+import org.yakindu.scr.entrychoice.EntryChoiceStatemachine.State;
+
+/**
+ * Unit TestCase for EntryChoice
+ */
+@SuppressWarnings("all")
+public class EntryChoiceTest {
+	private EntryChoiceStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new EntryChoiceStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testEntryChoiceTest() {
+		statemachine.enter();
+		statemachine.runCycle();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+	}
+}

+ 81 - 81
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/EntryExitSelfTransitionTest.java

@@ -1,81 +1,81 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.entryexitselftransition.EntryExitSelfTransitionStatemachine;
-import org.yakindu.scr.entryexitselftransition.EntryExitSelfTransitionStatemachine.State;
-
-/**
- * Unit TestCase for EntryExitSelfTransition
- */
-@SuppressWarnings("all")
-public class EntryExitSelfTransitionTest {
-	private EntryExitSelfTransitionStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new EntryExitSelfTransitionStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testSelfTransitionToChildState() {
-		statemachine.enter();
-		statemachine.runCycle();
-		assertTrue(statemachine.getEntries() == 1l);
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_A__region0_B));
-		 
-		statemachine.setEntries(0l);
-		statemachine.raiseE();
-		statemachine.runCycle();
-		assertTrue(statemachine.getEntries() == 1l);
-		 
-		assertTrue(statemachine.getExits() == 1l);
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_A__region0_C));
-		 
-	}
-	@Test
-	public void testSelfTransitionFromChildState() {
-		statemachine.enter();
-		statemachine.runCycle();
-		assertTrue(statemachine.getEntries() == 1l);
-		 
-		statemachine.setEntries(0l);
-		statemachine.raiseE1();
-		statemachine.runCycle();
-		assertTrue(statemachine.getEntries() == 0l);
-		 
-		assertTrue(statemachine.getExits() == 0l);
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_A__region0_C));
-		 
-		statemachine.raiseE1();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_A__region0_B));
-		 
-		assertTrue(statemachine.getEntries() == 1l);
-		 
-		assertTrue(statemachine.getExits() == 1l);
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.entryexitselftransition.EntryExitSelfTransitionStatemachine;
+import org.yakindu.scr.entryexitselftransition.EntryExitSelfTransitionStatemachine.State;
+
+/**
+ * Unit TestCase for EntryExitSelfTransition
+ */
+@SuppressWarnings("all")
+public class EntryExitSelfTransitionTest {
+	private EntryExitSelfTransitionStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new EntryExitSelfTransitionStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testSelfTransitionToChildState() {
+		statemachine.enter();
+		statemachine.runCycle();
+		assertTrue(statemachine.getEntries() == 1l);
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_A__region0_B));
+		 
+		statemachine.setEntries(0l);
+		statemachine.raiseE();
+		statemachine.runCycle();
+		assertTrue(statemachine.getEntries() == 1l);
+		 
+		assertTrue(statemachine.getExits() == 1l);
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_A__region0_C));
+		 
+	}
+	@Test
+	public void testSelfTransitionFromChildState() {
+		statemachine.enter();
+		statemachine.runCycle();
+		assertTrue(statemachine.getEntries() == 1l);
+		 
+		statemachine.setEntries(0l);
+		statemachine.raiseE1();
+		statemachine.runCycle();
+		assertTrue(statemachine.getEntries() == 0l);
+		 
+		assertTrue(statemachine.getExits() == 0l);
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_A__region0_C));
+		 
+		statemachine.raiseE1();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_A__region0_B));
+		 
+		assertTrue(statemachine.getEntries() == 1l);
+		 
+		assertTrue(statemachine.getExits() == 1l);
+		 
+	}
+}

+ 95 - 95
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/EntryReactionActionTest.java

@@ -1,95 +1,95 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.entryreactionaction.EntryReactionActionStatemachine;
-import org.yakindu.scr.entryreactionaction.EntryReactionActionStatemachine.State;
-
-/**
- * Unit TestCase for EntryReactionAction
- */
-@SuppressWarnings("all")
-public class EntryReactionActionTest {
-	private EntryReactionActionStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new EntryReactionActionStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testentryTransitionActionOnStatechartEnter() {
-		statemachine.enter();
-		assertTrue(statemachine.getEnteredR1());
-		 
-		assertTrue(statemachine.getEnteredR2());
-		 
-		assertTrue(statemachine.getEnteredBdefault());
-		 
-		assertTrue(!statemachine.getEnteredBother());
-		 
-	}
-	@Test
-	public void testentryOnRTS() {
-		statemachine.enter();
-		statemachine.raiseB();
-		statemachine.runCycle();
-		statemachine.raiseD();
-		statemachine.runCycle();
-		statemachine.setEnteredR1(false);
-		statemachine.setEnteredR2(false);
-		statemachine.setEnteredBdefault(false);
-		statemachine.setEnteredBother(false);
-		statemachine.raiseB();
-		statemachine.runCycle();
-		assertTrue(!statemachine.getEnteredR1());
-		 
-		assertTrue(!statemachine.getEnteredR2());
-		 
-		assertTrue(!statemachine.getEnteredBdefault());
-		 
-		assertTrue(statemachine.getEnteredBother());
-		 
-	}
-	@Test
-	public void testnoEntryTransitionActionOnHistory() {
-		statemachine.enter();
-		statemachine.raiseB();
-		statemachine.runCycle();
-		statemachine.raiseD();
-		statemachine.runCycle();
-		statemachine.setEnteredR1(false);
-		statemachine.setEnteredR2(false);
-		statemachine.setEnteredBdefault(false);
-		statemachine.setEnteredBother(false);
-		statemachine.raiseD();
-		statemachine.runCycle();
-		assertTrue(!statemachine.getEnteredR1());
-		 
-		assertTrue(!statemachine.getEnteredR2());
-		 
-		assertTrue(!statemachine.getEnteredBdefault());
-		 
-		assertTrue(!statemachine.getEnteredBother());
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.entryreactionaction.EntryReactionActionStatemachine;
+import org.yakindu.scr.entryreactionaction.EntryReactionActionStatemachine.State;
+
+/**
+ * Unit TestCase for EntryReactionAction
+ */
+@SuppressWarnings("all")
+public class EntryReactionActionTest {
+	private EntryReactionActionStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new EntryReactionActionStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testentryTransitionActionOnStatechartEnter() {
+		statemachine.enter();
+		assertTrue(statemachine.getEnteredR1());
+		 
+		assertTrue(statemachine.getEnteredR2());
+		 
+		assertTrue(statemachine.getEnteredBdefault());
+		 
+		assertTrue(!statemachine.getEnteredBother());
+		 
+	}
+	@Test
+	public void testentryOnRTS() {
+		statemachine.enter();
+		statemachine.raiseB();
+		statemachine.runCycle();
+		statemachine.raiseD();
+		statemachine.runCycle();
+		statemachine.setEnteredR1(false);
+		statemachine.setEnteredR2(false);
+		statemachine.setEnteredBdefault(false);
+		statemachine.setEnteredBother(false);
+		statemachine.raiseB();
+		statemachine.runCycle();
+		assertTrue(!statemachine.getEnteredR1());
+		 
+		assertTrue(!statemachine.getEnteredR2());
+		 
+		assertTrue(!statemachine.getEnteredBdefault());
+		 
+		assertTrue(statemachine.getEnteredBother());
+		 
+	}
+	@Test
+	public void testnoEntryTransitionActionOnHistory() {
+		statemachine.enter();
+		statemachine.raiseB();
+		statemachine.runCycle();
+		statemachine.raiseD();
+		statemachine.runCycle();
+		statemachine.setEnteredR1(false);
+		statemachine.setEnteredR2(false);
+		statemachine.setEnteredBdefault(false);
+		statemachine.setEnteredBother(false);
+		statemachine.raiseD();
+		statemachine.runCycle();
+		assertTrue(!statemachine.getEnteredR1());
+		 
+		assertTrue(!statemachine.getEnteredR2());
+		 
+		assertTrue(!statemachine.getEnteredBdefault());
+		 
+		assertTrue(!statemachine.getEnteredBother());
+		 
+	}
+}

+ 61 - 61
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/ExitOnSelfTransitionTest.java

@@ -1,61 +1,61 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.exitonselftransition.ExitOnSelfTransitionStatemachine;
-import org.yakindu.scr.exitonselftransition.ExitOnSelfTransitionStatemachine.State;
-
-/**
- * Unit TestCase for ExitOnSelfTransition
- */
-@SuppressWarnings("all")
-public class ExitOnSelfTransitionTest {
-	private ExitOnSelfTransitionStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new ExitOnSelfTransitionStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testExitOnSelfTransitionTest() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		assertTrue(statemachine.getEntryCount() == 1l);
-		 
-		assertTrue(statemachine.getExitCount() == 0l);
-		 
-		statemachine.raiseE();
-		statemachine.runCycle();
-		assertTrue(statemachine.getEntryCount() == 2l);
-		 
-		assertTrue(statemachine.getExitCount() == 1l);
-		 
-		statemachine.raiseF();
-		statemachine.runCycle();
-		assertTrue(statemachine.getEntryCount() == 2l);
-		 
-		assertTrue(statemachine.getExitCount() == 2l);
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.exitonselftransition.ExitOnSelfTransitionStatemachine;
+import org.yakindu.scr.exitonselftransition.ExitOnSelfTransitionStatemachine.State;
+
+/**
+ * Unit TestCase for ExitOnSelfTransition
+ */
+@SuppressWarnings("all")
+public class ExitOnSelfTransitionTest {
+	private ExitOnSelfTransitionStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new ExitOnSelfTransitionStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testExitOnSelfTransitionTest() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		assertTrue(statemachine.getEntryCount() == 1l);
+		 
+		assertTrue(statemachine.getExitCount() == 0l);
+		 
+		statemachine.raiseE();
+		statemachine.runCycle();
+		assertTrue(statemachine.getEntryCount() == 2l);
+		 
+		assertTrue(statemachine.getExitCount() == 1l);
+		 
+		statemachine.raiseF();
+		statemachine.runCycle();
+		assertTrue(statemachine.getEntryCount() == 2l);
+		 
+		assertTrue(statemachine.getExitCount() == 2l);
+		 
+	}
+}

+ 78 - 78
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/ExitStateTest.java

@@ -1,78 +1,78 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.exitstate.ExitStateStatemachine;
-import org.yakindu.scr.exitstate.ExitStateStatemachine.State;
-
-/**
- * Unit TestCase for ExitState
- */
-@SuppressWarnings("all")
-public class ExitStateTest {
-	private ExitStateStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new ExitStateStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testdefaultExit() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.r_A));
-		 
-		statemachine.raiseE();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.r_E));
-		 
-	}
-	@Test
-	public void testnamedExitThroughNamedTransition() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.r_A));
-		 
-		statemachine.raiseF();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.r_F));
-		 
-	}
-	@Test
-	public void testnamedExitThroughDefaultTransition() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.r_A));
-		 
-		statemachine.raiseG();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.r_E));
-		 
-	}
-	@Test
-	public void testremainInA() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.r_A));
-		 
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.r_A));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.exitstate.ExitStateStatemachine;
+import org.yakindu.scr.exitstate.ExitStateStatemachine.State;
+
+/**
+ * Unit TestCase for ExitState
+ */
+@SuppressWarnings("all")
+public class ExitStateTest {
+	private ExitStateStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new ExitStateStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testdefaultExit() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.r_A));
+		 
+		statemachine.raiseE();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.r_E));
+		 
+	}
+	@Test
+	public void testnamedExitThroughNamedTransition() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.r_A));
+		 
+		statemachine.raiseF();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.r_F));
+		 
+	}
+	@Test
+	public void testnamedExitThroughDefaultTransition() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.r_A));
+		 
+		statemachine.raiseG();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.r_E));
+		 
+	}
+	@Test
+	public void testremainInA() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.r_A));
+		 
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.r_A));
+		 
+	}
+}

+ 48 - 48
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/FeatureCallsTest.java

@@ -1,48 +1,48 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.featurecalls.FeatureCallsStatemachine;
-import org.yakindu.scr.featurecalls.FeatureCallsStatemachine.State;
-
-/**
- * Unit TestCase for FeatureCalls
- */
-@SuppressWarnings("all")
-public class FeatureCallsTest {
-	private FeatureCallsStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new FeatureCallsStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testFeatureCalls() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.featurecalls.FeatureCallsStatemachine;
+import org.yakindu.scr.featurecalls.FeatureCallsStatemachine.State;
+
+/**
+ * Unit TestCase for FeatureCalls
+ */
+@SuppressWarnings("all")
+public class FeatureCallsTest {
+	private FeatureCallsStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new FeatureCallsStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testFeatureCalls() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+	}
+}

+ 46 - 46
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/FinalStateTest.java

@@ -1,46 +1,46 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.finalstate.FinalStateStatemachine;
-import org.yakindu.scr.finalstate.FinalStateStatemachine.State;
-
-/**
- * Unit TestCase for FinalState
- */
-@SuppressWarnings("all")
-public class FinalStateTest {
-	private FinalStateStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new FinalStateStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testStatechartNameTest() {
-		statemachine.enter();
-		statemachine.runCycle();
-		assertTrue(statemachine.isFinal());
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.finalstate.FinalStateStatemachine;
+import org.yakindu.scr.finalstate.FinalStateStatemachine.State;
+
+/**
+ * Unit TestCase for FinalState
+ */
+@SuppressWarnings("all")
+public class FinalStateTest {
+	private FinalStateStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new FinalStateStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testStatechartNameTest() {
+		statemachine.enter();
+		statemachine.runCycle();
+		assertTrue(statemachine.isFinal());
+		 
+	}
+}

+ 65 - 65
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/GuardTest.java

@@ -1,65 +1,65 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.guard.GuardStatemachine;
-import org.yakindu.scr.guard.GuardStatemachine.State;
-
-/**
- * Unit TestCase for Guard
- */
-@SuppressWarnings("all")
-public class GuardTest {
-	private GuardStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new GuardStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testguardTest() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.raiseEvent1();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.raiseEvent2();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B));
-		 
-		statemachine.raiseReturn();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.raiseEvent1();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B));
-		 
-		statemachine.raiseReturn();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.guard.GuardStatemachine;
+import org.yakindu.scr.guard.GuardStatemachine.State;
+
+/**
+ * Unit TestCase for Guard
+ */
+@SuppressWarnings("all")
+public class GuardTest {
+	private GuardStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new GuardStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testguardTest() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.raiseEvent1();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.raiseEvent2();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B));
+		 
+		statemachine.raiseReturn();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.raiseEvent1();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B));
+		 
+		statemachine.raiseReturn();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+	}
+}

+ 94 - 94
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/GuardedEntryTest.java

@@ -1,94 +1,94 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.guardedentry.GuardedEntryStatemachine;
-import org.yakindu.scr.guardedentry.GuardedEntryStatemachine.State;
-
-/**
- * Unit TestCase for GuardedEntry
- */
-@SuppressWarnings("all")
-public class GuardedEntryTest {
-	private GuardedEntryStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new GuardedEntryStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testEntryNotTakenOnStatechartEnter() {
-		assertTrue(statemachine.getGuard() == false);
-		 
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		assertTrue(statemachine.getDone() == false);
-		 
-	}
-	@Test
-	public void testEntryTakenOnStatechartEnter() {
-		statemachine.setGuard(true);
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		assertTrue(statemachine.getDone() == true);
-		 
-	}
-	@Test
-	public void testEntryTakenInTransition() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.raiseE();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B));
-		 
-		statemachine.setGuard(true);
-		statemachine.setDone(false);
-		statemachine.raiseE();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		assertTrue(statemachine.getDone());
-		 
-	}
-	@Test
-	public void testEntryNotTakenInTransition() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.raiseE();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B));
-		 
-		statemachine.setGuard(false);
-		statemachine.setDone(false);
-		statemachine.raiseE();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		assertTrue(!statemachine.getDone());
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.guardedentry.GuardedEntryStatemachine;
+import org.yakindu.scr.guardedentry.GuardedEntryStatemachine.State;
+
+/**
+ * Unit TestCase for GuardedEntry
+ */
+@SuppressWarnings("all")
+public class GuardedEntryTest {
+	private GuardedEntryStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new GuardedEntryStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testEntryNotTakenOnStatechartEnter() {
+		assertTrue(statemachine.getGuard() == false);
+		 
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		assertTrue(statemachine.getDone() == false);
+		 
+	}
+	@Test
+	public void testEntryTakenOnStatechartEnter() {
+		statemachine.setGuard(true);
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		assertTrue(statemachine.getDone() == true);
+		 
+	}
+	@Test
+	public void testEntryTakenInTransition() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.raiseE();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B));
+		 
+		statemachine.setGuard(true);
+		statemachine.setDone(false);
+		statemachine.raiseE();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		assertTrue(statemachine.getDone());
+		 
+	}
+	@Test
+	public void testEntryNotTakenInTransition() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.raiseE();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B));
+		 
+		statemachine.setGuard(false);
+		statemachine.setDone(false);
+		statemachine.raiseE();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		assertTrue(!statemachine.getDone());
+		 
+	}
+}

+ 66 - 66
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/GuardedExitTest.java

@@ -1,66 +1,66 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.guardedexit.GuardedExitStatemachine;
-import org.yakindu.scr.guardedexit.GuardedExitStatemachine.State;
-
-/**
- * Unit TestCase for GuardedExit
- */
-@SuppressWarnings("all")
-public class GuardedExitTest {
-	private GuardedExitStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new GuardedExitStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testExitTaken() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		assertTrue(!statemachine.getGuard());
-		 
-		statemachine.raiseE();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B));
-		 
-		assertTrue(!statemachine.getDone());
-		 
-	}
-	@Test
-	public void testExitNotTaken() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.setGuard(true);
-		statemachine.raiseE();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B));
-		 
-		assertTrue(statemachine.getDone());
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.guardedexit.GuardedExitStatemachine;
+import org.yakindu.scr.guardedexit.GuardedExitStatemachine.State;
+
+/**
+ * Unit TestCase for GuardedExit
+ */
+@SuppressWarnings("all")
+public class GuardedExitTest {
+	private GuardedExitStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new GuardedExitStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testExitTaken() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		assertTrue(!statemachine.getGuard());
+		 
+		statemachine.raiseE();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B));
+		 
+		assertTrue(!statemachine.getDone());
+		 
+	}
+	@Test
+	public void testExitNotTaken() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.setGuard(true);
+		statemachine.raiseE();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B));
+		 
+		assertTrue(statemachine.getDone());
+		 
+	}
+}

+ 65 - 65
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/HistoryWithExitPointTest.java

@@ -1,65 +1,65 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.historywithexitpoint.HistoryWithExitPointStatemachine;
-import org.yakindu.scr.historywithexitpoint.HistoryWithExitPointStatemachine.State;
-
-/**
- * Unit TestCase for HistoryWithExitPoint
- */
-@SuppressWarnings("all")
-public class HistoryWithExitPointTest {
-	private HistoryWithExitPointStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new HistoryWithExitPointStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testhistoryEntryAfterExit() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.mr_A_r_X1));
-		 
-		statemachine.raisePush();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.mr_B));
-		 
-		statemachine.raiseBack();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.mr_A_r_X1));
-		 
-		statemachine.raiseNext();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.mr_A_r_X2));
-		 
-		statemachine.raisePush();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.mr_B));
-		 
-		statemachine.raiseBack();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.mr_A_r_X2));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.historywithexitpoint.HistoryWithExitPointStatemachine;
+import org.yakindu.scr.historywithexitpoint.HistoryWithExitPointStatemachine.State;
+
+/**
+ * Unit TestCase for HistoryWithExitPoint
+ */
+@SuppressWarnings("all")
+public class HistoryWithExitPointTest {
+	private HistoryWithExitPointStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new HistoryWithExitPointStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testhistoryEntryAfterExit() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.mr_A_r_X1));
+		 
+		statemachine.raisePush();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.mr_B));
+		 
+		statemachine.raiseBack();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.mr_A_r_X1));
+		 
+		statemachine.raiseNext();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.mr_A_r_X2));
+		 
+		statemachine.raisePush();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.mr_B));
+		 
+		statemachine.raiseBack();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.mr_A_r_X2));
+		 
+	}
+}

+ 91 - 91
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/HistoryWithoutInitialStepTest.java

@@ -1,91 +1,91 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.historywithoutinitialstep.HistoryWithoutInitialStepStatemachine;
-import org.yakindu.scr.historywithoutinitialstep.HistoryWithoutInitialStepStatemachine.State;
-
-/**
- * Unit TestCase for HistoryWithoutInitialStep
- */
-@SuppressWarnings("all")
-public class HistoryWithoutInitialStepTest {
-	private HistoryWithoutInitialStepStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new HistoryWithoutInitialStepStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testenterThroughInitialEntry() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.raiseToB();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C));
-		 
-		statemachine.raiseNext();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B_r1_D));
-		 
-	}
-	@Test
-	public void testenterCThroughHistory() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.raiseToB();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C));
-		 
-		statemachine.raiseToA();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.raiseToHistory();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C));
-		 
-	}
-	@Test
-	public void testenterDThroughHistory() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.raiseToB();
-		statemachine.runCycle();
-		statemachine.raiseNext();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B_r1_D));
-		 
-		statemachine.raiseToA();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.raiseToHistory();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B_r1_D));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.historywithoutinitialstep.HistoryWithoutInitialStepStatemachine;
+import org.yakindu.scr.historywithoutinitialstep.HistoryWithoutInitialStepStatemachine.State;
+
+/**
+ * Unit TestCase for HistoryWithoutInitialStep
+ */
+@SuppressWarnings("all")
+public class HistoryWithoutInitialStepTest {
+	private HistoryWithoutInitialStepStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new HistoryWithoutInitialStepStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testenterThroughInitialEntry() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.raiseToB();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C));
+		 
+		statemachine.raiseNext();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B_r1_D));
+		 
+	}
+	@Test
+	public void testenterCThroughHistory() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.raiseToB();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C));
+		 
+		statemachine.raiseToA();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.raiseToHistory();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C));
+		 
+	}
+	@Test
+	public void testenterDThroughHistory() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.raiseToB();
+		statemachine.runCycle();
+		statemachine.raiseNext();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B_r1_D));
+		 
+		statemachine.raiseToA();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.raiseToHistory();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B_r1_D));
+		 
+	}
+}

+ 49 - 49
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/InEventLifeCycleTest.java

@@ -1,49 +1,49 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.ineventlifecycle.InEventLifeCycleStatemachine;
-import org.yakindu.scr.ineventlifecycle.InEventLifeCycleStatemachine.State;
-
-/**
- * Unit TestCase for InEventLifeCycle
- */
-@SuppressWarnings("all")
-public class InEventLifeCycleTest {
-	private InEventLifeCycleStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new InEventLifeCycleStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testeventLifeCycle() {
-		statemachine.enter();
-		statemachine.raiseE();
-		assertTrue(statemachine.getI() == 0l);
-		 
-		statemachine.runCycle();
-		assertTrue(statemachine.getI() == 1l);
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.ineventlifecycle.InEventLifeCycleStatemachine;
+import org.yakindu.scr.ineventlifecycle.InEventLifeCycleStatemachine.State;
+
+/**
+ * Unit TestCase for InEventLifeCycle
+ */
+@SuppressWarnings("all")
+public class InEventLifeCycleTest {
+	private InEventLifeCycleStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new InEventLifeCycleStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testeventLifeCycle() {
+		statemachine.enter();
+		statemachine.raiseE();
+		assertTrue(statemachine.getI() == 0l);
+		 
+		statemachine.runCycle();
+		assertTrue(statemachine.getI() == 1l);
+		 
+	}
+}

+ 85 - 85
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/IntegerExpressionsTest.java

@@ -1,85 +1,85 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.integerexpressions.IntegerExpressionsStatemachine;
-import org.yakindu.scr.integerexpressions.IntegerExpressionsStatemachine.State;
-
-/**
- * Unit TestCase for IntegerExpressions
- */
-@SuppressWarnings("all")
-public class IntegerExpressionsTest {
-	private IntegerExpressionsStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new IntegerExpressionsStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testintegerExpressions() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_StateA));
-		 
-		assertTrue(statemachine.getMyInt1() == 10l);
-		 
-		assertTrue(statemachine.getMyInt2() == 5l);
-		 
-		statemachine.raiseE1();
-		statemachine.runCycle();
-		assertTrue(statemachine.getLess() == false);
-		 
-		assertTrue(statemachine.getGreater() == true);
-		 
-		assertTrue(statemachine.getEqualOrLess() == false);
-		 
-		assertTrue(statemachine.getEqualOrGreater() == true);
-		 
-		assertTrue(statemachine.getEqual() == false);
-		 
-		assertTrue(statemachine.getNotEqual() == true);
-		 
-		assertTrue(statemachine.getPlus() == 15l);
-		 
-		assertTrue(statemachine.getMinus() == 5l);
-		 
-		assertTrue(statemachine.getMultiply() == 50l);
-		 
-		assertTrue(statemachine.getDivision() == 2l);
-		 
-		assertTrue(statemachine.getModulo() == 0l);
-		 
-		assertTrue(statemachine.getNegat() == - 10l );
-		 
-		assertTrue(statemachine.getMultiAssign() == 20l);
-		 
-		assertTrue(statemachine.getDivAssign() == 2l);
-		 
-		assertTrue(statemachine.getPlusAssign() == 12l);
-		 
-		assertTrue(statemachine.getMinusAssign() == - 8l );
-		 
-		assertTrue(statemachine.getModuloAssign() == 0l);
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.integerexpressions.IntegerExpressionsStatemachine;
+import org.yakindu.scr.integerexpressions.IntegerExpressionsStatemachine.State;
+
+/**
+ * Unit TestCase for IntegerExpressions
+ */
+@SuppressWarnings("all")
+public class IntegerExpressionsTest {
+	private IntegerExpressionsStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new IntegerExpressionsStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testintegerExpressions() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_StateA));
+		 
+		assertTrue(statemachine.getMyInt1() == 10l);
+		 
+		assertTrue(statemachine.getMyInt2() == 5l);
+		 
+		statemachine.raiseE1();
+		statemachine.runCycle();
+		assertTrue(statemachine.getLess() == false);
+		 
+		assertTrue(statemachine.getGreater() == true);
+		 
+		assertTrue(statemachine.getEqualOrLess() == false);
+		 
+		assertTrue(statemachine.getEqualOrGreater() == true);
+		 
+		assertTrue(statemachine.getEqual() == false);
+		 
+		assertTrue(statemachine.getNotEqual() == true);
+		 
+		assertTrue(statemachine.getPlus() == 15l);
+		 
+		assertTrue(statemachine.getMinus() == 5l);
+		 
+		assertTrue(statemachine.getMultiply() == 50l);
+		 
+		assertTrue(statemachine.getDivision() == 2l);
+		 
+		assertTrue(statemachine.getModulo() == 0l);
+		 
+		assertTrue(statemachine.getNegat() == - 10l );
+		 
+		assertTrue(statemachine.getMultiAssign() == 20l);
+		 
+		assertTrue(statemachine.getDivAssign() == 2l);
+		 
+		assertTrue(statemachine.getPlusAssign() == 12l);
+		 
+		assertTrue(statemachine.getMinusAssign() == - 8l );
+		 
+		assertTrue(statemachine.getModuloAssign() == 0l);
+		 
+	}
+}

+ 69 - 69
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/InternalEventLifeCycleTest.java

@@ -1,69 +1,69 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.internaleventlifecycle.InternalEventLifeCycleStatemachine;
-import org.yakindu.scr.internaleventlifecycle.InternalEventLifeCycleStatemachine.State;
-
-/**
- * Unit TestCase for InternalEventLifeCycle
- */
-@SuppressWarnings("all")
-public class InternalEventLifeCycleTest {
-	private InternalEventLifeCycleStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new InternalEventLifeCycleStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testInternalEventLifeCycleTest() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.r1_A));
-		 
-		assertTrue(statemachine.isStateActive(State.r2_C));
-		 
-		statemachine.raiseE();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.r1_A));
-		 
-		assertTrue(statemachine.isStateActive(State.r2_D));
-		 
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.r1_A));
-		 
-		assertTrue(statemachine.isStateActive(State.r2_D));
-		 
-		statemachine.raiseF();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.r1_A));
-		 
-		assertTrue(statemachine.isStateActive(State.r2_C));
-		 
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.r1_A));
-		 
-		assertTrue(statemachine.isStateActive(State.r2_C));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.internaleventlifecycle.InternalEventLifeCycleStatemachine;
+import org.yakindu.scr.internaleventlifecycle.InternalEventLifeCycleStatemachine.State;
+
+/**
+ * Unit TestCase for InternalEventLifeCycle
+ */
+@SuppressWarnings("all")
+public class InternalEventLifeCycleTest {
+	private InternalEventLifeCycleStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new InternalEventLifeCycleStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testInternalEventLifeCycleTest() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.r1_A));
+		 
+		assertTrue(statemachine.isStateActive(State.r2_C));
+		 
+		statemachine.raiseE();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.r1_A));
+		 
+		assertTrue(statemachine.isStateActive(State.r2_D));
+		 
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.r1_A));
+		 
+		assertTrue(statemachine.isStateActive(State.r2_D));
+		 
+		statemachine.raiseF();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.r1_A));
+		 
+		assertTrue(statemachine.isStateActive(State.r2_C));
+		 
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.r1_A));
+		 
+		assertTrue(statemachine.isStateActive(State.r2_C));
+		 
+	}
+}

+ 48 - 48
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/LocalReactionsTest.java

@@ -1,48 +1,48 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.localreactions.LocalReactionsStatemachine;
-import org.yakindu.scr.localreactions.LocalReactionsStatemachine.State;
-
-/**
- * Unit TestCase for LocalReactions
- */
-@SuppressWarnings("all")
-public class LocalReactionsTest {
-	private LocalReactionsStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new LocalReactionsStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testLocalReactionsTest() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.runCycle();
-		assertTrue(statemachine.getX() == 1l);
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.localreactions.LocalReactionsStatemachine;
+import org.yakindu.scr.localreactions.LocalReactionsStatemachine.State;
+
+/**
+ * Unit TestCase for LocalReactions
+ */
+@SuppressWarnings("all")
+public class LocalReactionsTest {
+	private LocalReactionsStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new LocalReactionsStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testLocalReactionsTest() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.runCycle();
+		assertTrue(statemachine.getX() == 1l);
+		 
+	}
+}

+ 46 - 46
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/LogicalAndTestsTest.java

@@ -1,46 +1,46 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.logicaland.LogicalAndStatemachine;
-import org.yakindu.scr.logicaland.LogicalAndStatemachine.State;
-
-/**
- * Unit TestCase for LogicalAnd
- */
-@SuppressWarnings("all")
-public class LogicalAndTestsTest {
-	private LogicalAndStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new LogicalAndStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testoperandEvaluationOrder() {
-		statemachine.enter();
-		statemachine.runCycle();
-		assertTrue("logical and expression was executed in wrong order...",statemachine.getX() == 4l && statemachine.getB());
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.logicaland.LogicalAndStatemachine;
+import org.yakindu.scr.logicaland.LogicalAndStatemachine.State;
+
+/**
+ * Unit TestCase for LogicalAnd
+ */
+@SuppressWarnings("all")
+public class LogicalAndTestsTest {
+	private LogicalAndStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new LogicalAndStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testoperandEvaluationOrder() {
+		statemachine.enter();
+		statemachine.runCycle();
+		assertTrue("logical and expression was executed in wrong order...",statemachine.getX() == 4l && statemachine.getB());
+		 
+	}
+}

+ 46 - 46
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/LogicalOrTestsTest.java

@@ -1,46 +1,46 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.logicalor.LogicalOrStatemachine;
-import org.yakindu.scr.logicalor.LogicalOrStatemachine.State;
-
-/**
- * Unit TestCase for LogicalOr
- */
-@SuppressWarnings("all")
-public class LogicalOrTestsTest {
-	private LogicalOrStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new LogicalOrStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testoperandEvaluationOrder() {
-		statemachine.enter();
-		statemachine.runCycle();
-		assertTrue("logical or expression was executed in wrong order...",statemachine.getX() == 4l && statemachine.getB());
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.logicalor.LogicalOrStatemachine;
+import org.yakindu.scr.logicalor.LogicalOrStatemachine.State;
+
+/**
+ * Unit TestCase for LogicalOr
+ */
+@SuppressWarnings("all")
+public class LogicalOrTestsTest {
+	private LogicalOrStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new LogicalOrStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testoperandEvaluationOrder() {
+		statemachine.enter();
+		statemachine.runCycle();
+		assertTrue("logical or expression was executed in wrong order...",statemachine.getX() == 4l && statemachine.getB());
+		 
+	}
+}

+ 52 - 52
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/NamedInterfaceAccessTest.java

@@ -1,52 +1,52 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.namedinterfaceaccess.NamedInterfaceAccessStatemachine;
-import org.yakindu.scr.namedinterfaceaccess.NamedInterfaceAccessStatemachine.State;
-
-/**
- * Unit TestCase for NamedInterfaceAccess
- */
-@SuppressWarnings("all")
-public class NamedInterfaceAccessTest {
-	private NamedInterfaceAccessStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new NamedInterfaceAccessStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testSafeOpenSuccess() {
-		statemachine.enter();
-		statemachine.runCycle();
-		statemachine.getSCIUser().raiseNumberPressed(3l);
-		statemachine.runCycle();
-		statemachine.getSCIUser().raiseNumberPressed(7l);
-		statemachine.runCycle();
-		statemachine.getSCIUser().raiseNumberPressed(5l);
-		statemachine.runCycle();
-		assertTrue(statemachine.getSCISafe().isRaisedOpen());
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.namedinterfaceaccess.NamedInterfaceAccessStatemachine;
+import org.yakindu.scr.namedinterfaceaccess.NamedInterfaceAccessStatemachine.State;
+
+/**
+ * Unit TestCase for NamedInterfaceAccess
+ */
+@SuppressWarnings("all")
+public class NamedInterfaceAccessTest {
+	private NamedInterfaceAccessStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new NamedInterfaceAccessStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testSafeOpenSuccess() {
+		statemachine.enter();
+		statemachine.runCycle();
+		statemachine.getSCIUser().raiseNumberPressed(3l);
+		statemachine.runCycle();
+		statemachine.getSCIUser().raiseNumberPressed(7l);
+		statemachine.runCycle();
+		statemachine.getSCIUser().raiseNumberPressed(5l);
+		statemachine.runCycle();
+		assertTrue(statemachine.getSCISafe().isRaisedOpen());
+		 
+	}
+}

+ 48 - 48
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/NullCheckTest.java

@@ -1,48 +1,48 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.nullcheck.NullCheckStatemachine;
-import org.yakindu.scr.nullcheck.NullCheckStatemachine.State;
-
-/**
- * Unit TestCase for NullCheck
- */
-@SuppressWarnings("all")
-public class NullCheckTest {
-	private NullCheckStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new NullCheckStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testSimpleNullCheckTest() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.nullcheck.NullCheckStatemachine;
+import org.yakindu.scr.nullcheck.NullCheckStatemachine.State;
+
+/**
+ * Unit TestCase for NullCheck
+ */
+@SuppressWarnings("all")
+public class NullCheckTest {
+	private NullCheckStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new NullCheckStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testSimpleNullCheckTest() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B));
+		 
+	}
+}

+ 162 - 162
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/OperationsTest.java

@@ -1,162 +1,162 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import static org.mockito.Mockito.*;
-import static org.mockito.Matchers.*;
-import static org.hamcrest.CoreMatchers.*;
-import org.yakindu.scr.operations.IOperationsStatemachine.*;
-import org.mockito.ArgumentCaptor;
-import static org.mockito.ArgumentCaptor.forClass;
-import org.mockito.invocation.InvocationOnMock;
-import org.mockito.stubbing.Answer;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.operations.OperationsStatemachine;
-import org.yakindu.scr.operations.OperationsStatemachine.State;
-
-/**
- * Unit TestCase for Operations
- */
-@SuppressWarnings("all")
-public class OperationsTest {
-	SCInterfaceOperationCallback defaultMock;
-	InternalOperationCallback internalMock;
-	SCIInterface1OperationCallback interface1Mock;
-	private OperationsStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new OperationsStatemachine();
-		statemachine.init();
-		defaultMock = mock(SCInterfaceOperationCallback.class);
-		statemachine.getSCInterface().setSCInterfaceOperationCallback(defaultMock);
-		internalMock = mock(InternalOperationCallback.class);
-		statemachine.setInternalOperationCallback(internalMock);
-		interface1Mock = mock(SCIInterface1OperationCallback.class);
-		statemachine.getSCIInterface1().setSCIInterface1OperationCallback(interface1Mock);
-	}
-
-	@After
-	public void tearDown() {
-		statemachine.getSCInterface().setSCInterfaceOperationCallback(null);
-		statemachine.setInternalOperationCallback(null);
-		statemachine.getSCIInterface1().setSCIInterface1OperationCallback(null);
-		statemachine = null;
-	}
-	
-	@Test
-	public void testoperationsCalled() {
-		when(defaultMock.alwaysTrue()).thenReturn(true);
-		 
-		when(internalMock.internalOperation3a(anyDouble())).thenAnswer(new Answer<Double>() {
-			@Override
-			public Double answer(InvocationOnMock invocation) {
-				Object[] args = invocation.getArguments();
-				Double param1 = (Double) args[0];
-				return param1+1.0;
-			}
-		});
-		 
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B));
-		 
-		verify(internalMock, atLeastOnce()).internalOperation1();
-		 
-		ArgumentCaptor<Long> longCaptureinternalOperation2_7_0 = forClass(Long.class);
-		verify(internalMock, atLeastOnce()).internalOperation2(longCaptureinternalOperation2_7_0.capture());
-		assertThat(longCaptureinternalOperation2_7_0.getValue(), is(4l));
-		 
-		verify(internalMock, atLeastOnce()).internalOperation3();
-		 
-		ArgumentCaptor<Double> doubleCaptureinternalOperation3a_9_0 = forClass(Double.class);
-		verify(internalMock, atLeastOnce()).internalOperation3a(doubleCaptureinternalOperation3a_9_0.capture());
-		 
-		verify(internalMock, atLeastOnce()).internalOperation4();
-		 
-		ArgumentCaptor<Long> longCaptureinternalOperation4a_11_0 = forClass(Long.class);
-		verify(internalMock, atLeastOnce()).internalOperation4a(longCaptureinternalOperation4a_11_0.capture());
-		assertThat(longCaptureinternalOperation4a_11_0.getValue(), is(5l));
-		 
-		verify(internalMock, atLeastOnce()).internalOperation5();
-		 
-		ArgumentCaptor<String> stringCaptureinternalOperation5a_13_0 = forClass(String.class);
-		verify(internalMock, atLeastOnce()).internalOperation5a(stringCaptureinternalOperation5a_13_0.capture());
-		assertThat(stringCaptureinternalOperation5a_13_0.getValue(), is(""));
-		 
-		ArgumentCaptor<Long> longCaptureinternalOperation2_14_0 = forClass(Long.class);
-		verify(internalMock, atLeastOnce()).internalOperation2(longCaptureinternalOperation2_14_0.capture());
-		assertThat(longCaptureinternalOperation2_14_0.getValue(), is(4l));
-		 
-		statemachine.raiseEv();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_C));
-		 
-		verify(interface1Mock, atLeastOnce()).interfaceOperation1();
-		 
-		ArgumentCaptor<Long> longCaptureinterfaceOperation2_19_0 = forClass(Long.class);
-		verify(interface1Mock, atLeastOnce()).interfaceOperation2(longCaptureinterfaceOperation2_19_0.capture());
-		assertThat(longCaptureinterfaceOperation2_19_0.getValue(), is(4l));
-		 
-		verify(interface1Mock, atLeastOnce()).interfaceOperation3();
-		 
-		ArgumentCaptor<Double> doubleCaptureinterfaceOperation3a_21_0 = forClass(Double.class);
-		verify(interface1Mock, atLeastOnce()).interfaceOperation3a(doubleCaptureinterfaceOperation3a_21_0.capture());
-		assertThat(doubleCaptureinterfaceOperation3a_21_0.getValue(), is(1.0));
-		 
-		verify(interface1Mock, atLeastOnce()).interfaceOperation4();
-		 
-		ArgumentCaptor<Long> longCaptureinterfaceOperation4a_23_0 = forClass(Long.class);
-		verify(interface1Mock, atLeastOnce()).interfaceOperation4a(longCaptureinterfaceOperation4a_23_0.capture());
-		assertThat(longCaptureinterfaceOperation4a_23_0.getValue(), is(5l));
-		 
-		verify(interface1Mock, atLeastOnce()).interfaceOperation5();
-		 
-		ArgumentCaptor<String> stringCaptureinterfaceOperation5a_25_0 = forClass(String.class);
-		verify(interface1Mock, atLeastOnce()).interfaceOperation5a(stringCaptureinterfaceOperation5a_25_0.capture());
-		assertThat(stringCaptureinterfaceOperation5a_25_0.getValue(), is(""));
-		 
-		statemachine.raiseEv();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_D));
-		 
-		verify(defaultMock, atLeastOnce()).unnamedInterfaceOperation1();
-		 
-		ArgumentCaptor<Long> longCaptureunnamedInterfaceOperation2_30_0 = forClass(Long.class);
-		verify(defaultMock, atLeastOnce()).unnamedInterfaceOperation2(longCaptureunnamedInterfaceOperation2_30_0.capture());
-		assertThat(longCaptureunnamedInterfaceOperation2_30_0.getValue(), is(4l));
-		 
-		verify(defaultMock, atLeastOnce()).unnamedOperation3();
-		 
-		ArgumentCaptor<Double> doubleCaptureunnamedOperation3a_32_0 = forClass(Double.class);
-		verify(defaultMock, atLeastOnce()).unnamedOperation3a(doubleCaptureunnamedOperation3a_32_0.capture());
-		assertThat(doubleCaptureunnamedOperation3a_32_0.getValue(), is(1.0));
-		 
-		verify(defaultMock, atLeastOnce()).unnamedOperation4();
-		 
-		ArgumentCaptor<Long> longCaptureunnamedOperation4a_34_0 = forClass(Long.class);
-		verify(defaultMock, atLeastOnce()).unnamedOperation4a(longCaptureunnamedOperation4a_34_0.capture());
-		assertThat(longCaptureunnamedOperation4a_34_0.getValue(), is(5l));
-		 
-		verify(defaultMock, atLeastOnce()).unnamedOperation5();
-		 
-		ArgumentCaptor<String> stringCaptureunnamedOperation5a_36_0 = forClass(String.class);
-		verify(defaultMock, atLeastOnce()).unnamedOperation5a(stringCaptureunnamedOperation5a_36_0.capture());
-		assertThat(stringCaptureunnamedOperation5a_36_0.getValue(), is(""));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import static org.mockito.Mockito.*;
+import static org.mockito.Matchers.*;
+import static org.hamcrest.CoreMatchers.*;
+import org.yakindu.scr.operations.IOperationsStatemachine.*;
+import org.mockito.ArgumentCaptor;
+import static org.mockito.ArgumentCaptor.forClass;
+import org.mockito.invocation.InvocationOnMock;
+import org.mockito.stubbing.Answer;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.operations.OperationsStatemachine;
+import org.yakindu.scr.operations.OperationsStatemachine.State;
+
+/**
+ * Unit TestCase for Operations
+ */
+@SuppressWarnings("all")
+public class OperationsTest {
+	SCInterfaceOperationCallback defaultMock;
+	InternalOperationCallback internalMock;
+	SCIInterface1OperationCallback interface1Mock;
+	private OperationsStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new OperationsStatemachine();
+		statemachine.init();
+		defaultMock = mock(SCInterfaceOperationCallback.class);
+		statemachine.getSCInterface().setSCInterfaceOperationCallback(defaultMock);
+		internalMock = mock(InternalOperationCallback.class);
+		statemachine.setInternalOperationCallback(internalMock);
+		interface1Mock = mock(SCIInterface1OperationCallback.class);
+		statemachine.getSCIInterface1().setSCIInterface1OperationCallback(interface1Mock);
+	}
+
+	@After
+	public void tearDown() {
+		statemachine.getSCInterface().setSCInterfaceOperationCallback(null);
+		statemachine.setInternalOperationCallback(null);
+		statemachine.getSCIInterface1().setSCIInterface1OperationCallback(null);
+		statemachine = null;
+	}
+	
+	@Test
+	public void testoperationsCalled() {
+		when(defaultMock.alwaysTrue()).thenReturn(true);
+		 
+		when(internalMock.internalOperation3a(anyDouble())).thenAnswer(new Answer<Double>() {
+			@Override
+			public Double answer(InvocationOnMock invocation) {
+				Object[] args = invocation.getArguments();
+				Double param1 = (Double) args[0];
+				return param1+1.0;
+			}
+		});
+		 
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B));
+		 
+		verify(internalMock, atLeastOnce()).internalOperation1();
+		 
+		ArgumentCaptor<Long> longCaptureinternalOperation2_7_0 = forClass(Long.class);
+		verify(internalMock, atLeastOnce()).internalOperation2(longCaptureinternalOperation2_7_0.capture());
+		assertThat(longCaptureinternalOperation2_7_0.getValue(), is(4l));
+		 
+		verify(internalMock, atLeastOnce()).internalOperation3();
+		 
+		ArgumentCaptor<Double> doubleCaptureinternalOperation3a_9_0 = forClass(Double.class);
+		verify(internalMock, atLeastOnce()).internalOperation3a(doubleCaptureinternalOperation3a_9_0.capture());
+		 
+		verify(internalMock, atLeastOnce()).internalOperation4();
+		 
+		ArgumentCaptor<Long> longCaptureinternalOperation4a_11_0 = forClass(Long.class);
+		verify(internalMock, atLeastOnce()).internalOperation4a(longCaptureinternalOperation4a_11_0.capture());
+		assertThat(longCaptureinternalOperation4a_11_0.getValue(), is(5l));
+		 
+		verify(internalMock, atLeastOnce()).internalOperation5();
+		 
+		ArgumentCaptor<String> stringCaptureinternalOperation5a_13_0 = forClass(String.class);
+		verify(internalMock, atLeastOnce()).internalOperation5a(stringCaptureinternalOperation5a_13_0.capture());
+		assertThat(stringCaptureinternalOperation5a_13_0.getValue(), is(""));
+		 
+		ArgumentCaptor<Long> longCaptureinternalOperation2_14_0 = forClass(Long.class);
+		verify(internalMock, atLeastOnce()).internalOperation2(longCaptureinternalOperation2_14_0.capture());
+		assertThat(longCaptureinternalOperation2_14_0.getValue(), is(4l));
+		 
+		statemachine.raiseEv();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_C));
+		 
+		verify(interface1Mock, atLeastOnce()).interfaceOperation1();
+		 
+		ArgumentCaptor<Long> longCaptureinterfaceOperation2_19_0 = forClass(Long.class);
+		verify(interface1Mock, atLeastOnce()).interfaceOperation2(longCaptureinterfaceOperation2_19_0.capture());
+		assertThat(longCaptureinterfaceOperation2_19_0.getValue(), is(4l));
+		 
+		verify(interface1Mock, atLeastOnce()).interfaceOperation3();
+		 
+		ArgumentCaptor<Double> doubleCaptureinterfaceOperation3a_21_0 = forClass(Double.class);
+		verify(interface1Mock, atLeastOnce()).interfaceOperation3a(doubleCaptureinterfaceOperation3a_21_0.capture());
+		assertThat(doubleCaptureinterfaceOperation3a_21_0.getValue(), is(1.0));
+		 
+		verify(interface1Mock, atLeastOnce()).interfaceOperation4();
+		 
+		ArgumentCaptor<Long> longCaptureinterfaceOperation4a_23_0 = forClass(Long.class);
+		verify(interface1Mock, atLeastOnce()).interfaceOperation4a(longCaptureinterfaceOperation4a_23_0.capture());
+		assertThat(longCaptureinterfaceOperation4a_23_0.getValue(), is(5l));
+		 
+		verify(interface1Mock, atLeastOnce()).interfaceOperation5();
+		 
+		ArgumentCaptor<String> stringCaptureinterfaceOperation5a_25_0 = forClass(String.class);
+		verify(interface1Mock, atLeastOnce()).interfaceOperation5a(stringCaptureinterfaceOperation5a_25_0.capture());
+		assertThat(stringCaptureinterfaceOperation5a_25_0.getValue(), is(""));
+		 
+		statemachine.raiseEv();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_D));
+		 
+		verify(defaultMock, atLeastOnce()).unnamedInterfaceOperation1();
+		 
+		ArgumentCaptor<Long> longCaptureunnamedInterfaceOperation2_30_0 = forClass(Long.class);
+		verify(defaultMock, atLeastOnce()).unnamedInterfaceOperation2(longCaptureunnamedInterfaceOperation2_30_0.capture());
+		assertThat(longCaptureunnamedInterfaceOperation2_30_0.getValue(), is(4l));
+		 
+		verify(defaultMock, atLeastOnce()).unnamedOperation3();
+		 
+		ArgumentCaptor<Double> doubleCaptureunnamedOperation3a_32_0 = forClass(Double.class);
+		verify(defaultMock, atLeastOnce()).unnamedOperation3a(doubleCaptureunnamedOperation3a_32_0.capture());
+		assertThat(doubleCaptureunnamedOperation3a_32_0.getValue(), is(1.0));
+		 
+		verify(defaultMock, atLeastOnce()).unnamedOperation4();
+		 
+		ArgumentCaptor<Long> longCaptureunnamedOperation4a_34_0 = forClass(Long.class);
+		verify(defaultMock, atLeastOnce()).unnamedOperation4a(longCaptureunnamedOperation4a_34_0.capture());
+		assertThat(longCaptureunnamedOperation4a_34_0.getValue(), is(5l));
+		 
+		verify(defaultMock, atLeastOnce()).unnamedOperation5();
+		 
+		ArgumentCaptor<String> stringCaptureunnamedOperation5a_36_0 = forClass(String.class);
+		verify(defaultMock, atLeastOnce()).unnamedOperation5a(stringCaptureunnamedOperation5a_36_0.capture());
+		assertThat(stringCaptureunnamedOperation5a_36_0.getValue(), is(""));
+		 
+	}
+}

+ 62 - 62
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/OperationsWithoutBracesTest.java

@@ -1,62 +1,62 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.operationswithoutbraces.OperationsWithoutBracesStatemachine;
-import org.yakindu.scr.operationswithoutbraces.OperationsWithoutBracesStatemachine.State;
-
-/**
- * Unit TestCase for OperationsWithoutBraces
- */
-@SuppressWarnings("all")
-public class OperationsWithoutBracesTest {
-	private OperationsWithoutBracesStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new OperationsWithoutBracesStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testOperationsWithoutBracesTest() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		assertTrue(statemachine.isStateActive(State.another_region_A));
-		 
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B));
-		 
-		assertTrue(statemachine.isStateActive(State.another_region_B));
-		 
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_C));
-		 
-		assertTrue(statemachine.isStateActive(State.another_region_C));
-		 
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_D));
-		 
-		assertTrue(statemachine.isStateActive(State.another_region_D));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.operationswithoutbraces.OperationsWithoutBracesStatemachine;
+import org.yakindu.scr.operationswithoutbraces.OperationsWithoutBracesStatemachine.State;
+
+/**
+ * Unit TestCase for OperationsWithoutBraces
+ */
+@SuppressWarnings("all")
+public class OperationsWithoutBracesTest {
+	private OperationsWithoutBracesStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new OperationsWithoutBracesStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testOperationsWithoutBracesTest() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		assertTrue(statemachine.isStateActive(State.another_region_A));
+		 
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B));
+		 
+		assertTrue(statemachine.isStateActive(State.another_region_B));
+		 
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_C));
+		 
+		assertTrue(statemachine.isStateActive(State.another_region_C));
+		 
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_D));
+		 
+		assertTrue(statemachine.isStateActive(State.another_region_D));
+		 
+	}
+}

+ 73 - 73
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/OutEventLifeCycleTest.java

@@ -1,73 +1,73 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.outeventlifecycle.OutEventLifeCycleStatemachine;
-import org.yakindu.scr.outeventlifecycle.OutEventLifeCycleStatemachine.State;
-
-/**
- * Unit TestCase for OutEventLifeCycle
- */
-@SuppressWarnings("all")
-public class OutEventLifeCycleTest {
-	private OutEventLifeCycleStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new OutEventLifeCycleStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testavailableAfterCycle() {
-		statemachine.enter();
-		statemachine.raiseE();
-		statemachine.runCycle();
-		assertTrue(statemachine.isRaisedF());
-		 
-	}
-	@Test
-	public void testavailableWithinCycle() {
-		statemachine.enter();
-		statemachine.raiseE();
-		statemachine.runCycle();
-		assertTrue(statemachine.getF_available_in_cycle());
-		 
-	}
-	@Test
-	public void testunvailableWithin2ndCycle() {
-		statemachine.enter();
-		statemachine.raiseE();
-		statemachine.runCycle();
-		statemachine.runCycle();
-		assertTrue(!statemachine.getF_available_in_next_cycle());
-		 
-	}
-	@Test
-	public void testunvailableAfter2ndCycle() {
-		statemachine.enter();
-		statemachine.raiseE();
-		statemachine.runCycle();
-		statemachine.runCycle();
-		assertTrue(!statemachine.isRaisedF());
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.outeventlifecycle.OutEventLifeCycleStatemachine;
+import org.yakindu.scr.outeventlifecycle.OutEventLifeCycleStatemachine.State;
+
+/**
+ * Unit TestCase for OutEventLifeCycle
+ */
+@SuppressWarnings("all")
+public class OutEventLifeCycleTest {
+	private OutEventLifeCycleStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new OutEventLifeCycleStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testavailableAfterCycle() {
+		statemachine.enter();
+		statemachine.raiseE();
+		statemachine.runCycle();
+		assertTrue(statemachine.isRaisedF());
+		 
+	}
+	@Test
+	public void testavailableWithinCycle() {
+		statemachine.enter();
+		statemachine.raiseE();
+		statemachine.runCycle();
+		assertTrue(statemachine.getF_available_in_cycle());
+		 
+	}
+	@Test
+	public void testunvailableWithin2ndCycle() {
+		statemachine.enter();
+		statemachine.raiseE();
+		statemachine.runCycle();
+		statemachine.runCycle();
+		assertTrue(!statemachine.getF_available_in_next_cycle());
+		 
+	}
+	@Test
+	public void testunvailableAfter2ndCycle() {
+		statemachine.enter();
+		statemachine.raiseE();
+		statemachine.runCycle();
+		statemachine.runCycle();
+		assertTrue(!statemachine.isRaisedF());
+		 
+	}
+}

+ 47 - 47
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/ParenthesisTest.java

@@ -1,47 +1,47 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.parenthesis.ParenthesisStatemachine;
-import org.yakindu.scr.parenthesis.ParenthesisStatemachine.State;
-
-/**
- * Unit TestCase for Parenthesis
- */
-@SuppressWarnings("all")
-public class ParenthesisTest {
-	private ParenthesisStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new ParenthesisStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testsimple() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.mainRegion_A));
-		 
-		assertTrue(statemachine.getErg() == 8l);
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.parenthesis.ParenthesisStatemachine;
+import org.yakindu.scr.parenthesis.ParenthesisStatemachine.State;
+
+/**
+ * Unit TestCase for Parenthesis
+ */
+@SuppressWarnings("all")
+public class ParenthesisTest {
+	private ParenthesisStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new ParenthesisStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testsimple() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.mainRegion_A));
+		 
+		assertTrue(statemachine.getErg() == 8l);
+		 
+	}
+}

+ 110 - 110
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/PerformanceTestsTest.java

@@ -1,110 +1,110 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.performancetest.PerformanceTestStatemachine;
-import org.yakindu.scr.performancetest.PerformanceTestStatemachine.State;
-import org.yakindu.scr.TimerService;
-
-/**
- * Unit TestCase for PerformanceTest
- */
-@SuppressWarnings("all")
-public class PerformanceTestsTest {
-	private PerformanceTestStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new PerformanceTestStatemachine();
-		statemachine.setTimer(new TimerService());
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testtest_100_000() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.mr_A));
-		 
-		while (statemachine.getC() < 100000l) {
-			if (statemachine.isStateActive(State.mr_A)) {
-						statemachine.raiseE1();;
-					  }
-					else {
-						if (statemachine.getC()%2l == 0l) {
-									statemachine.raiseE2();;
-								  }
-								else {
-									statemachine.raiseE3();;
-								}
-						;
-					}
-			statemachine.runCycle();
-		}
-		assertTrue(statemachine.getA() > 2l);
-		 
-	}
-	@Test
-	public void testtest_1_000_000() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.mr_A));
-		 
-		while (statemachine.getC() < 1000000l) {
-			if (statemachine.isStateActive(State.mr_A)) {
-						statemachine.raiseE1();;
-					  }
-					else {
-						if (statemachine.getC()%2l == 0l) {
-									statemachine.raiseE2();;
-								  }
-								else {
-									statemachine.raiseE3();;
-								}
-						;
-					}
-			statemachine.runCycle();
-		}
-		assertTrue(statemachine.getA() > 2l);
-		 
-	}
-	@Test
-	public void testtest_10_000_000() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.mr_A));
-		 
-		while (statemachine.getC() < 10000000l) {
-			if (statemachine.isStateActive(State.mr_A)) {
-						statemachine.raiseE1();;
-					  }
-					else {
-						if (statemachine.getC()%2l == 0l) {
-									statemachine.raiseE2();;
-								  }
-								else {
-									statemachine.raiseE3();;
-								}
-						;
-					}
-			statemachine.runCycle();
-		}
-		assertTrue(statemachine.getA() > 2l);
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.performancetest.PerformanceTestStatemachine;
+import org.yakindu.scr.performancetest.PerformanceTestStatemachine.State;
+import org.yakindu.scr.TimerService;
+
+/**
+ * Unit TestCase for PerformanceTest
+ */
+@SuppressWarnings("all")
+public class PerformanceTestsTest {
+	private PerformanceTestStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new PerformanceTestStatemachine();
+		statemachine.setTimer(new TimerService());
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testtest_100_000() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.mr_A));
+		 
+		while (statemachine.getC() < 100000l) {
+			if (statemachine.isStateActive(State.mr_A)) {
+						statemachine.raiseE1();;
+					  }
+					else {
+						if (statemachine.getC()%2l == 0l) {
+									statemachine.raiseE2();;
+								  }
+								else {
+									statemachine.raiseE3();;
+								}
+						;
+					}
+			statemachine.runCycle();
+		}
+		assertTrue(statemachine.getA() > 2l);
+		 
+	}
+	@Test
+	public void testtest_1_000_000() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.mr_A));
+		 
+		while (statemachine.getC() < 1000000l) {
+			if (statemachine.isStateActive(State.mr_A)) {
+						statemachine.raiseE1();;
+					  }
+					else {
+						if (statemachine.getC()%2l == 0l) {
+									statemachine.raiseE2();;
+								  }
+								else {
+									statemachine.raiseE3();;
+								}
+						;
+					}
+			statemachine.runCycle();
+		}
+		assertTrue(statemachine.getA() > 2l);
+		 
+	}
+	@Test
+	public void testtest_10_000_000() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.mr_A));
+		 
+		while (statemachine.getC() < 10000000l) {
+			if (statemachine.isStateActive(State.mr_A)) {
+						statemachine.raiseE1();;
+					  }
+					else {
+						if (statemachine.getC()%2l == 0l) {
+									statemachine.raiseE2();;
+								  }
+								else {
+									statemachine.raiseE3();;
+								}
+						;
+					}
+			statemachine.runCycle();
+		}
+		assertTrue(statemachine.getA() > 2l);
+		 
+	}
+}

+ 61 - 61
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/PriorityValuesTest.java

@@ -1,61 +1,61 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.priorityvalues.PriorityValuesStatemachine;
-import org.yakindu.scr.priorityvalues.PriorityValuesStatemachine.State;
-
-/**
- * Unit TestCase for PriorityValues
- */
-@SuppressWarnings("all")
-public class PriorityValuesTest {
-	private PriorityValuesStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new PriorityValuesStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testtransitionPriority() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.raiseEvent1();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_C));
-		 
-	}
-	@Test
-	public void testregionPriority() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.someRegion_A));
-		 
-		statemachine.raiseEvent2();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.someRegion_B));
-		 
-		assertTrue(!statemachine.isStateActive(State.main_region_E));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.priorityvalues.PriorityValuesStatemachine;
+import org.yakindu.scr.priorityvalues.PriorityValuesStatemachine.State;
+
+/**
+ * Unit TestCase for PriorityValues
+ */
+@SuppressWarnings("all")
+public class PriorityValuesTest {
+	private PriorityValuesStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new PriorityValuesStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testtransitionPriority() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.raiseEvent1();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_C));
+		 
+	}
+	@Test
+	public void testregionPriority() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.someRegion_A));
+		 
+		statemachine.raiseEvent2();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.someRegion_B));
+		 
+		assertTrue(!statemachine.isStateActive(State.main_region_E));
+		 
+	}
+}

+ 54 - 54
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/RaiseEventTest.java

@@ -1,54 +1,54 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.raiseevent.RaiseEventStatemachine;
-import org.yakindu.scr.raiseevent.RaiseEventStatemachine.State;
-
-/**
- * Unit TestCase for RaiseEvent
- */
-@SuppressWarnings("all")
-public class RaiseEventTest {
-	private RaiseEventStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new RaiseEventStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testraiseEvent() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.second_region_SateA));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_StateA));
-		 
-		statemachine.raiseE2();
-		statemachine.runCycle();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.second_region_StateB));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_StateB));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.raiseevent.RaiseEventStatemachine;
+import org.yakindu.scr.raiseevent.RaiseEventStatemachine.State;
+
+/**
+ * Unit TestCase for RaiseEvent
+ */
+@SuppressWarnings("all")
+public class RaiseEventTest {
+	private RaiseEventStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new RaiseEventStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testraiseEvent() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.second_region_SateA));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_StateA));
+		 
+		statemachine.raiseE2();
+		statemachine.runCycle();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.second_region_StateB));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_StateB));
+		 
+	}
+}

+ 80 - 80
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/ReadOnlyVariableTest.java

@@ -1,80 +1,80 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.readonlyvariable.ReadOnlyVariableStatemachine;
-import org.yakindu.scr.readonlyvariable.ReadOnlyVariableStatemachine.State;
-
-/**
- * Unit TestCase for ReadOnlyVariable
- */
-@SuppressWarnings("all")
-public class ReadOnlyVariableTest {
-	private ReadOnlyVariableStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new ReadOnlyVariableStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testReadOnlyVariableTest() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_StateA));
-		 
-		assertTrue(statemachine.getMyInt() == 0l);
-		 
-		assertTrue(statemachine.getMyString().equals("testString"));
-		 
-		assertTrue(statemachine.getMyBool() == true);
-		 
-		assertTrue(statemachine.getMyReal() == 1.1);
-		 
-		assertTrue(statemachine.getSCIA().getMyInt() == 0l);
-		 
-		assertTrue(statemachine.getSCIA().getMyString().equals("testString"));
-		 
-		assertTrue(statemachine.getSCIA().getMyBool() == true);
-		 
-		assertTrue(statemachine.getSCIA().getMyReal() == 1.1);
-		 
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_StateB));
-		 
-		assertTrue(statemachine.getMyInt() == 100l);
-		 
-		assertTrue(statemachine.getMyString().equals("fail"));
-		 
-		assertTrue(statemachine.getMyBool() == false);
-		 
-		assertTrue(statemachine.getMyReal() == 6.6);
-		 
-		assertTrue(statemachine.getSCIA().getMyInt() == 200l);
-		 
-		assertTrue(statemachine.getSCIA().getMyString().equals("A_fail"));
-		 
-		assertTrue(statemachine.getSCIA().getMyBool() == false);
-		 
-		assertTrue(statemachine.getSCIA().getMyReal() == 7.7);
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.readonlyvariable.ReadOnlyVariableStatemachine;
+import org.yakindu.scr.readonlyvariable.ReadOnlyVariableStatemachine.State;
+
+/**
+ * Unit TestCase for ReadOnlyVariable
+ */
+@SuppressWarnings("all")
+public class ReadOnlyVariableTest {
+	private ReadOnlyVariableStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new ReadOnlyVariableStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testReadOnlyVariableTest() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_StateA));
+		 
+		assertTrue(statemachine.getMyInt() == 0l);
+		 
+		assertTrue(statemachine.getMyString().equals("testString"));
+		 
+		assertTrue(statemachine.getMyBool() == true);
+		 
+		assertTrue(statemachine.getMyReal() == 1.1);
+		 
+		assertTrue(statemachine.getSCIA().getMyInt() == 0l);
+		 
+		assertTrue(statemachine.getSCIA().getMyString().equals("testString"));
+		 
+		assertTrue(statemachine.getSCIA().getMyBool() == true);
+		 
+		assertTrue(statemachine.getSCIA().getMyReal() == 1.1);
+		 
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_StateB));
+		 
+		assertTrue(statemachine.getMyInt() == 100l);
+		 
+		assertTrue(statemachine.getMyString().equals("fail"));
+		 
+		assertTrue(statemachine.getMyBool() == false);
+		 
+		assertTrue(statemachine.getMyReal() == 6.6);
+		 
+		assertTrue(statemachine.getSCIA().getMyInt() == 200l);
+		 
+		assertTrue(statemachine.getSCIA().getMyString().equals("A_fail"));
+		 
+		assertTrue(statemachine.getSCIA().getMyBool() == false);
+		 
+		assertTrue(statemachine.getSCIA().getMyReal() == 7.7);
+		 
+	}
+}

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 923 - 923
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/STextKeywordsInStatesAndRegionsTest.java


+ 57 - 57
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/SameNameDifferentRegionTest.java

@@ -1,57 +1,57 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.samenamedifferentregion.SameNameDifferentRegionStatemachine;
-import org.yakindu.scr.samenamedifferentregion.SameNameDifferentRegionStatemachine.State;
-
-/**
- * Unit TestCase for SameNameDifferentRegion
- */
-@SuppressWarnings("all")
-public class SameNameDifferentRegionTest {
-	private SameNameDifferentRegionStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new SameNameDifferentRegionStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testsameNameDifferenRegionTest() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_StateA));
-		 
-		statemachine.raiseE1();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_StateB));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_StateB_r1_StateA));
-		 
-		statemachine.raiseE1();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_StateB));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_StateB_r1_StateB));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.samenamedifferentregion.SameNameDifferentRegionStatemachine;
+import org.yakindu.scr.samenamedifferentregion.SameNameDifferentRegionStatemachine.State;
+
+/**
+ * Unit TestCase for SameNameDifferentRegion
+ */
+@SuppressWarnings("all")
+public class SameNameDifferentRegionTest {
+	private SameNameDifferentRegionStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new SameNameDifferentRegionStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testsameNameDifferenRegionTest() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_StateA));
+		 
+		statemachine.raiseE1();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_StateB));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_StateB_r1_StateA));
+		 
+		statemachine.raiseE1();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_StateB));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_StateB_r1_StateB));
+		 
+	}
+}

+ 85 - 85
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/ShallowHistoryTest.java

@@ -1,85 +1,85 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.shallowhistory.ShallowHistoryStatemachine;
-import org.yakindu.scr.shallowhistory.ShallowHistoryStatemachine.State;
-
-/**
- * Unit TestCase for ShallowHistory
- */
-@SuppressWarnings("all")
-public class ShallowHistoryTest {
-	private ShallowHistoryStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new ShallowHistoryStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testshallowHistoryTest() {
-		statemachine.enter();
-		statemachine.raiseEvent1();
-		statemachine.runCycle();
-		statemachine.raiseEvent3();
-		statemachine.runCycle();
-		statemachine.raiseEvent5();
-		statemachine.runCycle();
-		statemachine.raiseEvent7();
-		statemachine.runCycle();
-		assertTrue(!statemachine.isStateActive(State.mainRegion_State1));
-		 
-		assertTrue(statemachine.isStateActive(State.mainRegion_State2__region0_State4__region0_State7__region0_State9));
-		 
-		statemachine.raiseEvent6();
-		statemachine.runCycle();
-		assertTrue(!statemachine.isStateActive(State.mainRegion_State2__region0_State4__region0_State7__region0_State9));
-		 
-		assertTrue(statemachine.isStateActive(State.mainRegion_State2__region0_State4__region0_State6));
-		 
-		statemachine.raiseEvent5();
-		statemachine.runCycle();
-		assertTrue(!statemachine.isStateActive(State.mainRegion_State2__region0_State4__region0_State7__region0_State8));
-		 
-		assertTrue(statemachine.isStateActive(State.mainRegion_State2__region0_State4__region0_State7__region0_State9));
-		 
-		statemachine.raiseEvent2();
-		statemachine.runCycle();
-		assertTrue(!statemachine.isStateActive(State.mainRegion_State2__region0_State4__region0_State7__region0_State9));
-		 
-		assertTrue(statemachine.isStateActive(State.mainRegion_State1));
-		 
-		statemachine.raiseEvent1();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.mainRegion_State2__region0_State4__region0_State6));
-		 
-		assertTrue(!statemachine.isStateActive(State.mainRegion_State1));
-		 
-		statemachine.raiseEvent5();
-		statemachine.runCycle();
-		assertTrue(!statemachine.isStateActive(State.mainRegion_State2__region0_State4__region0_State6));
-		 
-		assertTrue(statemachine.isStateActive(State.mainRegion_State2__region0_State4__region0_State7__region0_State9));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.shallowhistory.ShallowHistoryStatemachine;
+import org.yakindu.scr.shallowhistory.ShallowHistoryStatemachine.State;
+
+/**
+ * Unit TestCase for ShallowHistory
+ */
+@SuppressWarnings("all")
+public class ShallowHistoryTest {
+	private ShallowHistoryStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new ShallowHistoryStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testshallowHistoryTest() {
+		statemachine.enter();
+		statemachine.raiseEvent1();
+		statemachine.runCycle();
+		statemachine.raiseEvent3();
+		statemachine.runCycle();
+		statemachine.raiseEvent5();
+		statemachine.runCycle();
+		statemachine.raiseEvent7();
+		statemachine.runCycle();
+		assertTrue(!statemachine.isStateActive(State.mainRegion_State1));
+		 
+		assertTrue(statemachine.isStateActive(State.mainRegion_State2__region0_State4__region0_State7__region0_State9));
+		 
+		statemachine.raiseEvent6();
+		statemachine.runCycle();
+		assertTrue(!statemachine.isStateActive(State.mainRegion_State2__region0_State4__region0_State7__region0_State9));
+		 
+		assertTrue(statemachine.isStateActive(State.mainRegion_State2__region0_State4__region0_State6));
+		 
+		statemachine.raiseEvent5();
+		statemachine.runCycle();
+		assertTrue(!statemachine.isStateActive(State.mainRegion_State2__region0_State4__region0_State7__region0_State8));
+		 
+		assertTrue(statemachine.isStateActive(State.mainRegion_State2__region0_State4__region0_State7__region0_State9));
+		 
+		statemachine.raiseEvent2();
+		statemachine.runCycle();
+		assertTrue(!statemachine.isStateActive(State.mainRegion_State2__region0_State4__region0_State7__region0_State9));
+		 
+		assertTrue(statemachine.isStateActive(State.mainRegion_State1));
+		 
+		statemachine.raiseEvent1();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.mainRegion_State2__region0_State4__region0_State6));
+		 
+		assertTrue(!statemachine.isStateActive(State.mainRegion_State1));
+		 
+		statemachine.raiseEvent5();
+		statemachine.runCycle();
+		assertTrue(!statemachine.isStateActive(State.mainRegion_State2__region0_State4__region0_State6));
+		 
+		assertTrue(statemachine.isStateActive(State.mainRegion_State2__region0_State4__region0_State7__region0_State9));
+		 
+	}
+}

+ 105 - 105
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/ShallowHistoryWithDeepEntryTest.java

@@ -1,105 +1,105 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.shallowhistorywithdeepentry.ShallowHistoryWithDeepEntryStatemachine;
-import org.yakindu.scr.shallowhistorywithdeepentry.ShallowHistoryWithDeepEntryStatemachine.State;
-
-/**
- * Unit TestCase for ShallowHistoryWithDeepEntry
- */
-@SuppressWarnings("all")
-public class ShallowHistoryWithDeepEntryTest {
-	private ShallowHistoryWithDeepEntryStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new ShallowHistoryWithDeepEntryStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testnoDeepEntryWithinHistory() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_Y));
-		 
-		statemachine.raiseToZ();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_Z__region0_A));
-		 
-		statemachine.raiseToY();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_Y));
-		 
-		statemachine.raiseToZ();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_Z__region0_A));
-		 
-	}
-	@Test
-	public void testdeepEntryWithinHistory() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_Y));
-		 
-		statemachine.raiseToZ();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_Z__region0_A));
-		 
-		statemachine.raiseToC();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_Z__region0_B__region0_C));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_Z__region0_B));
-		 
-		statemachine.raiseToY();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_Y));
-		 
-		statemachine.raiseToZ();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_Z__region0_B__region0_C));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_Z__region0_B));
-		 
-	}
-	@Test
-	public void testdirectDeepEntryIntoHistory() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_Y));
-		 
-		statemachine.raiseToC();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_Z__region0_B__region0_C));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_Z__region0_B));
-		 
-		statemachine.raiseToY();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_Y));
-		 
-		statemachine.raiseToZ();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_Z__region0_B__region0_C));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_Z__region0_B));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.shallowhistorywithdeepentry.ShallowHistoryWithDeepEntryStatemachine;
+import org.yakindu.scr.shallowhistorywithdeepentry.ShallowHistoryWithDeepEntryStatemachine.State;
+
+/**
+ * Unit TestCase for ShallowHistoryWithDeepEntry
+ */
+@SuppressWarnings("all")
+public class ShallowHistoryWithDeepEntryTest {
+	private ShallowHistoryWithDeepEntryStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new ShallowHistoryWithDeepEntryStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testnoDeepEntryWithinHistory() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_Y));
+		 
+		statemachine.raiseToZ();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_Z__region0_A));
+		 
+		statemachine.raiseToY();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_Y));
+		 
+		statemachine.raiseToZ();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_Z__region0_A));
+		 
+	}
+	@Test
+	public void testdeepEntryWithinHistory() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_Y));
+		 
+		statemachine.raiseToZ();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_Z__region0_A));
+		 
+		statemachine.raiseToC();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_Z__region0_B__region0_C));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_Z__region0_B));
+		 
+		statemachine.raiseToY();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_Y));
+		 
+		statemachine.raiseToZ();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_Z__region0_B__region0_C));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_Z__region0_B));
+		 
+	}
+	@Test
+	public void testdirectDeepEntryIntoHistory() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_Y));
+		 
+		statemachine.raiseToC();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_Z__region0_B__region0_C));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_Z__region0_B));
+		 
+		statemachine.raiseToY();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_Y));
+		 
+		statemachine.raiseToZ();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_Z__region0_B__region0_C));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_Z__region0_B));
+		 
+	}
+}

+ 54 - 54
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/SimpleEventTest.java

@@ -1,54 +1,54 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.simpleevent.SimpleEventStatemachine;
-import org.yakindu.scr.simpleevent.SimpleEventStatemachine.State;
-
-/**
- * Unit TestCase for SimpleEvent
- */
-@SuppressWarnings("all")
-public class SimpleEventTest {
-	private SimpleEventStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new SimpleEventStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testsimpleEventTest() {
-		statemachine.enter();
-		assertTrue("Expected A to be active",statemachine.isStateActive(State.main_region_A));
-		 
-		assertTrue(5l == 5l);
-		 
-		statemachine.raiseEvent1();
-		statemachine.runCycle();
-		assertTrue("Expected B to be active",statemachine.isStateActive(State.main_region_B));
-		 
-		statemachine.runCycle();
-		assertTrue(!statemachine.isStateActive(State.main_region_B));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.simpleevent.SimpleEventStatemachine;
+import org.yakindu.scr.simpleevent.SimpleEventStatemachine.State;
+
+/**
+ * Unit TestCase for SimpleEvent
+ */
+@SuppressWarnings("all")
+public class SimpleEventTest {
+	private SimpleEventStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new SimpleEventStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testsimpleEventTest() {
+		statemachine.enter();
+		assertTrue("Expected A to be active",statemachine.isStateActive(State.main_region_A));
+		 
+		assertTrue(5l == 5l);
+		 
+		statemachine.raiseEvent1();
+		statemachine.runCycle();
+		assertTrue("Expected B to be active",statemachine.isStateActive(State.main_region_B));
+		 
+		statemachine.runCycle();
+		assertTrue(!statemachine.isStateActive(State.main_region_B));
+		 
+	}
+}

+ 53 - 53
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/SimpleHierachyTest.java

@@ -1,53 +1,53 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.simplehierachy.SimpleHierachyStatemachine;
-import org.yakindu.scr.simplehierachy.SimpleHierachyStatemachine.State;
-
-/**
- * Unit TestCase for SimpleHierachy
- */
-@SuppressWarnings("all")
-public class SimpleHierachyTest {
-	private SimpleHierachyStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new SimpleHierachyStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testsimpleHierachyTest() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.raiseEvent1();
-		statemachine.raiseEvent1();
-		statemachine.raiseEvent1();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_B_subregion1_B1));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.simplehierachy.SimpleHierachyStatemachine;
+import org.yakindu.scr.simplehierachy.SimpleHierachyStatemachine.State;
+
+/**
+ * Unit TestCase for SimpleHierachy
+ */
+@SuppressWarnings("all")
+public class SimpleHierachyTest {
+	private SimpleHierachyStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new SimpleHierachyStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testsimpleHierachyTest() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.raiseEvent1();
+		statemachine.raiseEvent1();
+		statemachine.raiseEvent1();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_B_subregion1_B1));
+		 
+	}
+}

+ 54 - 54
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/StateIsActiveTest.java

@@ -1,54 +1,54 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.stateisactive.StateIsActiveStatemachine;
-import org.yakindu.scr.stateisactive.StateIsActiveStatemachine.State;
-
-/**
- * Unit TestCase for StateIsActive
- */
-@SuppressWarnings("all")
-public class StateIsActiveTest {
-	private StateIsActiveStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new StateIsActiveStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void teststateIsActive() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.r1_R1A));
-		 
-		assertTrue(statemachine.isStateActive(State.r2_R2A));
-		 
-		statemachine.raiseEvent1();
-		statemachine.runCycle();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.r1_R1B));
-		 
-		assertTrue(statemachine.isStateActive(State.r2_R2B));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.stateisactive.StateIsActiveStatemachine;
+import org.yakindu.scr.stateisactive.StateIsActiveStatemachine.State;
+
+/**
+ * Unit TestCase for StateIsActive
+ */
+@SuppressWarnings("all")
+public class StateIsActiveTest {
+	private StateIsActiveStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new StateIsActiveStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void teststateIsActive() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.r1_R1A));
+		 
+		assertTrue(statemachine.isStateActive(State.r2_R2A));
+		 
+		statemachine.raiseEvent1();
+		statemachine.runCycle();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.r1_R1B));
+		 
+		assertTrue(statemachine.isStateActive(State.r2_R2B));
+		 
+	}
+}

+ 65 - 65
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/StatechartActiveTest.java

@@ -1,65 +1,65 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.statechartactive.StatechartActiveStatemachine;
-import org.yakindu.scr.statechartactive.StatechartActiveStatemachine.State;
-
-/**
- * Unit TestCase for StatechartActive
- */
-@SuppressWarnings("all")
-public class StatechartActiveTest {
-	private StatechartActiveStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new StatechartActiveStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testinactiveBeforeEnter() {
-		assertTrue(!statemachine.isActive());
-		 
-	}
-	@Test
-	public void testactiveAfterEnter() {
-		statemachine.enter();
-		assertTrue(statemachine.isActive());
-		 
-	}
-	@Test
-	public void testinactiveAfterExit() {
-		statemachine.enter();
-		statemachine.exit();
-		assertTrue(!statemachine.isActive());
-		 
-	}
-	@Test
-	public void testactiveAfterReenter() {
-		statemachine.enter();
-		statemachine.exit();
-		statemachine.enter();
-		assertTrue(statemachine.isActive());
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.statechartactive.StatechartActiveStatemachine;
+import org.yakindu.scr.statechartactive.StatechartActiveStatemachine.State;
+
+/**
+ * Unit TestCase for StatechartActive
+ */
+@SuppressWarnings("all")
+public class StatechartActiveTest {
+	private StatechartActiveStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new StatechartActiveStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testinactiveBeforeEnter() {
+		assertTrue(!statemachine.isActive());
+		 
+	}
+	@Test
+	public void testactiveAfterEnter() {
+		statemachine.enter();
+		assertTrue(statemachine.isActive());
+		 
+	}
+	@Test
+	public void testinactiveAfterExit() {
+		statemachine.enter();
+		statemachine.exit();
+		assertTrue(!statemachine.isActive());
+		 
+	}
+	@Test
+	public void testactiveAfterReenter() {
+		statemachine.enter();
+		statemachine.exit();
+		statemachine.enter();
+		assertTrue(statemachine.isActive());
+		 
+	}
+}

+ 62 - 62
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/StatechartLocalReactionsTest.java

@@ -1,62 +1,62 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.statechartlocalreactions.StatechartLocalReactionsStatemachine;
-import org.yakindu.scr.statechartlocalreactions.StatechartLocalReactionsStatemachine.State;
-
-/**
- * Unit TestCase for StatechartLocalReactions
- */
-@SuppressWarnings("all")
-public class StatechartLocalReactionsTest {
-	private StatechartLocalReactionsStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new StatechartLocalReactionsStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void teststatechartLocalReactionsTest() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_S1));
-		 
-		assertTrue(statemachine.isStateActive(State.region2_a));
-		 
-		while (statemachine.getMyInt() < 10l) {
-			assertTrue(statemachine.isStateActive(State.region2_a));
-			 
-			if (statemachine.getMyInt()%2l == 0l) {
-						assertTrue(statemachine.isStateActive(State.main_region_S1));
-						 
-						;
-					  }
-					else {
-						assertTrue(statemachine.isStateActive(State.main_region_S2));
-						 
-						;
-					}
-			statemachine.runCycle();
-		}
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.statechartlocalreactions.StatechartLocalReactionsStatemachine;
+import org.yakindu.scr.statechartlocalreactions.StatechartLocalReactionsStatemachine.State;
+
+/**
+ * Unit TestCase for StatechartLocalReactions
+ */
+@SuppressWarnings("all")
+public class StatechartLocalReactionsTest {
+	private StatechartLocalReactionsStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new StatechartLocalReactionsStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void teststatechartLocalReactionsTest() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_S1));
+		 
+		assertTrue(statemachine.isStateActive(State.region2_a));
+		 
+		while (statemachine.getMyInt() < 10l) {
+			assertTrue(statemachine.isStateActive(State.region2_a));
+			 
+			if (statemachine.getMyInt()%2l == 0l) {
+						assertTrue(statemachine.isStateActive(State.main_region_S1));
+						 
+						;
+					  }
+					else {
+						assertTrue(statemachine.isStateActive(State.main_region_S2));
+						 
+						;
+					}
+			statemachine.runCycle();
+		}
+	}
+}

+ 47 - 47
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/StatemachineKeywordsTest.java

@@ -1,47 +1,47 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.statechartkeywords.StatechartKeywordsStatemachine;
-import org.yakindu.scr.statechartkeywords.StatechartKeywordsStatemachine.State;
-import org.yakindu.scr.TimerService;
-
-/**
- * Unit TestCase for StatechartKeywords
- */
-@SuppressWarnings("all")
-public class StatemachineKeywordsTest {
-	private StatechartKeywordsStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new StatechartKeywordsStatemachine();
-		statemachine.setTimer(new TimerService());
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void teststatemachineKeywords() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_Timer));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.statechartkeywords.StatechartKeywordsStatemachine;
+import org.yakindu.scr.statechartkeywords.StatechartKeywordsStatemachine.State;
+import org.yakindu.scr.TimerService;
+
+/**
+ * Unit TestCase for StatechartKeywords
+ */
+@SuppressWarnings("all")
+public class StatemachineKeywordsTest {
+	private StatechartKeywordsStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new StatechartKeywordsStatemachine();
+		statemachine.setTimer(new TimerService());
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void teststatemachineKeywords() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_Timer));
+		 
+	}
+}

+ 46 - 46
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/StaticChoiceTest.java

@@ -1,46 +1,46 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.staticchoice.StaticChoiceStatemachine;
-import org.yakindu.scr.staticchoice.StaticChoiceStatemachine.State;
-
-/**
- * Unit TestCase for StaticChoice
- */
-@SuppressWarnings("all")
-public class StaticChoiceTest {
-	private StaticChoiceStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new StaticChoiceStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testStaticChoiceTest() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_Start));
-		 
-		statemachine.runCycle();
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.staticchoice.StaticChoiceStatemachine;
+import org.yakindu.scr.staticchoice.StaticChoiceStatemachine.State;
+
+/**
+ * Unit TestCase for StaticChoice
+ */
+@SuppressWarnings("all")
+public class StaticChoiceTest {
+	private StaticChoiceStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new StaticChoiceStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testStaticChoiceTest() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_Start));
+		 
+		statemachine.runCycle();
+	}
+}

+ 97 - 97
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/StringExpressionsTest.java

@@ -1,97 +1,97 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.stringexpressions.StringExpressionsStatemachine;
-import org.yakindu.scr.stringexpressions.StringExpressionsStatemachine.State;
-
-/**
- * Unit TestCase for StringExpressions
- */
-@SuppressWarnings("all")
-public class StringExpressionsTest {
-	private StringExpressionsStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new StringExpressionsStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testStringExpressionsTest() {
-		assertTrue(statemachine.getQuotedStringX().equals("\"X\""));
-		 
-		assertTrue(statemachine.getQuotedStringY().equals("\"Y\""));
-		 
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_AssignmentChecked));
-		 
-		statemachine.raiseE();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_VarToVarCompareSucceeded));
-		 
-		assertTrue(statemachine.getGuardStringEqual());
-		 
-		assertTrue(statemachine.getGuardStringNotEqual());
-		 
-		assertTrue(statemachine.getStringVarEqual());
-		 
-		assertTrue(statemachine.getStringVarNotEqual());
-		 
-		statemachine.raiseE();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_VarToConstCompareSucceeded));
-		 
-		assertTrue(statemachine.getGuardStringEqual());
-		 
-		assertTrue(statemachine.getGuardStringNotEqual());
-		 
-		assertTrue(statemachine.getStringVarEqual());
-		 
-		assertTrue(statemachine.getStringVarNotEqual());
-		 
-		statemachine.raiseE();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_ConstToVarCompareSucceeded));
-		 
-		assertTrue(statemachine.getGuardStringEqual());
-		 
-		assertTrue(statemachine.getGuardStringNotEqual());
-		 
-		assertTrue(statemachine.getStringVarEqual());
-		 
-		assertTrue(statemachine.getStringVarNotEqual());
-		 
-		statemachine.raiseE();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_ConstToConstCompareSucceeded));
-		 
-		assertTrue(statemachine.getGuardStringEqual());
-		 
-		assertTrue(statemachine.getGuardStringNotEqual());
-		 
-		assertTrue(statemachine.getStringVarEqual());
-		 
-		assertTrue(statemachine.getStringVarNotEqual());
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.stringexpressions.StringExpressionsStatemachine;
+import org.yakindu.scr.stringexpressions.StringExpressionsStatemachine.State;
+
+/**
+ * Unit TestCase for StringExpressions
+ */
+@SuppressWarnings("all")
+public class StringExpressionsTest {
+	private StringExpressionsStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new StringExpressionsStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testStringExpressionsTest() {
+		assertTrue(statemachine.getQuotedStringX().equals("\"X\""));
+		 
+		assertTrue(statemachine.getQuotedStringY().equals("\"Y\""));
+		 
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_AssignmentChecked));
+		 
+		statemachine.raiseE();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_VarToVarCompareSucceeded));
+		 
+		assertTrue(statemachine.getGuardStringEqual());
+		 
+		assertTrue(statemachine.getGuardStringNotEqual());
+		 
+		assertTrue(statemachine.getStringVarEqual());
+		 
+		assertTrue(statemachine.getStringVarNotEqual());
+		 
+		statemachine.raiseE();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_VarToConstCompareSucceeded));
+		 
+		assertTrue(statemachine.getGuardStringEqual());
+		 
+		assertTrue(statemachine.getGuardStringNotEqual());
+		 
+		assertTrue(statemachine.getStringVarEqual());
+		 
+		assertTrue(statemachine.getStringVarNotEqual());
+		 
+		statemachine.raiseE();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_ConstToVarCompareSucceeded));
+		 
+		assertTrue(statemachine.getGuardStringEqual());
+		 
+		assertTrue(statemachine.getGuardStringNotEqual());
+		 
+		assertTrue(statemachine.getStringVarEqual());
+		 
+		assertTrue(statemachine.getStringVarNotEqual());
+		 
+		statemachine.raiseE();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_ConstToConstCompareSucceeded));
+		 
+		assertTrue(statemachine.getGuardStringEqual());
+		 
+		assertTrue(statemachine.getGuardStringNotEqual());
+		 
+		assertTrue(statemachine.getStringVarEqual());
+		 
+		assertTrue(statemachine.getStringVarNotEqual());
+		 
+	}
+}

+ 73 - 73
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/SyncForkTest.java

@@ -1,73 +1,73 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.syncfork.SyncForkStatemachine;
-import org.yakindu.scr.syncfork.SyncForkStatemachine.State;
-
-/**
- * Unit TestCase for SyncFork
- */
-@SuppressWarnings("all")
-public class SyncForkTest {
-	private SyncForkStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new SyncForkStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testsyncForkTest() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.raiseF();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C1));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D1));
-		 
-		statemachine.raiseF();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C2));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D2));
-		 
-		statemachine.raiseE();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.raiseF();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C1));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D1));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.syncfork.SyncForkStatemachine;
+import org.yakindu.scr.syncfork.SyncForkStatemachine.State;
+
+/**
+ * Unit TestCase for SyncFork
+ */
+@SuppressWarnings("all")
+public class SyncForkTest {
+	private SyncForkStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new SyncForkStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testsyncForkTest() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.raiseF();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C1));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D1));
+		 
+		statemachine.raiseF();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C2));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D2));
+		 
+		statemachine.raiseE();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.raiseF();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C1));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D1));
+		 
+	}
+}

+ 152 - 152
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/SyncJoinTest.java

@@ -1,152 +1,152 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.syncjoin.SyncJoinStatemachine;
-import org.yakindu.scr.syncjoin.SyncJoinStatemachine.State;
-
-/**
- * Unit TestCase for SyncJoin
- */
-@SuppressWarnings("all")
-public class SyncJoinTest {
-	private SyncJoinStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new SyncJoinStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testsyncJoin_C2_Waits() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_B));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C1));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D1));
-		 
-		statemachine.raiseE();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C2));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D1));
-		 
-		statemachine.raiseJc();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C2));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D1));
-		 
-		statemachine.raiseJd();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C2));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D1));
-		 
-		statemachine.raiseJc();
-		statemachine.raiseJd();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C2));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D1));
-		 
-		statemachine.raiseF();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C2));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D2));
-		 
-		statemachine.raiseJc();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C2));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D2));
-		 
-		statemachine.raiseJd();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C2));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D2));
-		 
-		statemachine.raiseJc();
-		statemachine.raiseJd();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-	}
-	@Test
-	public void testsyncJoin_D2_Waits() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_B));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C1));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D1));
-		 
-		statemachine.raiseF();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C1));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D2));
-		 
-		statemachine.raiseJc();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C1));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D2));
-		 
-		statemachine.raiseJd();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C1));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D2));
-		 
-		statemachine.raiseJc();
-		statemachine.raiseJd();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C1));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D2));
-		 
-		statemachine.raiseE();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C2));
-		 
-		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D2));
-		 
-	}
-	@Test
-	public void testdoubleEntryActionBug() {
-		statemachine.enter();
-		statemachine.raiseE();
-		statemachine.raiseF();
-		statemachine.runCycle();
-		statemachine.raiseJc();
-		statemachine.raiseJd();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		assertTrue(statemachine.getX() == 1l);
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.syncjoin.SyncJoinStatemachine;
+import org.yakindu.scr.syncjoin.SyncJoinStatemachine.State;
+
+/**
+ * Unit TestCase for SyncJoin
+ */
+@SuppressWarnings("all")
+public class SyncJoinTest {
+	private SyncJoinStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new SyncJoinStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testsyncJoin_C2_Waits() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_B));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C1));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D1));
+		 
+		statemachine.raiseE();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C2));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D1));
+		 
+		statemachine.raiseJc();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C2));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D1));
+		 
+		statemachine.raiseJd();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C2));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D1));
+		 
+		statemachine.raiseJc();
+		statemachine.raiseJd();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C2));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D1));
+		 
+		statemachine.raiseF();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C2));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D2));
+		 
+		statemachine.raiseJc();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C2));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D2));
+		 
+		statemachine.raiseJd();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C2));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D2));
+		 
+		statemachine.raiseJc();
+		statemachine.raiseJd();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+	}
+	@Test
+	public void testsyncJoin_D2_Waits() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_B));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C1));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D1));
+		 
+		statemachine.raiseF();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C1));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D2));
+		 
+		statemachine.raiseJc();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C1));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D2));
+		 
+		statemachine.raiseJd();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C1));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D2));
+		 
+		statemachine.raiseJc();
+		statemachine.raiseJd();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C1));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D2));
+		 
+		statemachine.raiseE();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B_r1_C2));
+		 
+		assertTrue(statemachine.isStateActive(State.main_region_B_r2_D2));
+		 
+	}
+	@Test
+	public void testdoubleEntryActionBug() {
+		statemachine.enter();
+		statemachine.raiseE();
+		statemachine.raiseF();
+		statemachine.runCycle();
+		statemachine.raiseJc();
+		statemachine.raiseJd();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		assertTrue(statemachine.getX() == 1l);
+		 
+	}
+}

+ 51 - 51
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/TimedTransitionsTest.java

@@ -1,51 +1,51 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.timedtransitions.TimedTransitionsStatemachine;
-import org.yakindu.scr.timedtransitions.TimedTransitionsStatemachine.State;
-import org.yakindu.scr.TimerService;
-
-/**
- * Unit TestCase for TimedTransitions
- */
-@SuppressWarnings("all")
-public class TimedTransitionsTest {
-	private TimedTransitionsStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new TimedTransitionsStatemachine();
-		statemachine.setTimer(new TimerService());
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testTimer01() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_Start));
-		 
-		try {Thread.sleep(2030);} catch (InterruptedException e) {}
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_End));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.timedtransitions.TimedTransitionsStatemachine;
+import org.yakindu.scr.timedtransitions.TimedTransitionsStatemachine.State;
+import org.yakindu.scr.TimerService;
+
+/**
+ * Unit TestCase for TimedTransitions
+ */
+@SuppressWarnings("all")
+public class TimedTransitionsTest {
+	private TimedTransitionsStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new TimedTransitionsStatemachine();
+		statemachine.setTimer(new TimerService());
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testTimer01() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_Start));
+		 
+		try {Thread.sleep(2030);} catch (InterruptedException e) {}
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_End));
+		 
+	}
+}

+ 48 - 48
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/TransitionWithoutConditionTest.java

@@ -1,48 +1,48 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.transitionwithoutcondition.TransitionWithoutConditionStatemachine;
-import org.yakindu.scr.transitionwithoutcondition.TransitionWithoutConditionStatemachine.State;
-
-/**
- * Unit TestCase for TransitionWithoutCondition
- */
-@SuppressWarnings("all")
-public class TransitionWithoutConditionTest {
-	private TransitionWithoutConditionStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new TransitionWithoutConditionStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testTransitionWithoutConditionTest() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.transitionwithoutcondition.TransitionWithoutConditionStatemachine;
+import org.yakindu.scr.transitionwithoutcondition.TransitionWithoutConditionStatemachine.State;
+
+/**
+ * Unit TestCase for TransitionWithoutCondition
+ */
+@SuppressWarnings("all")
+public class TransitionWithoutConditionTest {
+	private TransitionWithoutConditionStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new TransitionWithoutConditionStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testTransitionWithoutConditionTest() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B));
+		 
+	}
+}

+ 75 - 75
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/TriggerExpressionPrecedenceTest.java

@@ -1,75 +1,75 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.triggerexpressionprecedence.TriggerExpressionPrecedenceStatemachine;
-import org.yakindu.scr.triggerexpressionprecedence.TriggerExpressionPrecedenceStatemachine.State;
-
-/**
- * Unit TestCase for TriggerExpressionPrecedence
- */
-@SuppressWarnings("all")
-public class TriggerExpressionPrecedenceTest {
-	private TriggerExpressionPrecedenceStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new TriggerExpressionPrecedenceStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testunsatisfiedTriggerAndFGuardFalseOrFalse() {
-		statemachine.enter();
-		statemachine.setC1(false);
-		statemachine.setC2(false);
-		statemachine.runCycle();
-		assertTrue(!statemachine.getE1_transition());
-		 
-	}
-	@Test
-	public void testunsatisfiedTriggerAndFGuardTrueOrFalse() {
-		statemachine.enter();
-		statemachine.setC1(true);
-		statemachine.setC2(false);
-		statemachine.runCycle();
-		assertTrue(!statemachine.getE1_transition());
-		 
-	}
-	@Test
-	public void testunsatisfiedTriggerAndFGuardFalseOrTrue() {
-		statemachine.enter();
-		statemachine.setC1(false);
-		statemachine.setC2(true);
-		statemachine.runCycle();
-		assertTrue(!statemachine.getE1_transition());
-		 
-	}
-	@Test
-	public void testunsatisfiedTriggerAndFGuardTrueOrTrue() {
-		statemachine.enter();
-		statemachine.setC1(true);
-		statemachine.setC2(true);
-		statemachine.runCycle();
-		assertTrue(!statemachine.getE1_transition());
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.triggerexpressionprecedence.TriggerExpressionPrecedenceStatemachine;
+import org.yakindu.scr.triggerexpressionprecedence.TriggerExpressionPrecedenceStatemachine.State;
+
+/**
+ * Unit TestCase for TriggerExpressionPrecedence
+ */
+@SuppressWarnings("all")
+public class TriggerExpressionPrecedenceTest {
+	private TriggerExpressionPrecedenceStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new TriggerExpressionPrecedenceStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testunsatisfiedTriggerAndFGuardFalseOrFalse() {
+		statemachine.enter();
+		statemachine.setC1(false);
+		statemachine.setC2(false);
+		statemachine.runCycle();
+		assertTrue(!statemachine.getE1_transition());
+		 
+	}
+	@Test
+	public void testunsatisfiedTriggerAndFGuardTrueOrFalse() {
+		statemachine.enter();
+		statemachine.setC1(true);
+		statemachine.setC2(false);
+		statemachine.runCycle();
+		assertTrue(!statemachine.getE1_transition());
+		 
+	}
+	@Test
+	public void testunsatisfiedTriggerAndFGuardFalseOrTrue() {
+		statemachine.enter();
+		statemachine.setC1(false);
+		statemachine.setC2(true);
+		statemachine.runCycle();
+		assertTrue(!statemachine.getE1_transition());
+		 
+	}
+	@Test
+	public void testunsatisfiedTriggerAndFGuardTrueOrTrue() {
+		statemachine.enter();
+		statemachine.setC1(true);
+		statemachine.setC2(true);
+		statemachine.runCycle();
+		assertTrue(!statemachine.getE1_transition());
+		 
+	}
+}

+ 85 - 85
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/TriggerGuardExpressionsTest.java

@@ -1,85 +1,85 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.triggerguardexpressions.TriggerGuardExpressionsStatemachine;
-import org.yakindu.scr.triggerguardexpressions.TriggerGuardExpressionsStatemachine.State;
-
-/**
- * Unit TestCase for TriggerGuardExpressions
- */
-@SuppressWarnings("all")
-public class TriggerGuardExpressionsTest {
-	private TriggerGuardExpressionsStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new TriggerGuardExpressionsStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testtrueGuard() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.raiseE1();
-		statemachine.setB(true);
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B));
-		 
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.raiseE2();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B));
-		 
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.raiseE1();
-		statemachine.raiseE2();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_B));
-		 
-	}
-	@Test
-	public void testfalseGuard() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.setB(false);
-		statemachine.raiseE1();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.raiseE2();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-		statemachine.raiseE1();
-		statemachine.raiseE2();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_A));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.triggerguardexpressions.TriggerGuardExpressionsStatemachine;
+import org.yakindu.scr.triggerguardexpressions.TriggerGuardExpressionsStatemachine.State;
+
+/**
+ * Unit TestCase for TriggerGuardExpressions
+ */
+@SuppressWarnings("all")
+public class TriggerGuardExpressionsTest {
+	private TriggerGuardExpressionsStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new TriggerGuardExpressionsStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testtrueGuard() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.raiseE1();
+		statemachine.setB(true);
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B));
+		 
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.raiseE2();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B));
+		 
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.raiseE1();
+		statemachine.raiseE2();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_B));
+		 
+	}
+	@Test
+	public void testfalseGuard() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.setB(false);
+		statemachine.raiseE1();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.raiseE2();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+		statemachine.raiseE1();
+		statemachine.raiseE2();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_A));
+		 
+	}
+}

+ 59 - 59
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/TypeAliasTest.java

@@ -1,59 +1,59 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.typealias.TypeAliasStatemachine;
-import org.yakindu.scr.typealias.TypeAliasStatemachine.State;
-
-/**
- * Unit TestCase for TypeAlias
- */
-@SuppressWarnings("all")
-public class TypeAliasTest {
-	private TypeAliasStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new TypeAliasStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testTypeAliasTest() {
-		statemachine.enter();
-		assertTrue(statemachine.isStateActive(State.main_region_Start));
-		 
-		assertTrue(statemachine.getMyVar() == 1l);
-		 
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_Mid));
-		 
-		assertTrue(statemachine.getMyString().equals("TypeSystem"));
-		 
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_Mid2));
-		 
-		statemachine.raiseMyEvent();
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.main_region_End));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.typealias.TypeAliasStatemachine;
+import org.yakindu.scr.typealias.TypeAliasStatemachine.State;
+
+/**
+ * Unit TestCase for TypeAlias
+ */
+@SuppressWarnings("all")
+public class TypeAliasTest {
+	private TypeAliasStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new TypeAliasStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testTypeAliasTest() {
+		statemachine.enter();
+		assertTrue(statemachine.isStateActive(State.main_region_Start));
+		 
+		assertTrue(statemachine.getMyVar() == 1l);
+		 
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_Mid));
+		 
+		assertTrue(statemachine.getMyString().equals("TypeSystem"));
+		 
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_Mid2));
+		 
+		statemachine.raiseMyEvent();
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.main_region_End));
+		 
+	}
+}

+ 67 - 67
test-plugins/org.yakindu.sct.generator.java.test/test-gen/org/yakindu/sct/generator/java/test/tests/ValuedEventsTest.java

@@ -1,67 +1,67 @@
-/**
-* Copyright (c) 2017 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.java.test.tests;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
-import org.yakindu.scr.valuedevents.ValuedEventsStatemachine;
-import org.yakindu.scr.valuedevents.ValuedEventsStatemachine.State;
-
-/**
- * Unit TestCase for ValuedEvents
- */
-@SuppressWarnings("all")
-public class ValuedEventsTest {
-	private ValuedEventsStatemachine statemachine;	
-	
-	@Before
-	public void setUp() {
-		statemachine = new ValuedEventsStatemachine();
-		statemachine.init();
-	}
-
-	@After
-	public void tearDown() {
-		statemachine = null;
-	}
-	
-	@Test
-	public void testvaluedEventsTest() {
-		statemachine.enter();
-		statemachine.runCycle();
-		assertTrue(statemachine.getMyString().equals("sct"));
-		 
-		statemachine.raiseIntegerEvent(23l);
-		statemachine.raiseBooleanEvent(false);
-		statemachine.raiseRealEvent(20l);
-		statemachine.raiseStringEvent("tool");
-		statemachine.runCycle();
-		assertTrue(statemachine.isStateActive(State.integer_region_D));
-		 
-		assertTrue(statemachine.isStateActive(State.string_region_D));
-		 
-		assertTrue(statemachine.isStateActive(State.boolean_region_D));
-		 
-		assertTrue(statemachine.isStateActive(State.real_region_D));
-		 
-		assertTrue(statemachine.getMyInt() == 23l);
-		 
-		assertTrue(statemachine.getMyBool() == false);
-		 
-		assertTrue(statemachine.getMyReal() == 20l);
-		 
-		assertTrue(statemachine.getMyString().equals("tool"));
-		 
-	}
-}
+/**
+* Copyright (c) 2017 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.scttests;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import static org.junit.Assert.*;
+import org.yakindu.scr.valuedevents.ValuedEventsStatemachine;
+import org.yakindu.scr.valuedevents.ValuedEventsStatemachine.State;
+
+/**
+ * Unit TestCase for ValuedEvents
+ */
+@SuppressWarnings("all")
+public class ValuedEventsTest {
+	private ValuedEventsStatemachine statemachine;	
+	
+	@Before
+	public void setUp() {
+		statemachine = new ValuedEventsStatemachine();
+		statemachine.init();
+	}
+
+	@After
+	public void tearDown() {
+		statemachine = null;
+	}
+	
+	@Test
+	public void testvaluedEventsTest() {
+		statemachine.enter();
+		statemachine.runCycle();
+		assertTrue(statemachine.getMyString().equals("sct"));
+		 
+		statemachine.raiseIntegerEvent(23l);
+		statemachine.raiseBooleanEvent(false);
+		statemachine.raiseRealEvent(20l);
+		statemachine.raiseStringEvent("tool");
+		statemachine.runCycle();
+		assertTrue(statemachine.isStateActive(State.integer_region_D));
+		 
+		assertTrue(statemachine.isStateActive(State.string_region_D));
+		 
+		assertTrue(statemachine.isStateActive(State.boolean_region_D));
+		 
+		assertTrue(statemachine.isStateActive(State.real_region_D));
+		 
+		assertTrue(statemachine.getMyInt() == 23l);
+		 
+		assertTrue(statemachine.getMyBool() == false);
+		 
+		assertTrue(statemachine.getMyReal() == 20l);
+		 
+		assertTrue(statemachine.getMyString().equals("tool"));
+		 
+	}
+}