aa428bc761234ce6ffa4763bad4fcadb06dc9057
[sdc/sdc-workflow-designer.git] / sdc-workflow-designer-server / src / test / java / org / onap / sdc / workflowdesigner / model / ParameterTest.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 import com.fasterxml.jackson.annotation.JsonInclude;\r
21 import com.fasterxml.jackson.annotation.JsonInclude.Include;\r
22 \r
23 /**\r
24  *\r
25  */\r
26 public class ParameterTest {\r
27 \r
28   /**\r
29    * @throws java.lang.Exception\r
30    */\r
31   @Before\r
32   public void setUp() throws Exception {}\r
33 \r
34   /**\r
35    * @throws java.lang.Exception\r
36    */\r
37   @After\r
38   public void tearDown() throws Exception {}\r
39 \r
40   @Test\r
41   public void test() {\r
42     String description = "description";\r
43     String name = "name";\r
44     String position = "position";\r
45     boolean required = false;\r
46     String type = "type";\r
47     Object value = "value";\r
48     String valueSource = "valueSource";\r
49     \r
50     Parameter p = new Parameter();\r
51     p.setDescription(description);\r
52     p.setName(name);\r
53     p.setPosition(position);\r
54     p.setRequired(required);\r
55     p.setType(type);\r
56     p.setValueSource(valueSource);\r
57     p.setValue(value);\r
58     \r
59     assertEquals(description, p.getDescription());\r
60     assertEquals(name, p.getName());\r
61     assertEquals(position, p.getPosition());\r
62     assertEquals(required, p.isRequired());\r
63     assertEquals(type, p.getType());\r
64     assertEquals(valueSource, p.getValueSource());\r
65     assertEquals(value, p.getValue());\r
66     \r
67   }\r
68 \r
69 }\r