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