Added oparent to sdc main
[sdc.git] / common-be / src / test / java / org / openecomp / sdc / be / datatypes / elements / CapabilityDataDefinitionTest.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.datatypes.elements;
22
23 import org.junit.Assert;
24 import org.junit.Test;
25
26 import java.util.LinkedList;
27 import java.util.List;
28
29
30 public class CapabilityDataDefinitionTest {
31
32         private CapabilityDataDefinition createTestSubject() {
33                 return new CapabilityDataDefinition();
34         }
35
36         @Test
37         public void testCopyConstructor() throws Exception {
38                 CapabilityDataDefinition testSubject;
39
40                 // default test
41                 testSubject = createTestSubject();
42                 new CapabilityDataDefinition(testSubject);
43                 testSubject.setValidSourceTypes(new LinkedList<>());
44                 testSubject.setCapabilitySources(new LinkedList<>());
45                 testSubject.setPath(new LinkedList<>());
46                 new CapabilityDataDefinition(testSubject);
47         }
48         
49         @Test
50         public void testGetOwnerId() throws Exception {
51                 CapabilityDataDefinition testSubject;
52                 String result;
53
54                 // default test
55                 testSubject = createTestSubject();
56                 result = testSubject.getOwnerId();
57         }
58
59         
60         @Test
61         public void testSetOwnerId() throws Exception {
62                 CapabilityDataDefinition testSubject;
63                 String ownerId = "";
64
65                 // default test
66                 testSubject = createTestSubject();
67                 testSubject.setOwnerId(ownerId);
68         }
69
70         
71         @Test
72         public void testGetOwnerName() throws Exception {
73                 CapabilityDataDefinition testSubject;
74                 String result;
75
76                 // default test
77                 testSubject = createTestSubject();
78                 result = testSubject.getOwnerName();
79         }
80
81         
82         @Test
83         public void testSetOwnerName() throws Exception {
84                 CapabilityDataDefinition testSubject;
85                 String ownerName = "";
86
87                 // default test
88                 testSubject = createTestSubject();
89                 testSubject.setOwnerName(ownerName);
90         }
91
92         
93         @Test
94         public void testGetMinOccurrences() throws Exception {
95                 CapabilityDataDefinition testSubject;
96                 String result;
97
98                 // default test
99                 testSubject = createTestSubject();
100                 result = testSubject.getMinOccurrences();
101         }
102
103         
104         @Test
105         public void testSetMinOccurrences() throws Exception {
106                 CapabilityDataDefinition testSubject;
107                 String minOccurrences = "";
108
109                 // default test
110                 testSubject = createTestSubject();
111                 testSubject.setMinOccurrences(minOccurrences);
112         }
113
114         
115         @Test
116         public void testGetMaxOccurrences() throws Exception {
117                 CapabilityDataDefinition testSubject;
118                 String result;
119
120                 // default test
121                 testSubject = createTestSubject();
122                 result = testSubject.getMaxOccurrences();
123         }
124
125         
126         @Test
127         public void testSetMaxOccurrences() throws Exception {
128                 CapabilityDataDefinition testSubject;
129                 String maxOccurrences = "";
130
131                 // default test
132                 testSubject = createTestSubject();
133                 testSubject.setMaxOccurrences(maxOccurrences);
134         }
135
136         
137         @Test
138         public void testGetLeftOccurrences() throws Exception {
139                 CapabilityDataDefinition testSubject;
140                 String result;
141
142                 // default test
143                 testSubject = createTestSubject();
144                 result = testSubject.getLeftOccurrences();
145         }
146
147         
148         @Test
149         public void testSetLeftOccurrences() throws Exception {
150                 CapabilityDataDefinition testSubject;
151                 String leftOccurrences = "";
152
153                 // default test
154                 testSubject = createTestSubject();
155                 testSubject.setLeftOccurrences(leftOccurrences);
156         }
157
158         
159         @Test
160         public void testGetUniqueId() throws Exception {
161                 CapabilityDataDefinition testSubject;
162                 String result;
163
164                 // default test
165                 testSubject = createTestSubject();
166                 result = testSubject.getUniqueId();
167         }
168
169         
170         @Test
171         public void testSetUniqueId() throws Exception {
172                 CapabilityDataDefinition testSubject;
173                 String uniqueId = "";
174
175                 // default test
176                 testSubject = createTestSubject();
177                 testSubject.setUniqueId(uniqueId);
178         }
179
180         
181         @Test
182         public void testGetDescription() throws Exception {
183                 CapabilityDataDefinition testSubject;
184                 String result;
185
186                 // default test
187                 testSubject = createTestSubject();
188                 result = testSubject.getDescription();
189         }
190
191         
192         @Test
193         public void testSetDescription() throws Exception {
194                 CapabilityDataDefinition testSubject;
195                 String description = "";
196
197                 // default test
198                 testSubject = createTestSubject();
199                 testSubject.setDescription(description);
200         }
201
202         
203         @Test
204         public void testGetName() throws Exception {
205                 CapabilityDataDefinition testSubject;
206                 String result;
207
208                 // default test
209                 testSubject = createTestSubject();
210                 result = testSubject.getName();
211         }
212
213         
214         @Test
215         public void testSetName() throws Exception {
216                 CapabilityDataDefinition testSubject;
217                 String name = "";
218
219                 // default test
220                 testSubject = createTestSubject();
221                 testSubject.setName(name);
222         }
223
224         
225         @Test
226         public void testGetParentName() throws Exception {
227                 CapabilityDataDefinition testSubject;
228                 String result;
229
230                 // default test
231                 testSubject = createTestSubject();
232                 result = testSubject.getParentName();
233         }
234
235         
236         @Test
237         public void testSetParentName() throws Exception {
238                 CapabilityDataDefinition testSubject;
239                 String parentName = "";
240
241                 // default test
242                 testSubject = createTestSubject();
243                 testSubject.setParentName(parentName);
244         }
245
246         
247         @Test
248         public void testGetType() throws Exception {
249                 CapabilityDataDefinition testSubject;
250                 String result;
251
252                 // default test
253                 testSubject = createTestSubject();
254                 result = testSubject.getType();
255         }
256
257         
258         @Test
259         public void testSetType() throws Exception {
260                 CapabilityDataDefinition testSubject;
261                 String type = "";
262
263                 // default test
264                 testSubject = createTestSubject();
265                 testSubject.setType(type);
266         }
267
268         
269         @Test
270         public void testGetValidSourceTypes() throws Exception {
271                 CapabilityDataDefinition testSubject;
272                 List<String> result;
273
274                 // default test
275                 testSubject = createTestSubject();
276                 result = testSubject.getValidSourceTypes();
277         }
278
279         
280         @Test
281         public void testSetValidSourceTypes() throws Exception {
282                 CapabilityDataDefinition testSubject;
283                 List<String> validSourceTypes = null;
284
285                 // default test
286                 testSubject = createTestSubject();
287                 testSubject.setValidSourceTypes(validSourceTypes);
288         }
289
290         
291         @Test
292         public void testGetCapabilitySources() throws Exception {
293                 CapabilityDataDefinition testSubject;
294                 List<String> result;
295
296                 // default test
297                 testSubject = createTestSubject();
298                 result = testSubject.getCapabilitySources();
299         }
300
301         
302         @Test
303         public void testSetCapabilitySources() throws Exception {
304                 CapabilityDataDefinition testSubject;
305                 List<String> capabilitySources = null;
306
307                 // default test
308                 testSubject = createTestSubject();
309                 testSubject.setCapabilitySources(capabilitySources);
310         }
311
312         
313         @Test
314         public void testSetPath() throws Exception {
315                 CapabilityDataDefinition testSubject;
316                 List<String> path = null;
317
318                 // default test
319                 testSubject = createTestSubject();
320                 testSubject.setPath(path);
321         }
322
323         
324         @Test
325         public void testGetPath() throws Exception {
326                 CapabilityDataDefinition testSubject;
327                 List<String> result;
328
329                 // default test
330                 testSubject = createTestSubject();
331                 result = testSubject.getPath();
332         }
333
334         
335         @Test
336         public void testSetSource() throws Exception {
337                 CapabilityDataDefinition testSubject;
338                 String source = "";
339
340                 // default test
341                 testSubject = createTestSubject();
342                 testSubject.setSource(source);
343         }
344
345         
346         @Test
347         public void testGetSource() throws Exception {
348                 CapabilityDataDefinition testSubject;
349                 String result;
350
351                 // default test
352                 testSubject = createTestSubject();
353                 result = testSubject.getSource();
354         }
355
356         
357         @Test
358         public void testAddToPath() throws Exception {
359                 CapabilityDataDefinition testSubject;
360                 String elementInPath = "";
361
362                 // default test
363                 testSubject = createTestSubject();
364                 testSubject.addToPath(elementInPath);
365         }
366
367         
368         @Test
369         public void testHashCode() throws Exception {
370                 CapabilityDataDefinition testSubject;
371                 int result;
372
373                 // default test
374                 testSubject = createTestSubject();
375                 result = testSubject.hashCode();
376         }
377
378         
379         @Test
380         public void testEquals() throws Exception {
381                 CapabilityDataDefinition testSubject;
382                 Object obj = null;
383                 boolean result;
384
385                 // test 1
386                 testSubject = createTestSubject();
387                 obj = null;
388                 result = testSubject.equals(obj);
389                 Assert.assertEquals(false, result);
390                 result = testSubject.equals(testSubject);
391                 Assert.assertEquals(true, result);
392                 result = testSubject.equals(createTestSubject());
393                 Assert.assertEquals(true, result);
394         }
395
396         
397         @Test
398         public void testToString() throws Exception {
399                 CapabilityDataDefinition testSubject;
400                 String result;
401
402                 // default test
403                 testSubject = createTestSubject();
404                 result = testSubject.toString();
405         }
406 }