7f613c1cb147ca394ca7ec9e57051b184c07e0e3
[sdc/sdc-workflow-designer.git] / sdc-workflow-designer-server / src / test / java / org / onap / sdc / workflowdesigner / model / SequenceFlowTest.java
1 /**\r
2  * Copyright (c) 2018 ZTE Corporation.\r
3  * All rights reserved. This program and the accompanying materials\r
4  * are made available under the Apache License, Version 2.0\r
5  * and the Eclipse Public License v1.0 which both accompany this distribution,\r
6  * and are available at http://www.eclipse.org/legal/epl-v10.html\r
7  * and http://www.apache.org/licenses/LICENSE-2.0\r
8  *\r
9  * Contributors:\r
10  *     ZTE - initial API and implementation and/or initial documentation\r
11  */\r
12 package org.onap.sdc.workflowdesigner.model;\r
13 \r
14 import static org.junit.Assert.*;\r
15 \r
16 import org.junit.After;\r
17 import org.junit.Before;\r
18 import org.junit.Test;\r
19 \r
20 /**\r
21  *\r
22  */\r
23 public class SequenceFlowTest {\r
24 \r
25   /**\r
26    * @throws java.lang.Exception\r
27    */\r
28   @Before\r
29   public void setUp() throws Exception {}\r
30 \r
31   /**\r
32    * @throws java.lang.Exception\r
33    */\r
34   @After\r
35   public void tearDown() throws Exception {}\r
36 \r
37   @Test\r
38   public void test() {\r
39     String id = "id";\r
40     String name = "name";\r
41     String sourceRef = "sourceRef";\r
42     String targetRef = "targetRef";\r
43     String documentation = "documentation";\r
44     String condition = "condition";\r
45     \r
46     SequenceFlow sf = new SequenceFlow();\r
47     sf.setCondition(condition);\r
48     sf.setDocumentation(documentation);\r
49     sf.setId(id);\r
50     sf.setName(name);\r
51     sf.setSourceRef(sourceRef);\r
52     sf.setTargetRef(targetRef);\r
53     \r
54     assertEquals(condition, sf.getCondition());\r
55     assertEquals(documentation, sf.getDocumentation());\r
56     assertEquals(id, sf.getId());\r
57     assertEquals(name, sf.getName());\r
58     assertEquals(sourceRef, sf.getSourceRef());\r
59     assertEquals(targetRef, sf.getTargetRef());\r
60   }\r
61 \r
62 }\r