Refactoring Consolidation Service
[sdc.git] / catalog-model / src / test / java / org / openecomp / sdc / be / model / jsontitan / datamodel / TopologyTemplateTest.java
1 package org.openecomp.sdc.be.model.jsontitan.datamodel;
2
3 import java.util.Map;
4
5 import org.junit.Test;
6 import org.openecomp.sdc.be.datatypes.elements.ArtifactDataDefinition;
7 import org.openecomp.sdc.be.datatypes.elements.ComponentInstanceDataDefinition;
8 import org.openecomp.sdc.be.datatypes.elements.CompositionDataDefinition;
9 import org.openecomp.sdc.be.datatypes.elements.GroupDataDefinition;
10 import org.openecomp.sdc.be.datatypes.elements.MapArtifactDataDefinition;
11 import org.openecomp.sdc.be.datatypes.elements.MapCapabiltyProperty;
12 import org.openecomp.sdc.be.datatypes.elements.MapGroupsDataDefinition;
13 import org.openecomp.sdc.be.datatypes.elements.MapListCapabiltyDataDefinition;
14 import org.openecomp.sdc.be.datatypes.elements.MapListRequirementDataDefinition;
15 import org.openecomp.sdc.be.datatypes.elements.MapPropertiesDataDefinition;
16 import org.openecomp.sdc.be.datatypes.elements.PropertyDataDefinition;
17 import org.openecomp.sdc.be.datatypes.elements.RelationshipInstDataDefinition;
18 import org.openecomp.sdc.be.datatypes.tosca.ToscaDataDefinition;
19
20
21 public class TopologyTemplateTest {
22
23         private TopologyTemplate createTestSubject() {
24                 return new TopologyTemplate();
25         }
26
27         
28         @Test
29         public void testGetInputs() throws Exception {
30                 TopologyTemplate testSubject;
31                 Map<String, PropertyDataDefinition> result;
32
33                 // default test
34                 testSubject = createTestSubject();
35                 result = testSubject.getInputs();
36         }
37
38         
39         @Test
40         public void testSetInputs() throws Exception {
41                 TopologyTemplate testSubject;
42                 Map<String, PropertyDataDefinition> inputs = null;
43
44                 // default test
45                 testSubject = createTestSubject();
46                 testSubject.setInputs(inputs);
47         }
48
49         
50         @Test
51         public void testGetInstInputs() throws Exception {
52                 TopologyTemplate testSubject;
53                 Map<String, MapPropertiesDataDefinition> result;
54
55                 // default test
56                 testSubject = createTestSubject();
57                 result = testSubject.getInstInputs();
58         }
59
60         
61         @Test
62         public void testSetInstInputs() throws Exception {
63                 TopologyTemplate testSubject;
64                 Map<String, MapPropertiesDataDefinition> instInputs = null;
65
66                 // default test
67                 testSubject = createTestSubject();
68                 testSubject.setInstInputs(instInputs);
69         }
70
71         
72         @Test
73         public void testGetHeatParameters() throws Exception {
74                 TopologyTemplate testSubject;
75                 Map<String, ? extends ToscaDataDefinition> result;
76
77                 // default test
78                 testSubject = createTestSubject();
79                 result = testSubject.getHeatParameters();
80         }
81
82         
83         @Test
84         public void testSetHeatParameters() throws Exception {
85                 TopologyTemplate testSubject;
86                 Map<String, ? extends ToscaDataDefinition> heatParameters = null;
87
88                 // default test
89                 testSubject = createTestSubject();
90                 testSubject.setHeatParameters(heatParameters);
91         }
92
93         
94         @Test
95         public void testGetInstAttributes() throws Exception {
96                 TopologyTemplate testSubject;
97                 Map<String, MapPropertiesDataDefinition> result;
98
99                 // default test
100                 testSubject = createTestSubject();
101                 result = testSubject.getInstAttributes();
102         }
103
104         
105         @Test
106         public void testSetInstAttributes() throws Exception {
107                 TopologyTemplate testSubject;
108                 Map<String, MapPropertiesDataDefinition> instAttributes = null;
109
110                 // default test
111                 testSubject = createTestSubject();
112                 testSubject.setInstAttributes(instAttributes);
113         }
114
115         
116         @Test
117         public void testGetInstProperties() throws Exception {
118                 TopologyTemplate testSubject;
119                 Map<String, MapPropertiesDataDefinition> result;
120
121                 // default test
122                 testSubject = createTestSubject();
123                 result = testSubject.getInstProperties();
124         }
125
126         
127         @Test
128         public void testSetInstProperties() throws Exception {
129                 TopologyTemplate testSubject;
130                 Map<String, MapPropertiesDataDefinition> instProperties = null;
131
132                 // default test
133                 testSubject = createTestSubject();
134                 testSubject.setInstProperties(instProperties);
135         }
136
137         
138         @Test
139         public void testGetGroups() throws Exception {
140                 TopologyTemplate testSubject;
141                 Map<String, GroupDataDefinition> result;
142
143                 // default test
144                 testSubject = createTestSubject();
145                 result = testSubject.getGroups();
146         }
147
148         
149         @Test
150         public void testSetGroups() throws Exception {
151                 TopologyTemplate testSubject;
152                 Map<String, GroupDataDefinition> groups = null;
153
154                 // default test
155                 testSubject = createTestSubject();
156                 testSubject.setGroups(groups);
157         }
158
159         
160         @Test
161         public void testGetInstGroups() throws Exception {
162                 TopologyTemplate testSubject;
163                 Map<String, MapGroupsDataDefinition> result;
164
165                 // default test
166                 testSubject = createTestSubject();
167                 result = testSubject.getInstGroups();
168         }
169
170         
171         @Test
172         public void testSetInstGroups() throws Exception {
173                 TopologyTemplate testSubject;
174                 Map<String, MapGroupsDataDefinition> instGroups = null;
175
176                 // default test
177                 testSubject = createTestSubject();
178                 testSubject.setInstGroups(instGroups);
179         }
180
181         
182         @Test
183         public void testGetServiceApiArtifacts() throws Exception {
184                 TopologyTemplate testSubject;
185                 Map<String, ArtifactDataDefinition> result;
186
187                 // default test
188                 testSubject = createTestSubject();
189                 result = testSubject.getServiceApiArtifacts();
190         }
191
192         
193         @Test
194         public void testSetServiceApiArtifacts() throws Exception {
195                 TopologyTemplate testSubject;
196                 Map<String, ArtifactDataDefinition> serviceApiArtifacts = null;
197
198                 // default test
199                 testSubject = createTestSubject();
200                 testSubject.setServiceApiArtifacts(serviceApiArtifacts);
201         }
202
203         
204         @Test
205         public void testGetCompositions() throws Exception {
206                 TopologyTemplate testSubject;
207                 Map<String, CompositionDataDefinition> result;
208
209                 // default test
210                 testSubject = createTestSubject();
211                 result = testSubject.getCompositions();
212         }
213
214         
215         @Test
216         public void testSetCompositions() throws Exception {
217                 TopologyTemplate testSubject;
218                 Map<String, CompositionDataDefinition> compositions = null;
219
220                 // default test
221                 testSubject = createTestSubject();
222                 testSubject.setCompositions(compositions);
223         }
224
225         
226         @Test
227         public void testGetCalculatedCapabilities() throws Exception {
228                 TopologyTemplate testSubject;
229                 Map<String, MapListCapabiltyDataDefinition> result;
230
231                 // default test
232                 testSubject = createTestSubject();
233                 result = testSubject.getCalculatedCapabilities();
234         }
235
236         
237         @Test
238         public void testSetCalculatedCapabilities() throws Exception {
239                 TopologyTemplate testSubject;
240                 Map<String, MapListCapabiltyDataDefinition> calculatedCapabilities = null;
241
242                 // default test
243                 testSubject = createTestSubject();
244                 testSubject.setCalculatedCapabilities(calculatedCapabilities);
245         }
246
247         
248         @Test
249         public void testGetCalculatedRequirements() throws Exception {
250                 TopologyTemplate testSubject;
251                 Map<String, MapListRequirementDataDefinition> result;
252
253                 // default test
254                 testSubject = createTestSubject();
255                 result = testSubject.getCalculatedRequirements();
256         }
257
258         
259         @Test
260         public void testSetCalculatedRequirements() throws Exception {
261                 TopologyTemplate testSubject;
262                 Map<String, MapListRequirementDataDefinition> calculatedRequirements = null;
263
264                 // default test
265                 testSubject = createTestSubject();
266                 testSubject.setCalculatedRequirements(calculatedRequirements);
267         }
268
269         
270         @Test
271         public void testGetFullfilledCapabilities() throws Exception {
272                 TopologyTemplate testSubject;
273                 Map<String, MapListCapabiltyDataDefinition> result;
274
275                 // default test
276                 testSubject = createTestSubject();
277                 result = testSubject.getFullfilledCapabilities();
278         }
279
280         
281         @Test
282         public void testSetFullfilledCapabilities() throws Exception {
283                 TopologyTemplate testSubject;
284                 Map<String, MapListCapabiltyDataDefinition> fullfilledCapabilities = null;
285
286                 // default test
287                 testSubject = createTestSubject();
288                 testSubject.setFullfilledCapabilities(fullfilledCapabilities);
289         }
290
291         
292         @Test
293         public void testGetFullfilledRequirements() throws Exception {
294                 TopologyTemplate testSubject;
295                 Map<String, MapListRequirementDataDefinition> result;
296
297                 // default test
298                 testSubject = createTestSubject();
299                 result = testSubject.getFullfilledRequirements();
300         }
301
302         
303         @Test
304         public void testSetFullfilledRequirements() throws Exception {
305                 TopologyTemplate testSubject;
306                 Map<String, MapListRequirementDataDefinition> fullfilledRequirements = null;
307
308                 // default test
309                 testSubject = createTestSubject();
310                 testSubject.setFullfilledRequirements(fullfilledRequirements);
311         }
312
313         
314         @Test
315         public void testGetInstDeploymentArtifacts() throws Exception {
316                 TopologyTemplate testSubject;
317                 Map<String, MapArtifactDataDefinition> result;
318
319                 // default test
320                 testSubject = createTestSubject();
321                 result = testSubject.getInstDeploymentArtifacts();
322         }
323
324         
325         @Test
326         public void testSetInstDeploymentArtifacts() throws Exception {
327                 TopologyTemplate testSubject;
328                 Map<String, MapArtifactDataDefinition> instDeploymentArtifacts = null;
329
330                 // default test
331                 testSubject = createTestSubject();
332                 testSubject.setInstDeploymentArtifacts(instDeploymentArtifacts);
333         }
334
335         
336         @Test
337         public void testGetCalculatedCapabilitiesProperties() throws Exception {
338                 TopologyTemplate testSubject;
339                 Map<String, MapCapabiltyProperty> result;
340
341                 // default test
342                 testSubject = createTestSubject();
343                 result = testSubject.getCalculatedCapabilitiesProperties();
344         }
345
346         
347         @Test
348         public void testSetCalculatedCapabilitiesProperties() throws Exception {
349                 TopologyTemplate testSubject;
350                 Map<String, MapCapabiltyProperty> calculatedCapabilitiesProperties = null;
351
352                 // default test
353                 testSubject = createTestSubject();
354                 testSubject.setCalculatedCapabilitiesProperties(calculatedCapabilitiesProperties);
355         }
356
357         
358         @Test
359         public void testGetInstanceArtifacts() throws Exception {
360                 TopologyTemplate testSubject;
361                 Map<String, MapArtifactDataDefinition> result;
362
363                 // default test
364                 testSubject = createTestSubject();
365                 result = testSubject.getInstanceArtifacts();
366         }
367
368         
369         @Test
370         public void testSetInstanceArtifacts() throws Exception {
371                 TopologyTemplate testSubject;
372                 Map<String, MapArtifactDataDefinition> instanceArtifacts = null;
373
374                 // default test
375                 testSubject = createTestSubject();
376                 testSubject.setInstanceArtifacts(instanceArtifacts);
377         }
378
379         
380
381
382         
383         @Test
384         public void testGetComponentInstances() throws Exception {
385                 TopologyTemplate testSubject;
386                 Map<String, ComponentInstanceDataDefinition> result;
387
388                 // default test
389                 testSubject = createTestSubject();
390                 result = testSubject.getComponentInstances();
391         }
392
393         
394         @Test
395         public void testSetComponentInstances() throws Exception {
396                 TopologyTemplate testSubject;
397                 Map<String, ComponentInstanceDataDefinition> instances = null;
398
399                 // default test
400                 testSubject = createTestSubject();
401                 testSubject.setComponentInstances(instances);
402         }
403
404         
405         @Test
406         public void testGetRelations() throws Exception {
407                 TopologyTemplate testSubject;
408                 Map<String, RelationshipInstDataDefinition> result;
409
410                 // default test
411                 testSubject = createTestSubject();
412                 result = testSubject.getRelations();
413         }
414 }