1a8aa3b481281df517781d3c35e2b42675c658f8
[vid.git] / vid-app-common / src / test / java / org / onap / vid / mso / rest / RelatedInstanceTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * VID
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.onap.vid.mso.rest;
22
23 import org.junit.Test;
24 import org.onap.vid.mso.model.ModelInfo;
25
26 import java.util.Map;
27
28
29 public class RelatedInstanceTest {
30
31         private RelatedInstance createTestSubject() {
32                 return new RelatedInstance();
33         }
34
35         
36         @Test
37         public void testGetModelInfo() throws Exception {
38                 RelatedInstance testSubject;
39                 ModelInfo result;
40
41                 // default test
42                 testSubject = createTestSubject();
43                 result = testSubject.getModelInfo();
44         }
45
46         
47         @Test
48         public void testSetModelInfo() throws Exception {
49                 RelatedInstance testSubject;
50                 ModelInfo modelInfo = null;
51
52                 // default test
53                 testSubject = createTestSubject();
54                 testSubject.setModelInfo(modelInfo);
55         }
56
57         
58         @Test
59         public void testToString() throws Exception {
60                 RelatedInstance testSubject;
61                 String result;
62
63                 // default test
64                 testSubject = createTestSubject();
65                 result = testSubject.toString();
66         }
67
68         
69         @Test
70         public void testGetAdditionalProperties() throws Exception {
71                 RelatedInstance testSubject;
72                 Map<String, Object> result;
73
74                 // default test
75                 testSubject = createTestSubject();
76                 result = testSubject.getAdditionalProperties();
77         }
78
79         
80         @Test
81         public void testSetAdditionalProperty() throws Exception {
82                 RelatedInstance testSubject;
83                 String name = "";
84                 Object value = null;
85
86                 // default test
87                 testSubject = createTestSubject();
88                 testSubject.setAdditionalProperty(name, value);
89         }
90
91         
92         @Test
93         public void testHashCode() throws Exception {
94                 RelatedInstance testSubject;
95                 int result;
96
97                 // default test
98                 testSubject = createTestSubject();
99                 result = testSubject.hashCode();
100         }
101
102         
103         @Test
104         public void testEquals() throws Exception {
105                 RelatedInstance testSubject;
106                 Object other = null;
107                 boolean result;
108
109                 // default test
110                 testSubject = createTestSubject();
111                 result = testSubject.equals(other);
112         }
113 }