-/**\r
- * Copyright (c) 2018 ZTE Corporation.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the Apache License, Version 2.0\r
- * and the Eclipse Public License v1.0 which both accompany this distribution,\r
- * and are available at http://www.eclipse.org/legal/epl-v10.html\r
- * and http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Contributors:\r
- * ZTE - initial API and implementation and/or initial documentation\r
- */\r
-package org.onap.sdc.workflowdesigner.model;\r
-\r
-import static org.junit.Assert.*;\r
-\r
-import org.junit.After;\r
-import org.junit.Before;\r
-import org.junit.Test;\r
-\r
-import com.fasterxml.jackson.annotation.JsonInclude;\r
-import com.fasterxml.jackson.annotation.JsonInclude.Include;\r
-\r
-/**\r
- *\r
- */\r
-public class ParameterTest {\r
-\r
- /**\r
- * @throws java.lang.Exception\r
- */\r
- @Before\r
- public void setUp() throws Exception {}\r
-\r
- /**\r
- * @throws java.lang.Exception\r
- */\r
- @After\r
- public void tearDown() throws Exception {}\r
-\r
- @Test\r
- public void test() {\r
- String description = "description";\r
- String name = "name";\r
- String position = "position";\r
- boolean required = false;\r
- String type = "type";\r
- Object value = "value";\r
- String valueSource = "valueSource";\r
- \r
- Parameter p = new Parameter();\r
- p.setDescription(description);\r
- p.setName(name);\r
- p.setPosition(position);\r
- p.setRequired(required);\r
- p.setType(type);\r
- p.setValueSource(valueSource);\r
- p.setValue(value);\r
- \r
- assertEquals(description, p.getDescription());\r
- assertEquals(name, p.getName());\r
- assertEquals(position, p.getPosition());\r
- assertEquals(required, p.isRequired());\r
- assertEquals(type, p.getType());\r
- assertEquals(valueSource, p.getValueSource());\r
- assertEquals(value, p.getValue());\r
- \r
- }\r
-\r
-}\r