2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 - 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.onap.vid.mso.rest;
23 import org.junit.Test;
24 import org.onap.vid.mso.model.ModelInfo;
29 public class RelatedInstanceTest {
31 private RelatedInstance createTestSubject() {
32 return new RelatedInstance();
37 public void testGetModelInfo() throws Exception {
38 RelatedInstance testSubject;
42 testSubject = createTestSubject();
43 result = testSubject.getModelInfo();
48 public void testSetModelInfo() throws Exception {
49 RelatedInstance testSubject;
50 ModelInfo modelInfo = null;
53 testSubject = createTestSubject();
54 testSubject.setModelInfo(modelInfo);
59 public void testToString() throws Exception {
60 RelatedInstance testSubject;
64 testSubject = createTestSubject();
65 result = testSubject.toString();
70 public void testGetAdditionalProperties() throws Exception {
71 RelatedInstance testSubject;
72 Map<String, Object> result;
75 testSubject = createTestSubject();
76 result = testSubject.getAdditionalProperties();
81 public void testSetAdditionalProperty() throws Exception {
82 RelatedInstance testSubject;
87 testSubject = createTestSubject();
88 testSubject.setAdditionalProperty(name, value);
93 public void testHashCode() throws Exception {
94 RelatedInstance testSubject;
98 testSubject = createTestSubject();
99 result = testSubject.hashCode();
104 public void testEquals() throws Exception {
105 RelatedInstance testSubject;
110 testSubject = createTestSubject();
111 result = testSubject.equals(other);