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 RelationshipInstDataTest {
31 private RelationshipInstData createTestSubject() {
32 return new RelationshipInstData();
36 public void testCtor() throws Exception {
37 new RelationshipInstData(new HashMap<>());
41 public void testToGraphMap() throws Exception {
42 RelationshipInstData testSubject;
43 Map<String, Object> result;
46 testSubject = createTestSubject();
47 result = testSubject.toGraphMap();
52 public void testGetCreationTime() throws Exception {
53 RelationshipInstData testSubject;
57 testSubject = createTestSubject();
58 result = testSubject.getCreationTime();
63 public void testSetCreationTime() throws Exception {
64 RelationshipInstData testSubject;
65 Long creationTime = null;
68 testSubject = createTestSubject();
69 testSubject.setCreationTime(creationTime);
74 public void testGetModificationTime() throws Exception {
75 RelationshipInstData testSubject;
79 testSubject = createTestSubject();
80 result = testSubject.getModificationTime();
85 public void testSetModificationTime() throws Exception {
86 RelationshipInstData testSubject;
87 Long modificationTime = null;
90 testSubject = createTestSubject();
91 testSubject.setModificationTime(modificationTime);
96 public void testSetUniqueId() throws Exception {
97 RelationshipInstData testSubject;
101 testSubject = createTestSubject();
102 testSubject.setUniqueId(uniqueId);
107 public void testGetUniqueId() throws Exception {
108 RelationshipInstData testSubject;
112 testSubject = createTestSubject();
113 result = testSubject.getUniqueId();
118 public void testGetType() throws Exception {
119 RelationshipInstData testSubject;
123 testSubject = createTestSubject();
124 result = testSubject.getType();
129 public void testSetType() throws Exception {
130 RelationshipInstData testSubject;
134 testSubject = createTestSubject();
135 testSubject.setType(type);
140 public void testGetCapabilityOwnerId() throws Exception {
141 RelationshipInstData testSubject;
145 testSubject = createTestSubject();
146 result = testSubject.getCapabilityOwnerId();
151 public void testSetCapabilityOwnerId() throws Exception {
152 RelationshipInstData testSubject;
153 String capabilityOwnerId = "";
156 testSubject = createTestSubject();
157 testSubject.setCapabilityOwnerId(capabilityOwnerId);
162 public void testGetRequirementOwnerId() throws Exception {
163 RelationshipInstData testSubject;
167 testSubject = createTestSubject();
168 result = testSubject.getRequirementOwnerId();
173 public void testSetRequirementOwnerId() throws Exception {
174 RelationshipInstData testSubject;
175 String requirementOwnerId = "";
178 testSubject = createTestSubject();
179 testSubject.setRequirementOwnerId(requirementOwnerId);
184 public void testGetCapabiltyId() throws Exception {
185 RelationshipInstData testSubject;
189 testSubject = createTestSubject();
190 result = testSubject.getCapabiltyId();
195 public void testSetCapabiltyId() throws Exception {
196 RelationshipInstData testSubject;
197 String capabiltyId = "";
200 testSubject = createTestSubject();
201 testSubject.setCapabiltyId(capabiltyId);
206 public void testGetRequirementId() throws Exception {
207 RelationshipInstData testSubject;
211 testSubject = createTestSubject();
212 result = testSubject.getRequirementId();
217 public void testSetRequirementId() throws Exception {
218 RelationshipInstData testSubject;
219 String requirementId = "";
222 testSubject = createTestSubject();
223 testSubject.setRequirementId(requirementId);
228 public void testToString() throws Exception {
229 RelationshipInstData testSubject;
233 testSubject = createTestSubject();
234 result = testSubject.toString();