Added oparent to sdc main
[sdc.git] / catalog-model / src / test / java / org / openecomp / sdc / be / ui / model / UiComponentDataTransferTest.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.ui.model;
22
23 import java.util.List;
24 import java.util.Map;
25
26 import org.junit.Test;
27 import org.openecomp.sdc.be.datatypes.enums.ComponentTypeEnum;
28 import org.openecomp.sdc.be.model.AdditionalInformationDefinition;
29 import org.openecomp.sdc.be.model.ArtifactDefinition;
30 import org.openecomp.sdc.be.model.CapabilityDefinition;
31 import org.openecomp.sdc.be.model.ComponentInstance;
32 import org.openecomp.sdc.be.model.ComponentInstanceInput;
33 import org.openecomp.sdc.be.model.ComponentInstanceProperty;
34 import org.openecomp.sdc.be.model.GroupDefinition;
35 import org.openecomp.sdc.be.model.InputDefinition;
36 import org.openecomp.sdc.be.model.RequirementCapabilityRelDef;
37 import org.openecomp.sdc.be.model.RequirementDefinition;
38 import org.openecomp.sdc.be.model.category.CategoryDefinition;
39
40
41 public class UiComponentDataTransferTest {
42
43         private UiComponentDataTransfer createTestSubject() {
44                 return new UiComponentDataTransfer();
45         }
46
47         
48         @Test
49         public void testGetArtifacts() throws Exception {
50                 UiComponentDataTransfer testSubject;
51                 Map<String, ArtifactDefinition> result;
52
53                 // default test
54                 testSubject = createTestSubject();
55                 result = testSubject.getArtifacts();
56         }
57
58         
59         @Test
60         public void testSetArtifacts() throws Exception {
61                 UiComponentDataTransfer testSubject;
62                 Map<String, ArtifactDefinition> artifacts = null;
63
64                 // default test
65                 testSubject = createTestSubject();
66                 testSubject.setArtifacts(artifacts);
67         }
68
69         
70         @Test
71         public void testGetDeploymentArtifacts() throws Exception {
72                 UiComponentDataTransfer testSubject;
73                 Map<String, ArtifactDefinition> result;
74
75                 // default test
76                 testSubject = createTestSubject();
77                 result = testSubject.getDeploymentArtifacts();
78         }
79
80         
81         @Test
82         public void testSetDeploymentArtifacts() throws Exception {
83                 UiComponentDataTransfer testSubject;
84                 Map<String, ArtifactDefinition> deploymentArtifacts = null;
85
86                 // default test
87                 testSubject = createTestSubject();
88                 testSubject.setDeploymentArtifacts(deploymentArtifacts);
89         }
90
91         
92         @Test
93         public void testGetToscaArtifacts() throws Exception {
94                 UiComponentDataTransfer testSubject;
95                 Map<String, ArtifactDefinition> result;
96
97                 // default test
98                 testSubject = createTestSubject();
99                 result = testSubject.getToscaArtifacts();
100         }
101
102         
103         @Test
104         public void testSetToscaArtifacts() throws Exception {
105                 UiComponentDataTransfer testSubject;
106                 Map<String, ArtifactDefinition> toscaArtifacts = null;
107
108                 // default test
109                 testSubject = createTestSubject();
110                 testSubject.setToscaArtifacts(toscaArtifacts);
111         }
112
113         
114         @Test
115         public void testGetCategories() throws Exception {
116                 UiComponentDataTransfer testSubject;
117                 List<CategoryDefinition> result;
118
119                 // default test
120                 testSubject = createTestSubject();
121                 result = testSubject.getCategories();
122         }
123
124         
125         @Test
126         public void testSetCategories() throws Exception {
127                 UiComponentDataTransfer testSubject;
128                 List<CategoryDefinition> categories = null;
129
130                 // default test
131                 testSubject = createTestSubject();
132                 testSubject.setCategories(categories);
133         }
134
135         
136         @Test
137         public void testGetCreatorUserId() throws Exception {
138                 UiComponentDataTransfer testSubject;
139                 String result;
140
141                 // default test
142                 testSubject = createTestSubject();
143                 result = testSubject.getCreatorUserId();
144         }
145
146         
147         @Test
148         public void testSetCreatorUserId() throws Exception {
149                 UiComponentDataTransfer testSubject;
150                 String creatorUserId = "";
151
152                 // default test
153                 testSubject = createTestSubject();
154                 testSubject.setCreatorUserId(creatorUserId);
155         }
156
157         
158         @Test
159         public void testGetCreatorFullName() throws Exception {
160                 UiComponentDataTransfer testSubject;
161                 String result;
162
163                 // default test
164                 testSubject = createTestSubject();
165                 result = testSubject.getCreatorFullName();
166         }
167
168         
169         @Test
170         public void testSetCreatorFullName() throws Exception {
171                 UiComponentDataTransfer testSubject;
172                 String creatorFullName = "";
173
174                 // default test
175                 testSubject = createTestSubject();
176                 testSubject.setCreatorFullName(creatorFullName);
177         }
178
179         
180         @Test
181         public void testGetLastUpdaterUserId() throws Exception {
182                 UiComponentDataTransfer testSubject;
183                 String result;
184
185                 // default test
186                 testSubject = createTestSubject();
187                 result = testSubject.getLastUpdaterUserId();
188         }
189
190         
191         @Test
192         public void testSetLastUpdaterUserId() throws Exception {
193                 UiComponentDataTransfer testSubject;
194                 String lastUpdaterUserId = "";
195
196                 // default test
197                 testSubject = createTestSubject();
198                 testSubject.setLastUpdaterUserId(lastUpdaterUserId);
199         }
200
201         
202         @Test
203         public void testGetLastUpdaterFullName() throws Exception {
204                 UiComponentDataTransfer testSubject;
205                 String result;
206
207                 // default test
208                 testSubject = createTestSubject();
209                 result = testSubject.getLastUpdaterFullName();
210         }
211
212         
213         @Test
214         public void testSetLastUpdaterFullName() throws Exception {
215                 UiComponentDataTransfer testSubject;
216                 String lastUpdaterFullName = "";
217
218                 // default test
219                 testSubject = createTestSubject();
220                 testSubject.setLastUpdaterFullName(lastUpdaterFullName);
221         }
222
223         
224         @Test
225         public void testGetComponentType() throws Exception {
226                 UiComponentDataTransfer testSubject;
227                 ComponentTypeEnum result;
228
229                 // default test
230                 testSubject = createTestSubject();
231                 result = testSubject.getComponentType();
232         }
233
234         
235         @Test
236         public void testSetComponentType() throws Exception {
237                 UiComponentDataTransfer testSubject;
238                 ComponentTypeEnum componentType = null;
239
240                 // default test
241                 testSubject = createTestSubject();
242                 testSubject.setComponentType(componentType);
243         }
244
245         
246         @Test
247         public void testGetComponentInstances() throws Exception {
248                 UiComponentDataTransfer testSubject;
249                 List<ComponentInstance> result;
250
251                 // default test
252                 testSubject = createTestSubject();
253                 result = testSubject.getComponentInstances();
254         }
255
256         
257         @Test
258         public void testSetComponentInstances() throws Exception {
259                 UiComponentDataTransfer testSubject;
260                 List<ComponentInstance> componentInstances = null;
261
262                 // default test
263                 testSubject = createTestSubject();
264                 testSubject.setComponentInstances(componentInstances);
265         }
266
267         
268         @Test
269         public void testGetComponentInstancesRelations() throws Exception {
270                 UiComponentDataTransfer testSubject;
271                 List<RequirementCapabilityRelDef> result;
272
273                 // default test
274                 testSubject = createTestSubject();
275                 result = testSubject.getComponentInstancesRelations();
276         }
277
278         
279         @Test
280         public void testSetComponentInstancesRelations() throws Exception {
281                 UiComponentDataTransfer testSubject;
282                 List<RequirementCapabilityRelDef> componentInstancesRelations = null;
283
284                 // default test
285                 testSubject = createTestSubject();
286                 testSubject.setComponentInstancesRelations(componentInstancesRelations);
287         }
288
289         
290         @Test
291         public void testGetComponentInstancesInputs() throws Exception {
292                 UiComponentDataTransfer testSubject;
293                 Map<String, List<ComponentInstanceInput>> result;
294
295                 // default test
296                 testSubject = createTestSubject();
297                 result = testSubject.getComponentInstancesInputs();
298         }
299
300         
301         @Test
302         public void testSetComponentInstancesInputs() throws Exception {
303                 UiComponentDataTransfer testSubject;
304                 Map<String, List<ComponentInstanceInput>> componentInstancesInputs = null;
305
306                 // default test
307                 testSubject = createTestSubject();
308                 testSubject.setComponentInstancesInputs(componentInstancesInputs);
309         }
310
311         
312         @Test
313         public void testGetComponentInstancesProperties() throws Exception {
314                 UiComponentDataTransfer testSubject;
315                 Map<String, List<ComponentInstanceProperty>> result;
316
317                 // default test
318                 testSubject = createTestSubject();
319                 result = testSubject.getComponentInstancesProperties();
320         }
321
322         
323         @Test
324         public void testSetComponentInstancesProperties() throws Exception {
325                 UiComponentDataTransfer testSubject;
326                 Map<String, List<ComponentInstanceProperty>> componentInstancesProperties = null;
327
328                 // default test
329                 testSubject = createTestSubject();
330                 testSubject.setComponentInstancesProperties(componentInstancesProperties);
331         }
332
333         
334         @Test
335         public void testGetComponentInstancesAttributes() throws Exception {
336                 UiComponentDataTransfer testSubject;
337                 Map<String, List<ComponentInstanceProperty>> result;
338
339                 // default test
340                 testSubject = createTestSubject();
341                 result = testSubject.getComponentInstancesAttributes();
342         }
343
344         
345         @Test
346         public void testSetComponentInstancesAttributes() throws Exception {
347                 UiComponentDataTransfer testSubject;
348                 Map<String, List<ComponentInstanceProperty>> componentInstancesAttributes = null;
349
350                 // default test
351                 testSubject = createTestSubject();
352                 testSubject.setComponentInstancesAttributes(componentInstancesAttributes);
353         }
354
355         
356         @Test
357         public void testGetCapabilities() throws Exception {
358                 UiComponentDataTransfer testSubject;
359                 Map<String, List<CapabilityDefinition>> result;
360
361                 // default test
362                 testSubject = createTestSubject();
363                 result = testSubject.getCapabilities();
364         }
365
366         
367         @Test
368         public void testSetCapabilities() throws Exception {
369                 UiComponentDataTransfer testSubject;
370                 Map<String, List<CapabilityDefinition>> capabilities = null;
371
372                 // default test
373                 testSubject = createTestSubject();
374                 testSubject.setCapabilities(capabilities);
375         }
376
377         
378         @Test
379         public void testGetRequirements() throws Exception {
380                 UiComponentDataTransfer testSubject;
381                 Map<String, List<RequirementDefinition>> result;
382
383                 // default test
384                 testSubject = createTestSubject();
385                 result = testSubject.getRequirements();
386         }
387
388         
389         @Test
390         public void testSetRequirements() throws Exception {
391                 UiComponentDataTransfer testSubject;
392                 Map<String, List<RequirementDefinition>> requirements = null;
393
394                 // default test
395                 testSubject = createTestSubject();
396                 testSubject.setRequirements(requirements);
397         }
398
399         
400         @Test
401         public void testGetInputs() throws Exception {
402                 UiComponentDataTransfer testSubject;
403                 List<InputDefinition> result;
404
405                 // default test
406                 testSubject = createTestSubject();
407                 result = testSubject.getInputs();
408         }
409
410         
411         @Test
412         public void testSetInputs() throws Exception {
413                 UiComponentDataTransfer testSubject;
414                 List<InputDefinition> inputs = null;
415
416                 // default test
417                 testSubject = createTestSubject();
418                 testSubject.setInputs(inputs);
419         }
420
421         
422         @Test
423         public void testGetGroups() throws Exception {
424                 UiComponentDataTransfer testSubject;
425                 List<GroupDefinition> result;
426
427                 // default test
428                 testSubject = createTestSubject();
429                 result = testSubject.getGroups();
430         }
431
432         
433         @Test
434         public void testSetGroups() throws Exception {
435                 UiComponentDataTransfer testSubject;
436                 List<GroupDefinition> groups = null;
437
438                 // default test
439                 testSubject = createTestSubject();
440                 testSubject.setGroups(groups);
441         }
442
443         
444         @Test
445         public void testGetAdditionalInformation() throws Exception {
446                 UiComponentDataTransfer testSubject;
447                 List<AdditionalInformationDefinition> result;
448
449                 // default test
450                 testSubject = createTestSubject();
451                 result = testSubject.getAdditionalInformation();
452         }
453
454         
455         @Test
456         public void testSetAdditionalInformation() throws Exception {
457                 UiComponentDataTransfer testSubject;
458                 List<AdditionalInformationDefinition> additionalInformation = null;
459
460                 // default test
461                 testSubject = createTestSubject();
462                 testSubject.setAdditionalInformation(additionalInformation);
463         }
464 }