Added oparent to sdc main
[sdc.git] / catalog-dao / src / test / java / org / openecomp / sdc / be / resources / data / RelationshipInstDataTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
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
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.openecomp.sdc.be.resources.data;
22
23 import org.junit.Test;
24
25 import java.util.HashMap;
26 import java.util.Map;
27
28
29 public class RelationshipInstDataTest {
30
31         private RelationshipInstData createTestSubject() {
32                 return new RelationshipInstData();
33         }
34
35         @Test
36         public void testCtor() throws Exception {
37                 new RelationshipInstData(new HashMap<>());
38         }
39         
40         @Test
41         public void testToGraphMap() throws Exception {
42                 RelationshipInstData testSubject;
43                 Map<String, Object> result;
44
45                 // default test
46                 testSubject = createTestSubject();
47                 result = testSubject.toGraphMap();
48         }
49
50         
51         @Test
52         public void testGetCreationTime() throws Exception {
53                 RelationshipInstData testSubject;
54                 Long result;
55
56                 // default test
57                 testSubject = createTestSubject();
58                 result = testSubject.getCreationTime();
59         }
60
61         
62         @Test
63         public void testSetCreationTime() throws Exception {
64                 RelationshipInstData testSubject;
65                 Long creationTime = null;
66
67                 // default test
68                 testSubject = createTestSubject();
69                 testSubject.setCreationTime(creationTime);
70         }
71
72         
73         @Test
74         public void testGetModificationTime() throws Exception {
75                 RelationshipInstData testSubject;
76                 Long result;
77
78                 // default test
79                 testSubject = createTestSubject();
80                 result = testSubject.getModificationTime();
81         }
82
83         
84         @Test
85         public void testSetModificationTime() throws Exception {
86                 RelationshipInstData testSubject;
87                 Long modificationTime = null;
88
89                 // default test
90                 testSubject = createTestSubject();
91                 testSubject.setModificationTime(modificationTime);
92         }
93
94         
95         @Test
96         public void testSetUniqueId() throws Exception {
97                 RelationshipInstData testSubject;
98                 String uniqueId = "";
99
100                 // default test
101                 testSubject = createTestSubject();
102                 testSubject.setUniqueId(uniqueId);
103         }
104
105         
106         @Test
107         public void testGetUniqueId() throws Exception {
108                 RelationshipInstData testSubject;
109                 String result;
110
111                 // default test
112                 testSubject = createTestSubject();
113                 result = testSubject.getUniqueId();
114         }
115
116         
117         @Test
118         public void testGetType() throws Exception {
119                 RelationshipInstData testSubject;
120                 String result;
121
122                 // default test
123                 testSubject = createTestSubject();
124                 result = testSubject.getType();
125         }
126
127         
128         @Test
129         public void testSetType() throws Exception {
130                 RelationshipInstData testSubject;
131                 String type = "";
132
133                 // default test
134                 testSubject = createTestSubject();
135                 testSubject.setType(type);
136         }
137
138         
139         @Test
140         public void testGetCapabilityOwnerId() throws Exception {
141                 RelationshipInstData testSubject;
142                 String result;
143
144                 // default test
145                 testSubject = createTestSubject();
146                 result = testSubject.getCapabilityOwnerId();
147         }
148
149         
150         @Test
151         public void testSetCapabilityOwnerId() throws Exception {
152                 RelationshipInstData testSubject;
153                 String capabilityOwnerId = "";
154
155                 // default test
156                 testSubject = createTestSubject();
157                 testSubject.setCapabilityOwnerId(capabilityOwnerId);
158         }
159
160         
161         @Test
162         public void testGetRequirementOwnerId() throws Exception {
163                 RelationshipInstData testSubject;
164                 String result;
165
166                 // default test
167                 testSubject = createTestSubject();
168                 result = testSubject.getRequirementOwnerId();
169         }
170
171         
172         @Test
173         public void testSetRequirementOwnerId() throws Exception {
174                 RelationshipInstData testSubject;
175                 String requirementOwnerId = "";
176
177                 // default test
178                 testSubject = createTestSubject();
179                 testSubject.setRequirementOwnerId(requirementOwnerId);
180         }
181
182         
183         @Test
184         public void testGetCapabiltyId() throws Exception {
185                 RelationshipInstData testSubject;
186                 String result;
187
188                 // default test
189                 testSubject = createTestSubject();
190                 result = testSubject.getCapabiltyId();
191         }
192
193         
194         @Test
195         public void testSetCapabiltyId() throws Exception {
196                 RelationshipInstData testSubject;
197                 String capabiltyId = "";
198
199                 // default test
200                 testSubject = createTestSubject();
201                 testSubject.setCapabiltyId(capabiltyId);
202         }
203
204         
205         @Test
206         public void testGetRequirementId() throws Exception {
207                 RelationshipInstData testSubject;
208                 String result;
209
210                 // default test
211                 testSubject = createTestSubject();
212                 result = testSubject.getRequirementId();
213         }
214
215         
216         @Test
217         public void testSetRequirementId() throws Exception {
218                 RelationshipInstData testSubject;
219                 String requirementId = "";
220
221                 // default test
222                 testSubject = createTestSubject();
223                 testSubject.setRequirementId(requirementId);
224         }
225
226         
227         @Test
228         public void testToString() throws Exception {
229                 RelationshipInstData testSubject;
230                 String result;
231
232                 // default test
233                 testSubject = createTestSubject();
234                 result = testSubject.toString();
235         }
236 }