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
10 * ZTE - initial API and implementation and/or initial documentation
\r
12 package org.onap.sdc.workflowdesigner.model;
\r
14 import static org.junit.Assert.*;
\r
16 import org.junit.After;
\r
17 import org.junit.Before;
\r
18 import org.junit.Test;
\r
20 import com.fasterxml.jackson.annotation.JsonInclude;
\r
21 import com.fasterxml.jackson.annotation.JsonInclude.Include;
\r
26 public class ParameterTest {
\r
29 * @throws java.lang.Exception
\r
32 public void setUp() throws Exception {}
\r
35 * @throws java.lang.Exception
\r
38 public void tearDown() throws Exception {}
\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
50 Parameter p = new Parameter();
\r
51 p.setDescription(description);
\r
53 p.setPosition(position);
\r
54 p.setRequired(required);
\r
56 p.setValueSource(valueSource);
\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