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