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