Prechádzať zdrojové kódy

regenerated SCTUnit tests with beautifier

Andreas Mülder 13 rokov pred
rodič
commit
bdd5f43c6b

+ 13 - 13
test-plugins/org.yakindu.sct.model.sexec.interpreter.test/src-gen/org/yakindu/sct/model/sexec/interpreter/test/ChoiceTest.java

@@ -1,13 +1,13 @@
 /**
-* Copyright (c) 2012 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
+ * Copyright (c) 2012 committers of YAKINDU and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     committers of YAKINDU - initial API and implementation
+ */
 package org.yakindu.sct.model.sexec.interpreter.test;
 import org.eclipse.xtext.junit4.InjectWith;
 import org.eclipse.xtext.junit4.XtextRunner;
@@ -19,7 +19,7 @@ import com.google.inject.Inject;
 import org.junit.Before;
 import org.yakindu.sct.model.sexec.interpreter.IExecutionFlowInterpreter;
 import org.yakindu.sct.model.sexec.ExecutionFlow;
-import util.TestModels;	
+import util.TestModels;
 import static junit.framework.Assert.*;
 /**
  *  Unit TestCase for Choice
@@ -28,12 +28,12 @@ import static junit.framework.Assert.*;
 @RunWith(XtextRunner.class)
 @InjectWith(SExecInjectionProvider.class)
 public class ChoiceTest extends AbstractExecutionFlowTest {
-	
+
 	@Inject
 	private TestModels models;
-	
+
 	@Before
-	public void setup() throws Exception{
+	public void setup() throws Exception {
 		ExecutionFlow flow = models.loadExecutionFlowFromResource("Choice.sct");
 		initInterpreter(flow);
 	}

+ 15 - 14
test-plugins/org.yakindu.sct.model.sexec.interpreter.test/src-gen/org/yakindu/sct/model/sexec/interpreter/test/DeepHistoryTest.java

@@ -1,13 +1,13 @@
 /**
-* Copyright (c) 2012 committers of YAKINDU and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-*     committers of YAKINDU - initial API and implementation
-*/
+ * Copyright (c) 2012 committers of YAKINDU and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     committers of YAKINDU - initial API and implementation
+ */
 package org.yakindu.sct.model.sexec.interpreter.test;
 import org.eclipse.xtext.junit4.InjectWith;
 import org.eclipse.xtext.junit4.XtextRunner;
@@ -19,7 +19,7 @@ import com.google.inject.Inject;
 import org.junit.Before;
 import org.yakindu.sct.model.sexec.interpreter.IExecutionFlowInterpreter;
 import org.yakindu.sct.model.sexec.ExecutionFlow;
-import util.TestModels;	
+import util.TestModels;
 import static junit.framework.Assert.*;
 /**
  *  Unit TestCase for DeepHistory
@@ -28,13 +28,14 @@ import static junit.framework.Assert.*;
 @RunWith(XtextRunner.class)
 @InjectWith(SExecInjectionProvider.class)
 public class DeepHistoryTest extends AbstractExecutionFlowTest {
-	
+
 	@Inject
 	private TestModels models;
-	
+
 	@Before
-	public void setup() throws Exception{
-		ExecutionFlow flow = models.loadExecutionFlowFromResource("DeepHistory.sct");
+	public void setup() throws Exception {
+		ExecutionFlow flow = models
+				.loadExecutionFlowFromResource("DeepHistory.sct");
 		initInterpreter(flow);
 	}
 	@Test

+ 1 - 1
test-plugins/org.yakindu.sct.model.sexec.interpreter.test/src-gen/org/yakindu/sct/model/sexec/interpreter/test/SimpleEventTest.java

@@ -41,7 +41,7 @@ public class SimpleEventTest extends AbstractExecutionFlowTest {
 	@Test
 	public void simpleEventTest() throws Exception {
 		assertTrue(isActive("A"));
-		raiseEvent("");
+		raiseEvent("Event1");
 		interpreter.runCycle();
 		assertTrue(isActive("B"));
 	}

+ 3 - 3
test-plugins/org.yakindu.sct.model.sexec.interpreter.test/src-gen/org/yakindu/sct/model/sexec/interpreter/test/SimpleHierachyTest.java

@@ -41,9 +41,9 @@ public class SimpleHierachyTest extends AbstractExecutionFlowTest {
 	@Test
 	public void simpleHierachyTest() throws Exception {
 		assertTrue(isActive("A"));
-		raiseEvent("");
-		raiseEvent("");
-		raiseEvent("");
+		raiseEvent("Event1");
+		raiseEvent("Event1");
+		raiseEvent("Event1");
 		interpreter.runCycle();
 		assertTrue(isActive("B"));
 		assertTrue(isActive("B1"));

+ 1 - 1
test-plugins/org.yakindu.sct.model.sexec.interpreter.test/src-gen/org/yakindu/sct/model/sexec/interpreter/test/StateIsActiveTest.java

@@ -42,7 +42,7 @@ public class StateIsActiveTest extends AbstractExecutionFlowTest {
 	public void stateIsActive() throws Exception {
 		assertTrue(isActive("R1A"));
 		assertTrue(isActive("R2A"));
-		raiseEvent("");
+		raiseEvent("Event1");
 		interpreter.runCycle();
 		interpreter.runCycle();
 		assertTrue(isActive("R1B"));

+ 16 - 16
test-plugins/org.yakindu.sct.model.sexec.interpreter.test/src-gen/org/yakindu/sct/model/sexec/interpreter/test/SyncJoinTest.java

@@ -43,37 +43,37 @@ public class SyncJoinTest extends AbstractExecutionFlowTest {
 		assertTrue(isActive("B"));
 		assertTrue(isActive("C1"));
 		assertTrue(isActive("D1"));
-		raiseEvent("");
+		raiseEvent("e");
 		interpreter.runCycle();
 		assertTrue(isActive("C2"));
 		assertTrue(isActive("D1"));
-		raiseEvent("");
+		raiseEvent("jc");
 		interpreter.runCycle();
 		assertTrue(isActive("C2"));
 		assertTrue(isActive("D1"));
-		raiseEvent("");
+		raiseEvent("jd");
 		interpreter.runCycle();
 		assertTrue(isActive("C2"));
 		assertTrue(isActive("D1"));
-		raiseEvent("");
-		raiseEvent("");
+		raiseEvent("jc");
+		raiseEvent("jd");
 		interpreter.runCycle();
 		assertTrue(isActive("C2"));
 		assertTrue(isActive("D1"));
-		raiseEvent("");
+		raiseEvent("f");
 		interpreter.runCycle();
 		assertTrue(isActive("C2"));
 		assertTrue(isActive("D2"));
-		raiseEvent("");
+		raiseEvent("jc");
 		interpreter.runCycle();
 		assertTrue(isActive("C2"));
 		assertTrue(isActive("D2"));
-		raiseEvent("");
+		raiseEvent("jd");
 		interpreter.runCycle();
 		assertTrue(isActive("C2"));
 		assertTrue(isActive("D2"));
-		raiseEvent("");
-		raiseEvent("");
+		raiseEvent("jc");
+		raiseEvent("jd");
 		interpreter.runCycle();
 		assertTrue(isActive("A"));
 	}
@@ -82,24 +82,24 @@ public class SyncJoinTest extends AbstractExecutionFlowTest {
 		assertTrue(isActive("B"));
 		assertTrue(isActive("C1"));
 		assertTrue(isActive("D1"));
-		raiseEvent("");
+		raiseEvent("f");
 		interpreter.runCycle();
 		assertTrue(isActive("C1"));
 		assertTrue(isActive("D2"));
-		raiseEvent("");
+		raiseEvent("jc");
 		interpreter.runCycle();
 		assertTrue(isActive("C1"));
 		assertTrue(isActive("D2"));
-		raiseEvent("");
+		raiseEvent("jd");
 		interpreter.runCycle();
 		assertTrue(isActive("C1"));
 		assertTrue(isActive("D2"));
-		raiseEvent("");
-		raiseEvent("");
+		raiseEvent("jc");
+		raiseEvent("jd");
 		interpreter.runCycle();
 		assertTrue(isActive("C1"));
 		assertTrue(isActive("D2"));
-		raiseEvent("");
+		raiseEvent("e");
 		interpreter.runCycle();
 		assertTrue(isActive("C2"));
 		assertTrue(isActive("D2"));