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;
26 import java.util.List;
30 public class CapabilityInstDataTest {
32 private CapabilityInstData createTestSubject() {
33 return new CapabilityInstData();
37 public void testCtor() throws Exception {
38 new CapabilityInstData(new HashMap<>());
42 public void testGetUniqueId() throws Exception {
43 CapabilityInstData testSubject;
47 testSubject = createTestSubject();
48 result = testSubject.getUniqueId();
53 public void testSetUniqueId() throws Exception {
54 CapabilityInstData testSubject;
58 testSubject = createTestSubject();
59 testSubject.setUniqueId(uniqueId);
64 public void testGetCreationTime() throws Exception {
65 CapabilityInstData testSubject;
69 testSubject = createTestSubject();
70 result = testSubject.getCreationTime();
75 public void testSetCreationTime() throws Exception {
76 CapabilityInstData testSubject;
77 Long creationTime = null;
80 testSubject = createTestSubject();
81 testSubject.setCreationTime(creationTime);
86 public void testGetModificationTime() throws Exception {
87 CapabilityInstData testSubject;
91 testSubject = createTestSubject();
92 result = testSubject.getModificationTime();
97 public void testSetModificationTime() throws Exception {
98 CapabilityInstData testSubject;
99 Long modificationTime = null;
102 testSubject = createTestSubject();
103 testSubject.setModificationTime(modificationTime);
108 public void testGetProperties() throws Exception {
109 CapabilityInstData testSubject;
113 testSubject = createTestSubject();
114 result = testSubject.getProperties();
119 public void testSetProperties() throws Exception {
120 CapabilityInstData testSubject;
121 List<String> properties = null;
124 testSubject = createTestSubject();
125 testSubject.setProperties(properties);
130 public void testToGraphMap() throws Exception {
131 CapabilityInstData testSubject;
132 Map<String, Object> result;
135 testSubject = createTestSubject();
136 result = testSubject.toGraphMap();
141 public void testToString() throws Exception {
142 CapabilityInstData testSubject;
146 testSubject = createTestSubject();
147 result = testSubject.toString();