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