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