7220145d331644efb772e25f2c6c1b2f7480a73c
[sdc/sdc-workflow-designer.git] /
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.resources.entity;\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 import com.google.gson.annotations.SerializedName;\r
21 \r
22 /**\r
23  *\r
24  */\r
25 public class InputOutputTest {\r
26 \r
27   /**\r
28    * @throws java.lang.Exception\r
29    */\r
30   @Before\r
31   public void setUp() throws Exception {}\r
32 \r
33   /**\r
34    * @throws java.lang.Exception\r
35    */\r
36   @After\r
37   public void tearDown() throws Exception {}\r
38 \r
39   @Test\r
40   public void test() {\r
41     String type = "";\r
42     String defaultValue = "";\r
43     boolean required = false;\r
44     I18nString displayName = new I18nString();\r
45     boolean show = true;\r
46     boolean editable = true;\r
47     String value = "";\r
48 \r
49     InputOutput io = new InputOutput();\r
50     io.setDefault(defaultValue);\r
51     io.setDisplayName(displayName);\r
52     io.setEditable(editable);\r
53     io.setRequired(required);\r
54     io.setShow(show);\r
55     io.setType(type);\r
56     io.setValue(value);\r
57     \r
58     assertEquals(defaultValue, io.getDefault());\r
59     assertEquals(displayName, io.getDisplayName());\r
60     assertEquals(editable, io.isEditable());\r
61     assertEquals(required, io.isRequired());\r
62     assertEquals(show, io.isShow());\r
63     assertEquals(type, io.getType());\r
64     assertEquals(value, io.getValue());\r
65   }\r
66 \r
67 }\r