Add Unit Test
[sdc/sdc-workflow-designer.git] / sdc-workflow-designer-server / src / test / java / org / onap / sdc / workflowdesigner / model / SequenceFlowTest.java
diff --git a/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/SequenceFlowTest.java b/sdc-workflow-designer-server/src/test/java/org/onap/sdc/workflowdesigner/model/SequenceFlowTest.java
new file mode 100644 (file)
index 0000000..7f613c1
--- /dev/null
@@ -0,0 +1,62 @@
+/**\r
+ * Copyright (c) 2018 ZTE Corporation.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the Apache License, Version 2.0\r
+ * and the Eclipse Public License v1.0 which both accompany this distribution,\r
+ * and are available at http://www.eclipse.org/legal/epl-v10.html\r
+ * and http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Contributors:\r
+ *     ZTE - initial API and implementation and/or initial documentation\r
+ */\r
+package org.onap.sdc.workflowdesigner.model;\r
+\r
+import static org.junit.Assert.*;\r
+\r
+import org.junit.After;\r
+import org.junit.Before;\r
+import org.junit.Test;\r
+\r
+/**\r
+ *\r
+ */\r
+public class SequenceFlowTest {\r
+\r
+  /**\r
+   * @throws java.lang.Exception\r
+   */\r
+  @Before\r
+  public void setUp() throws Exception {}\r
+\r
+  /**\r
+   * @throws java.lang.Exception\r
+   */\r
+  @After\r
+  public void tearDown() throws Exception {}\r
+\r
+  @Test\r
+  public void test() {\r
+    String id = "id";\r
+    String name = "name";\r
+    String sourceRef = "sourceRef";\r
+    String targetRef = "targetRef";\r
+    String documentation = "documentation";\r
+    String condition = "condition";\r
+    \r
+    SequenceFlow sf = new SequenceFlow();\r
+    sf.setCondition(condition);\r
+    sf.setDocumentation(documentation);\r
+    sf.setId(id);\r
+    sf.setName(name);\r
+    sf.setSourceRef(sourceRef);\r
+    sf.setTargetRef(targetRef);\r
+    \r
+    assertEquals(condition, sf.getCondition());\r
+    assertEquals(documentation, sf.getDocumentation());\r
+    assertEquals(id, sf.getId());\r
+    assertEquals(name, sf.getName());\r
+    assertEquals(sourceRef, sf.getSourceRef());\r
+    assertEquals(targetRef, sf.getTargetRef());\r
+  }\r
+\r
+}\r