re base code
[sdc.git] / catalog-model / src / test / java / org / openecomp / sdc / be / model / ComponentParametersViewTest.java
1 package org.openecomp.sdc.be.model;
2
3 import org.junit.Test;
4 import org.openecomp.sdc.be.dao.jsongraph.types.JsonParseFlagEnum;
5 import org.openecomp.sdc.be.datatypes.enums.ComponentFieldsEnum;
6 import org.openecomp.sdc.be.datatypes.enums.ComponentTypeEnum;
7
8 import java.util.LinkedList;
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 testIsIgnoreArtifacts() throws Exception {
219                 ComponentParametersView testSubject;
220                 boolean result;
221
222                 // default test
223                 testSubject = createTestSubject();
224                 result = testSubject.isIgnoreArtifacts();
225         }
226
227         
228         @Test
229         public void testSetIgnoreArtifacts() throws Exception {
230                 ComponentParametersView testSubject;
231                 boolean ignoreArtifacts = false;
232
233                 // default test
234                 testSubject = createTestSubject();
235                 testSubject.setIgnoreArtifacts(ignoreArtifacts);
236         }
237
238         
239         @Test
240         public void testIsIgnoreComponentInstancesProperties() throws Exception {
241                 ComponentParametersView testSubject;
242                 boolean result;
243
244                 // default test
245                 testSubject = createTestSubject();
246                 result = testSubject.isIgnoreComponentInstancesProperties();
247         }
248
249         
250         @Test
251         public void testSetIgnoreComponentInstancesProperties() throws Exception {
252                 ComponentParametersView testSubject;
253                 boolean ignoreComponentInstancesProperties = false;
254
255                 // default test
256                 testSubject = createTestSubject();
257                 testSubject.setIgnoreComponentInstancesProperties(ignoreComponentInstancesProperties);
258         }
259
260         
261         @Test
262         public void testIsIgnoreComponentInstancesInputs() throws Exception {
263                 ComponentParametersView testSubject;
264                 boolean result;
265
266                 // default test
267                 testSubject = createTestSubject();
268                 result = testSubject.isIgnoreComponentInstancesInputs();
269         }
270
271         
272         @Test
273         public void testSetIgnoreComponentInstancesInputs() throws Exception {
274                 ComponentParametersView testSubject;
275                 boolean ignoreComponentInstancesInputs = false;
276
277                 // default test
278                 testSubject = createTestSubject();
279                 testSubject.setIgnoreComponentInstancesInputs(ignoreComponentInstancesInputs);
280         }
281
282         
283         @Test
284         public void testIsIgnoreInterfaces() throws Exception {
285                 ComponentParametersView testSubject;
286                 boolean result;
287
288                 // default test
289                 testSubject = createTestSubject();
290                 result = testSubject.isIgnoreInterfaces();
291         }
292
293
294         
295         @Test
296         public void testIsIgnoreAttributesFrom() throws Exception {
297                 ComponentParametersView testSubject;
298                 boolean result;
299
300                 // default test
301                 testSubject = createTestSubject();
302                 result = testSubject.isIgnoreAttributesFrom();
303         }
304
305         
306         @Test
307         public void testSetIgnoreAttributesFrom() throws Exception {
308                 ComponentParametersView testSubject;
309                 boolean ignoreAttributesFrom = false;
310
311                 // default test
312                 testSubject = createTestSubject();
313                 testSubject.setIgnoreAttributesFrom(ignoreAttributesFrom);
314         }
315
316         
317         @Test
318         public void testIsIgnoreComponentInstancesAttributesFrom() throws Exception {
319                 ComponentParametersView testSubject;
320                 boolean result;
321
322                 // default test
323                 testSubject = createTestSubject();
324                 result = testSubject.isIgnoreComponentInstancesAttributesFrom();
325         }
326
327
328         
329         @Test
330         public void testIsIgnoreDerivedFrom() throws Exception {
331                 ComponentParametersView testSubject;
332                 boolean result;
333
334                 // default test
335                 testSubject = createTestSubject();
336                 result = testSubject.isIgnoreDerivedFrom();
337         }
338
339
340         
341         @Test
342         public void testIsIgnoreUsers() throws Exception {
343                 ComponentParametersView testSubject;
344                 boolean result;
345
346                 // default test
347                 testSubject = createTestSubject();
348                 result = testSubject.isIgnoreUsers();
349         }
350
351         
352         @Test
353         public void testSetIgnoreUsers() throws Exception {
354                 ComponentParametersView testSubject;
355                 boolean ignoreUsers = false;
356
357                 // default test
358                 testSubject = createTestSubject();
359                 testSubject.setIgnoreUsers(ignoreUsers);
360         }
361
362         
363         @Test
364         public void testIsIgnoreInputs() throws Exception {
365                 ComponentParametersView testSubject;
366                 boolean result;
367
368                 // default test
369                 testSubject = createTestSubject();
370                 result = testSubject.isIgnoreInputs();
371         }
372
373         
374         @Test
375         public void testSetIgnoreInputs() throws Exception {
376                 ComponentParametersView testSubject;
377                 boolean ignoreInputs = false;
378
379                 // default test
380                 testSubject = createTestSubject();
381                 testSubject.setIgnoreInputs(ignoreInputs);
382         }
383
384         
385         @Test
386         public void testIsIgnoreCapabiltyProperties() throws Exception {
387                 ComponentParametersView testSubject;
388                 boolean result;
389
390                 // default test
391                 testSubject = createTestSubject();
392                 result = testSubject.isIgnoreCapabiltyProperties();
393         }
394
395         
396         @Test
397         public void testSetIgnoreCapabiltyProperties() throws Exception {
398                 ComponentParametersView testSubject;
399                 boolean ignoreCapabiltyProperties = false;
400
401                 // default test
402                 testSubject = createTestSubject();
403                 testSubject.setIgnoreCapabiltyProperties(ignoreCapabiltyProperties);
404         }
405
406         
407         @Test
408         public void testIsIgnoreForwardingPath() throws Exception {
409                 ComponentParametersView testSubject;
410                 boolean result;
411
412                 // default test
413                 testSubject = createTestSubject();
414                 result = testSubject.isIgnoreForwardingPath();
415         }
416
417         
418         @Test
419         public void testSetIgnoreForwardingPath() throws Exception {
420                 ComponentParametersView testSubject;
421                 boolean ignoreServicePath = false;
422
423                 // default test
424                 testSubject = createTestSubject();
425                 testSubject.setIgnoreForwardingPath(ignoreServicePath);
426         }
427
428         
429         @Test
430         public void testIsIgnorePolicies() throws Exception {
431                 ComponentParametersView testSubject;
432                 boolean result;
433
434                 // default test
435                 testSubject = createTestSubject();
436                 result = testSubject.isIgnorePolicies();
437         }
438
439         
440         @Test
441         public void testSetIgnorePolicies() throws Exception {
442                 ComponentParametersView testSubject;
443                 boolean ignorePolicies = false;
444
445                 // default test
446                 testSubject = createTestSubject();
447                 testSubject.setIgnorePolicies(ignorePolicies);
448         }
449
450         
451         @Test
452         public void testDetectParseFlag() throws Exception {
453                 ComponentParametersView testSubject;
454                 JsonParseFlagEnum result;
455
456                 // default test
457                 testSubject = createTestSubject();
458                 result = testSubject.detectParseFlag();
459         }
460 }