1 package org.openecomp.sdc.be.model.jsontitan.datamodel;
5 import javax.annotation.Generated;
8 import org.openecomp.sdc.be.datatypes.elements.ArtifactDataDefinition;
9 import org.openecomp.sdc.be.datatypes.elements.ComponentInstanceDataDefinition;
10 import org.openecomp.sdc.be.datatypes.elements.CompositionDataDefinition;
11 import org.openecomp.sdc.be.datatypes.elements.GroupDataDefinition;
12 import org.openecomp.sdc.be.datatypes.elements.MapArtifactDataDefinition;
13 import org.openecomp.sdc.be.datatypes.elements.MapCapabiltyProperty;
14 import org.openecomp.sdc.be.datatypes.elements.MapGroupsDataDefinition;
15 import org.openecomp.sdc.be.datatypes.elements.MapListCapabiltyDataDefinition;
16 import org.openecomp.sdc.be.datatypes.elements.MapListRequirementDataDefinition;
17 import org.openecomp.sdc.be.datatypes.elements.MapPropertiesDataDefinition;
18 import org.openecomp.sdc.be.datatypes.elements.PropertyDataDefinition;
19 import org.openecomp.sdc.be.datatypes.elements.RelationshipInstDataDefinition;
20 import org.openecomp.sdc.be.datatypes.tosca.ToscaDataDefinition;
23 public class TopologyTemplateTest {
25 private TopologyTemplate createTestSubject() {
26 return new TopologyTemplate();
31 public void testGetInputs() throws Exception {
32 TopologyTemplate testSubject;
33 Map<String, PropertyDataDefinition> result;
36 testSubject = createTestSubject();
37 result = testSubject.getInputs();
42 public void testSetInputs() throws Exception {
43 TopologyTemplate testSubject;
44 Map<String, PropertyDataDefinition> inputs = null;
47 testSubject = createTestSubject();
48 testSubject.setInputs(inputs);
53 public void testGetInstInputs() throws Exception {
54 TopologyTemplate testSubject;
55 Map<String, MapPropertiesDataDefinition> result;
58 testSubject = createTestSubject();
59 result = testSubject.getInstInputs();
64 public void testSetInstInputs() throws Exception {
65 TopologyTemplate testSubject;
66 Map<String, MapPropertiesDataDefinition> instInputs = null;
69 testSubject = createTestSubject();
70 testSubject.setInstInputs(instInputs);
75 public void testGetHeatParameters() throws Exception {
76 TopologyTemplate testSubject;
77 Map<String, ? extends ToscaDataDefinition> result;
80 testSubject = createTestSubject();
81 result = testSubject.getHeatParameters();
86 public void testSetHeatParameters() throws Exception {
87 TopologyTemplate testSubject;
88 Map<String, ? extends ToscaDataDefinition> heatParameters = null;
91 testSubject = createTestSubject();
92 testSubject.setHeatParameters(heatParameters);
97 public void testGetInstAttributes() throws Exception {
98 TopologyTemplate testSubject;
99 Map<String, MapPropertiesDataDefinition> result;
102 testSubject = createTestSubject();
103 result = testSubject.getInstAttributes();
108 public void testSetInstAttributes() throws Exception {
109 TopologyTemplate testSubject;
110 Map<String, MapPropertiesDataDefinition> instAttributes = null;
113 testSubject = createTestSubject();
114 testSubject.setInstAttributes(instAttributes);
119 public void testGetInstProperties() throws Exception {
120 TopologyTemplate testSubject;
121 Map<String, MapPropertiesDataDefinition> result;
124 testSubject = createTestSubject();
125 result = testSubject.getInstProperties();
130 public void testSetInstProperties() throws Exception {
131 TopologyTemplate testSubject;
132 Map<String, MapPropertiesDataDefinition> instProperties = null;
135 testSubject = createTestSubject();
136 testSubject.setInstProperties(instProperties);
141 public void testGetGroups() throws Exception {
142 TopologyTemplate testSubject;
143 Map<String, GroupDataDefinition> result;
146 testSubject = createTestSubject();
147 result = testSubject.getGroups();
152 public void testSetGroups() throws Exception {
153 TopologyTemplate testSubject;
154 Map<String, GroupDataDefinition> groups = null;
157 testSubject = createTestSubject();
158 testSubject.setGroups(groups);
163 public void testGetInstGroups() throws Exception {
164 TopologyTemplate testSubject;
165 Map<String, MapGroupsDataDefinition> result;
168 testSubject = createTestSubject();
169 result = testSubject.getInstGroups();
174 public void testSetInstGroups() throws Exception {
175 TopologyTemplate testSubject;
176 Map<String, MapGroupsDataDefinition> instGroups = null;
179 testSubject = createTestSubject();
180 testSubject.setInstGroups(instGroups);
185 public void testGetServiceApiArtifacts() throws Exception {
186 TopologyTemplate testSubject;
187 Map<String, ArtifactDataDefinition> result;
190 testSubject = createTestSubject();
191 result = testSubject.getServiceApiArtifacts();
196 public void testSetServiceApiArtifacts() throws Exception {
197 TopologyTemplate testSubject;
198 Map<String, ArtifactDataDefinition> serviceApiArtifacts = null;
201 testSubject = createTestSubject();
202 testSubject.setServiceApiArtifacts(serviceApiArtifacts);
207 public void testGetCompositions() throws Exception {
208 TopologyTemplate testSubject;
209 Map<String, CompositionDataDefinition> result;
212 testSubject = createTestSubject();
213 result = testSubject.getCompositions();
218 public void testSetCompositions() throws Exception {
219 TopologyTemplate testSubject;
220 Map<String, CompositionDataDefinition> compositions = null;
223 testSubject = createTestSubject();
224 testSubject.setCompositions(compositions);
229 public void testGetCalculatedCapabilities() throws Exception {
230 TopologyTemplate testSubject;
231 Map<String, MapListCapabiltyDataDefinition> result;
234 testSubject = createTestSubject();
235 result = testSubject.getCalculatedCapabilities();
240 public void testSetCalculatedCapabilities() throws Exception {
241 TopologyTemplate testSubject;
242 Map<String, MapListCapabiltyDataDefinition> calculatedCapabilities = null;
245 testSubject = createTestSubject();
246 testSubject.setCalculatedCapabilities(calculatedCapabilities);
251 public void testGetCalculatedRequirements() throws Exception {
252 TopologyTemplate testSubject;
253 Map<String, MapListRequirementDataDefinition> result;
256 testSubject = createTestSubject();
257 result = testSubject.getCalculatedRequirements();
262 public void testSetCalculatedRequirements() throws Exception {
263 TopologyTemplate testSubject;
264 Map<String, MapListRequirementDataDefinition> calculatedRequirements = null;
267 testSubject = createTestSubject();
268 testSubject.setCalculatedRequirements(calculatedRequirements);
273 public void testGetFullfilledCapabilities() throws Exception {
274 TopologyTemplate testSubject;
275 Map<String, MapListCapabiltyDataDefinition> result;
278 testSubject = createTestSubject();
279 result = testSubject.getFullfilledCapabilities();
284 public void testSetFullfilledCapabilities() throws Exception {
285 TopologyTemplate testSubject;
286 Map<String, MapListCapabiltyDataDefinition> fullfilledCapabilities = null;
289 testSubject = createTestSubject();
290 testSubject.setFullfilledCapabilities(fullfilledCapabilities);
295 public void testGetFullfilledRequirements() throws Exception {
296 TopologyTemplate testSubject;
297 Map<String, MapListRequirementDataDefinition> result;
300 testSubject = createTestSubject();
301 result = testSubject.getFullfilledRequirements();
306 public void testSetFullfilledRequirements() throws Exception {
307 TopologyTemplate testSubject;
308 Map<String, MapListRequirementDataDefinition> fullfilledRequirements = null;
311 testSubject = createTestSubject();
312 testSubject.setFullfilledRequirements(fullfilledRequirements);
317 public void testGetInstDeploymentArtifacts() throws Exception {
318 TopologyTemplate testSubject;
319 Map<String, MapArtifactDataDefinition> result;
322 testSubject = createTestSubject();
323 result = testSubject.getInstDeploymentArtifacts();
328 public void testSetInstDeploymentArtifacts() throws Exception {
329 TopologyTemplate testSubject;
330 Map<String, MapArtifactDataDefinition> instDeploymentArtifacts = null;
333 testSubject = createTestSubject();
334 testSubject.setInstDeploymentArtifacts(instDeploymentArtifacts);
339 public void testGetCalculatedCapabilitiesProperties() throws Exception {
340 TopologyTemplate testSubject;
341 Map<String, MapCapabiltyProperty> result;
344 testSubject = createTestSubject();
345 result = testSubject.getCalculatedCapabilitiesProperties();
350 public void testSetCalculatedCapabilitiesProperties() throws Exception {
351 TopologyTemplate testSubject;
352 Map<String, MapCapabiltyProperty> calculatedCapabilitiesProperties = null;
355 testSubject = createTestSubject();
356 testSubject.setCalculatedCapabilitiesProperties(calculatedCapabilitiesProperties);
361 public void testGetInstanceArtifacts() throws Exception {
362 TopologyTemplate testSubject;
363 Map<String, MapArtifactDataDefinition> result;
366 testSubject = createTestSubject();
367 result = testSubject.getInstanceArtifacts();
372 public void testSetInstanceArtifacts() throws Exception {
373 TopologyTemplate testSubject;
374 Map<String, MapArtifactDataDefinition> instanceArtifacts = null;
377 testSubject = createTestSubject();
378 testSubject.setInstanceArtifacts(instanceArtifacts);
386 public void testGetComponentInstances() throws Exception {
387 TopologyTemplate testSubject;
388 Map<String, ComponentInstanceDataDefinition> result;
391 testSubject = createTestSubject();
392 result = testSubject.getComponentInstances();
397 public void testSetComponentInstances() throws Exception {
398 TopologyTemplate testSubject;
399 Map<String, ComponentInstanceDataDefinition> instances = null;
402 testSubject = createTestSubject();
403 testSubject.setComponentInstances(instances);
408 public void testGetRelations() throws Exception {
409 TopologyTemplate testSubject;
410 Map<String, RelationshipInstDataDefinition> result;
413 testSubject = createTestSubject();
414 result = testSubject.getRelations();