2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.openecomp.sdc.be.resources.data;
23 import org.junit.Test;
25 import java.util.HashMap;
29 public class HeatParameterValueDataTest {
31 private HeatParameterValueData createTestSubject() {
32 return new HeatParameterValueData();
36 public void testCtor() throws Exception {
37 new HeatParameterValueData(new HashMap<>());
41 public void testGetUniqueId() throws Exception {
42 HeatParameterValueData testSubject;
46 testSubject = createTestSubject();
47 result = testSubject.getUniqueId();
52 public void testGetValue() throws Exception {
53 HeatParameterValueData testSubject;
57 testSubject = createTestSubject();
58 result = testSubject.getValue();
63 public void testSetValue() throws Exception {
64 HeatParameterValueData testSubject;
68 testSubject = createTestSubject();
69 testSubject.setValue(value);
74 public void testSetUniqueId() throws Exception {
75 HeatParameterValueData testSubject;
79 testSubject = createTestSubject();
80 testSubject.setUniqueId(uniqueId);
85 public void testToGraphMap() throws Exception {
86 HeatParameterValueData testSubject;
87 Map<String, Object> result;
90 testSubject = createTestSubject();
91 result = testSubject.toGraphMap();
96 public void testToString() throws Exception {
97 HeatParameterValueData testSubject;
101 testSubject = createTestSubject();
102 result = testSubject.toString();