瀏覽代碼

Added SimpleEvent Test case to TestModels

Andreas Mülder 13 年之前
父節點
當前提交
99662c808d
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      test-plugins/org.yakindu.sct.test.models/src/util/TestModels.java

+ 11 - 0
test-plugins/org.yakindu.sct.test.models/src/util/TestModels.java

@@ -43,6 +43,7 @@ public class TestModels {
 	public static final String GUARD = "Guard.sct";
 	public static final String PRIORITY_VALUES = "PriorityValues.sct";
 	public static final String SHALLOW_HISTORY = "ShallowHistory.sct";
+	public static final String SIMPLE_EVENT = "SimpleEvent.sct";
 	public static final String SIMPLE_HIERACHY = "SimpleHierachy.sct";
 	public static final String STATECHART_LOCAL_REACTIONS = "StatechartLocalReactions.sct";
 	public static final String STATE_ACTIVE = "StateIsActive.sct";
@@ -54,6 +55,16 @@ public class TestModels {
 	@Inject
 	private ModelSequencer sequencer;
 
+	/**
+	 * <img src="../../images/SimpleEvent.png" /> <br />
+	 * 
+	 * @return the {@link ExecutionFlow}
+	 * @throws IOException
+	 */
+	public ExecutionFlow createSimpleEventModel() throws IOException {
+		return loadExecutionFlowFromResource(SIMPLE_EVENT);
+	}
+	
 	/**
 	 * <img src="../../images/PriorityValues.png" /> <br />
 	 *