new unit tests for sdc-dao
[sdc.git] / catalog-model / src / test / java / org / openecomp / sdc / be / model / ComponentParametersViewTest.java
1 package org.openecomp.sdc.be.model;
2
3 import java.util.LinkedList;
4
5 import org.junit.Test;
6 import org.openecomp.sdc.be.dao.jsongraph.types.JsonParseFlagEnum;
7 import org.openecomp.sdc.be.datatypes.enums.ComponentFieldsEnum;
8 import org.openecomp.sdc.be.datatypes.enums.ComponentTypeEnum;
9
10 public class ComponentParametersViewTest {
11
12         private ComponentParametersView createTestSubject() {
13                 return new ComponentParametersView();
14         }
15
16         @Test
17         public void testCtor() throws Exception {
18                 new ComponentParametersView(true);
19                 
20                 LinkedList<String> linkedList = new LinkedList<>();
21                 for (ComponentFieldsEnum iterable_element : ComponentFieldsEnum.values()) {
22                         linkedList.add(iterable_element.getValue());
23                 }
24                 new ComponentParametersView(linkedList);
25         }
26         
27         @Test
28         public void testFilter() throws Exception {
29                 ComponentParametersView testSubject;
30                 Component component = null;
31                 ComponentTypeEnum componentType = ComponentTypeEnum.RESOURCE;
32                 Component result;
33
34                 // default test
35                 testSubject = createTestSubject();
36                 result = testSubject.filter(component, componentType);
37                 testSubject.disableAll();
38                 result = testSubject.filter(new Resource(), componentType);
39         }
40
41         
42         @Test
43         public void testDisableAll() throws Exception {
44                 ComponentParametersView testSubject;
45
46                 // default test
47                 testSubject = createTestSubject();
48                 testSubject.disableAll();
49         }
50
51         
52         @Test
53         public void testIsIgnoreGroups() throws Exception {
54                 ComponentParametersView testSubject;
55                 boolean result;
56
57                 // default test
58                 testSubject = createTestSubject();
59                 result = testSubject.isIgnoreGroups();
60         }
61
62         
63         @Test
64         public void testSetIgnoreGroups() throws Exception {
65                 ComponentParametersView testSubject;
66                 boolean ignoreGroups = false;
67
68                 // default test
69                 testSubject = createTestSubject();
70                 testSubject.setIgnoreGroups(ignoreGroups);
71         }
72
73         
74         @Test
75         public void testIsIgnoreComponentInstances() throws Exception {
76                 ComponentParametersView testSubject;
77                 boolean result;
78
79                 // default test
80                 testSubject = createTestSubject();
81                 result = testSubject.isIgnoreComponentInstances();
82         }
83
84         
85         @Test
86         public void testSetIgnoreComponentInstances() throws Exception {
87                 ComponentParametersView testSubject;
88                 boolean ignoreComponentInstances = false;
89
90                 // default test
91                 testSubject = createTestSubject();
92                 testSubject.setIgnoreComponentInstances(ignoreComponentInstances);
93         }
94
95         
96         @Test
97         public void testIsIgnoreProperties() throws Exception {
98                 ComponentParametersView testSubject;
99                 boolean result;
100
101                 // default test
102                 testSubject = createTestSubject();
103                 result = testSubject.isIgnoreProperties();
104         }
105
106         
107         @Test
108         public void testSetIgnoreProperties() throws Exception {
109                 ComponentParametersView testSubject;
110                 boolean ignoreProperties = false;
111
112                 // default test
113                 testSubject = createTestSubject();
114                 testSubject.setIgnoreProperties(ignoreProperties);
115         }
116
117         
118         @Test
119         public void testIsIgnoreCapabilities() throws Exception {
120                 ComponentParametersView testSubject;
121                 boolean result;
122
123                 // default test
124                 testSubject = createTestSubject();
125                 result = testSubject.isIgnoreCapabilities();
126         }
127
128         
129         @Test
130         public void testSetIgnoreCapabilities() throws Exception {
131                 ComponentParametersView testSubject;
132                 boolean ignoreCapabilities = false;
133
134                 // default test
135                 testSubject = createTestSubject();
136                 testSubject.setIgnoreCapabilities(ignoreCapabilities);
137         }
138
139         
140         @Test
141         public void testIsIgnoreRequirements() throws Exception {
142                 ComponentParametersView testSubject;
143                 boolean result;
144
145                 // default test
146                 testSubject = createTestSubject();
147                 result = testSubject.isIgnoreRequirements();
148         }
149
150         
151         @Test
152         public void testSetIgnoreRequirements() throws Exception {
153                 ComponentParametersView testSubject;
154                 boolean ignoreRequirements = false;
155
156                 // default test
157                 testSubject = createTestSubject();
158                 testSubject.setIgnoreRequirements(ignoreRequirements);
159         }
160
161         
162         @Test
163         public void testIsIgnoreCategories() throws Exception {
164                 ComponentParametersView testSubject;
165                 boolean result;
166
167                 // default test
168                 testSubject = createTestSubject();
169                 result = testSubject.isIgnoreCategories();
170         }
171
172         
173         @Test
174         public void testSetIgnoreCategories() throws Exception {
175                 ComponentParametersView testSubject;
176                 boolean ignoreCategories = false;
177
178                 // default test
179                 testSubject = createTestSubject();
180                 testSubject.setIgnoreCategories(ignoreCategories);
181         }
182
183         
184         @Test
185         public void testIsIgnoreAllVersions() throws Exception {
186                 ComponentParametersView testSubject;
187                 boolean result;
188
189                 // default test
190                 testSubject = createTestSubject();
191                 result = testSubject.isIgnoreAllVersions();
192         }
193
194         
195         @Test
196         public void testSetIgnoreAllVersions() throws Exception {
197                 ComponentParametersView testSubject;
198                 boolean ignoreAllVersions = false;
199
200                 // default test
201                 testSubject = createTestSubject();
202                 testSubject.setIgnoreAllVersions(ignoreAllVersions);
203         }
204
205         
206         @Test
207         public void testIsIgnoreAdditionalInformation() throws Exception {
208                 ComponentParametersView testSubject;
209                 boolean result;
210
211                 // default test
212                 testSubject = createTestSubject();
213                 result = testSubject.isIgnoreAdditionalInformation();
214         }
215
216         
217         @Test
218         public void testSetIgnoreAdditionalInformation() throws Exception {
219                 ComponentParametersView testSubject;
220                 boolean ignoreAdditionalInformation = false;
221
222                 // default test
223                 testSubject = createTestSubject();
224                 testSubject.setIgnoreAdditionalInformation(ignoreAdditionalInformation);
225         }
226
227         
228         @Test
229         public void testIsIgnoreArtifacts() throws Exception {
230                 ComponentParametersView testSubject;
231                 boolean result;
232
233                 // default test
234                 testSubject = createTestSubject();
235                 result = testSubject.isIgnoreArtifacts();
236         }
237
238         
239         @Test
240         public void testSetIgnoreArtifacts() throws Exception {
241                 ComponentParametersView testSubject;
242                 boolean ignoreArtifacts = false;
243
244                 // default test
245                 testSubject = createTestSubject();
246                 testSubject.setIgnoreArtifacts(ignoreArtifacts);
247         }
248
249         
250         @Test
251         public void testIsIgnoreComponentInstancesProperties() throws Exception {
252                 ComponentParametersView testSubject;
253                 boolean result;
254
255                 // default test
256                 testSubject = createTestSubject();
257                 result = testSubject.isIgnoreComponentInstancesProperties();
258         }
259
260         
261         @Test
262         public void testSetIgnoreComponentInstancesProperties() throws Exception {
263                 ComponentParametersView testSubject;
264                 boolean ignoreComponentInstancesProperties = false;
265
266                 // default test
267                 testSubject = createTestSubject();
268                 testSubject.setIgnoreComponentInstancesProperties(ignoreComponentInstancesProperties);
269         }
270
271         
272         @Test
273         public void testIsIgnoreComponentInstancesInputs() throws Exception {
274                 ComponentParametersView testSubject;
275                 boolean result;
276
277                 // default test
278                 testSubject = createTestSubject();
279                 result = testSubject.isIgnoreComponentInstancesInputs();
280         }
281
282         
283         @Test
284         public void testSetIgnoreComponentInstancesInputs() throws Exception {
285                 ComponentParametersView testSubject;
286                 boolean ignoreComponentInstancesInputs = false;
287
288                 // default test
289                 testSubject = createTestSubject();
290                 testSubject.setIgnoreComponentInstancesInputs(ignoreComponentInstancesInputs);
291         }
292
293         
294         @Test
295         public void testIsIgnoreInterfaces() throws Exception {
296                 ComponentParametersView testSubject;
297                 boolean result;
298
299                 // default test
300                 testSubject = createTestSubject();
301                 result = testSubject.isIgnoreInterfaces();
302         }
303
304         
305         @Test
306         public void testSetIgnoreInterfaces() throws Exception {
307                 ComponentParametersView testSubject;
308                 boolean ignoreInterfaces = false;
309
310                 // default test
311                 testSubject = createTestSubject();
312                 testSubject.setIgnoreInterfaces(ignoreInterfaces);
313         }
314
315         
316         @Test
317         public void testIsIgnoreAttributesFrom() throws Exception {
318                 ComponentParametersView testSubject;
319                 boolean result;
320
321                 // default test
322                 testSubject = createTestSubject();
323                 result = testSubject.isIgnoreAttributesFrom();
324         }
325
326         
327         @Test
328         public void testSetIgnoreAttributesFrom() throws Exception {
329                 ComponentParametersView testSubject;
330                 boolean ignoreAttributesFrom = false;
331
332                 // default test
333                 testSubject = createTestSubject();
334                 testSubject.setIgnoreAttributesFrom(ignoreAttributesFrom);
335         }
336
337         
338         @Test
339         public void testIsIgnoreComponentInstancesAttributesFrom() throws Exception {
340                 ComponentParametersView testSubject;
341                 boolean result;
342
343                 // default test
344                 testSubject = createTestSubject();
345                 result = testSubject.isIgnoreComponentInstancesAttributesFrom();
346         }
347
348         
349         @Test
350         public void testSetIgnoreComponentInstancesAttributesFrom() throws Exception {
351                 ComponentParametersView testSubject;
352                 boolean ignoreComponentInstancesAttributesFrom = false;
353
354                 // default test
355                 testSubject = createTestSubject();
356                 testSubject.setIgnoreComponentInstancesAttributesFrom(ignoreComponentInstancesAttributesFrom);
357         }
358
359         
360         @Test
361         public void testIsIgnoreDerivedFrom() throws Exception {
362                 ComponentParametersView testSubject;
363                 boolean result;
364
365                 // default test
366                 testSubject = createTestSubject();
367                 result = testSubject.isIgnoreDerivedFrom();
368         }
369
370         
371         @Test
372         public void testSetIgnoreDerivedFrom() throws Exception {
373                 ComponentParametersView testSubject;
374                 boolean ignoreDerivedFrom = false;
375
376                 // default test
377                 testSubject = createTestSubject();
378                 testSubject.setIgnoreDerivedFrom(ignoreDerivedFrom);
379         }
380
381         
382         @Test
383         public void testIsIgnoreUsers() throws Exception {
384                 ComponentParametersView testSubject;
385                 boolean result;
386
387                 // default test
388                 testSubject = createTestSubject();
389                 result = testSubject.isIgnoreUsers();
390         }
391
392         
393         @Test
394         public void testSetIgnoreUsers() throws Exception {
395                 ComponentParametersView testSubject;
396                 boolean ignoreUsers = false;
397
398                 // default test
399                 testSubject = createTestSubject();
400                 testSubject.setIgnoreUsers(ignoreUsers);
401         }
402
403         
404         @Test
405         public void testIsIgnoreInputs() throws Exception {
406                 ComponentParametersView testSubject;
407                 boolean result;
408
409                 // default test
410                 testSubject = createTestSubject();
411                 result = testSubject.isIgnoreInputs();
412         }
413
414         
415         @Test
416         public void testSetIgnoreInputs() throws Exception {
417                 ComponentParametersView testSubject;
418                 boolean ignoreInputs = false;
419
420                 // default test
421                 testSubject = createTestSubject();
422                 testSubject.setIgnoreInputs(ignoreInputs);
423         }
424
425         
426         @Test
427         public void testIsIgnoreCapabiltyProperties() throws Exception {
428                 ComponentParametersView testSubject;
429                 boolean result;
430
431                 // default test
432                 testSubject = createTestSubject();
433                 result = testSubject.isIgnoreCapabiltyProperties();
434         }
435
436         
437         @Test
438         public void testSetIgnoreCapabiltyProperties() throws Exception {
439                 ComponentParametersView testSubject;
440                 boolean ignoreCapabiltyProperties = false;
441
442                 // default test
443                 testSubject = createTestSubject();
444                 testSubject.setIgnoreCapabiltyProperties(ignoreCapabiltyProperties);
445         }
446
447         
448         @Test
449         public void testIsIgnoreForwardingPath() throws Exception {
450                 ComponentParametersView testSubject;
451                 boolean result;
452
453                 // default test
454                 testSubject = createTestSubject();
455                 result = testSubject.isIgnoreForwardingPath();
456         }
457
458         
459         @Test
460         public void testSetIgnoreForwardingPath() throws Exception {
461                 ComponentParametersView testSubject;
462                 boolean ignoreServicePath = false;
463
464                 // default test
465                 testSubject = createTestSubject();
466                 testSubject.setIgnoreForwardingPath(ignoreServicePath);
467         }
468
469         
470         @Test
471         public void testIsIgnorePolicies() throws Exception {
472                 ComponentParametersView testSubject;
473                 boolean result;
474
475                 // default test
476                 testSubject = createTestSubject();
477                 result = testSubject.isIgnorePolicies();
478         }
479
480         
481         @Test
482         public void testSetIgnorePolicies() throws Exception {
483                 ComponentParametersView testSubject;
484                 boolean ignorePolicies = false;
485
486                 // default test
487                 testSubject = createTestSubject();
488                 testSubject.setIgnorePolicies(ignorePolicies);
489         }
490
491         
492         @Test
493         public void testDetectParseFlag() throws Exception {
494                 ComponentParametersView testSubject;
495                 JsonParseFlagEnum result;
496
497                 // default test
498                 testSubject = createTestSubject();
499                 result = testSubject.detectParseFlag();
500         }
501 }