fea6a6f478ad71de37e280b0754bc2fe76f2ee59
[sdc/sdc-workflow-designer.git] /
1 /**
2  * Copyright (c) 2018 ZTE Corporation.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the Apache License, Version 2.0
5  * and the Eclipse Public License v1.0 which both accompany this distribution,
6  * and are available at http://www.eclipse.org/legal/epl-v10.html
7  * and http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Contributors:
10  *     ZTE - initial API and implementation and/or initial documentation
11  */
12 package org.onap.sdc.workflowdesigner.model;
13
14 import static org.junit.Assert.*;
15
16 import org.junit.After;
17 import org.junit.Before;
18 import org.junit.Test;
19
20 import com.fasterxml.jackson.annotation.JsonInclude;
21 import com.fasterxml.jackson.annotation.JsonInclude.Include;
22
23 /**
24  *
25  */
26 public class ParameterTest {
27
28   /**
29    * @throws java.lang.Exception
30    */
31   @Before
32   public void setUp() throws Exception {}
33
34   /**
35    * @throws java.lang.Exception
36    */
37   @After
38   public void tearDown() throws Exception {}
39
40   @Test
41   public void test() {
42     String description = "description";
43     String name = "name";
44     String position = "position";
45     boolean required = false;
46     String type = "type";
47     Object value = "value";
48     String valueSource = "valueSource";
49     
50     Parameter p = new Parameter();
51     p.setDescription(description);
52     p.setName(name);
53     p.setPosition(position);
54     p.setRequired(required);
55     p.setType(type);
56     p.setValueSource(valueSource);
57     p.setValue(value);
58     
59     assertEquals(description, p.getDescription());
60     assertEquals(name, p.getName());
61     assertEquals(position, p.getPosition());
62     assertEquals(required, p.isRequired());
63     assertEquals(type, p.getType());
64     assertEquals(valueSource, p.getValueSource());
65     assertEquals(value, p.getValue());
66     
67   }
68
69 }