|
@@ -1,13 +1,13 @@
|
|
|
/**
|
|
|
- * Copyright (c) 2015 committers of YAKINDU and others.
|
|
|
- * All rights reserved. This program and the accompanying materials
|
|
|
- * are made available under the terms of the Eclipse Public License v1.0
|
|
|
- * 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) 2015 committers of YAKINDU and others.
|
|
|
+* All rights reserved. This program and the accompanying materials
|
|
|
+* are made available under the terms of the Eclipse Public License v1.0
|
|
|
+* 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.simulation.core.sexec.test;
|
|
|
import org.eclipse.xtext.junit4.InjectWith;
|
|
|
import org.eclipse.xtext.junit4.XtextRunner;
|
|
@@ -29,15 +29,14 @@ import static org.junit.Assert.assertTrue;
|
|
|
public class EmptyTransitionTest extends AbstractExecutionFlowTest {
|
|
|
@Before
|
|
|
public void setup() throws Exception {
|
|
|
- ExecutionFlow flow = models
|
|
|
- .loadExecutionFlowFromResource("EmptyTransition.sct");
|
|
|
+ ExecutionFlow flow = models.loadExecutionFlowFromResource("EmptyTransition.sct");
|
|
|
initInterpreter(flow);
|
|
|
}
|
|
|
@Test
|
|
|
public void EmptyTransitionTest() throws Exception {
|
|
|
interpreter.enter();
|
|
|
interpreter.runCycle();
|
|
|
- assertTrue(!isStateActive("B"));
|
|
|
- assertTrue(isStateActive("A"));
|
|
|
+ assertTrue(isStateActive("B"));
|
|
|
+ assertTrue(!isStateActive("A"));
|
|
|
}
|
|
|
}
|