1 package org.openecomp.sdc.be.model.jsontitan.datamodel;
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;
21 public class TopologyTemplateTest {
23 private TopologyTemplate createTestSubject() {
24 return new TopologyTemplate();
29 public void testGetInputs() throws Exception {
30 TopologyTemplate testSubject;
31 Map<String, PropertyDataDefinition> result;
34 testSubject = createTestSubject();
35 result = testSubject.getInputs();
40 public void testSetInputs() throws Exception {
41 TopologyTemplate testSubject;
42 Map<String, PropertyDataDefinition> inputs = null;
45 testSubject = createTestSubject();
46 testSubject.setInputs(inputs);
51 public void testGetInstInputs() throws Exception {
52 TopologyTemplate testSubject;
53 Map<String, MapPropertiesDataDefinition> result;
56 testSubject = createTestSubject();
57 result = testSubject.getInstInputs();
62 public void testSetInstInputs() throws Exception {
63 TopologyTemplate testSubject;
64 Map<String, MapPropertiesDataDefinition> instInputs = null;
67 testSubject = createTestSubject();
68 testSubject.setInstInputs(instInputs);
73 public void testGetHeatParameters() throws Exception {
74 TopologyTemplate testSubject;
75 Map<String, ? extends ToscaDataDefinition> result;
78 testSubject = createTestSubject();
79 result = testSubject.getHeatParameters();
84 public void testSetHeatParameters() throws Exception {
85 TopologyTemplate testSubject;
86 Map<String, ? extends ToscaDataDefinition> heatParameters = null;
89 testSubject = createTestSubject();
90 testSubject.setHeatParameters(heatParameters);
95 public void testGetInstAttributes() throws Exception {
96 TopologyTemplate testSubject;
97 Map<String, MapPropertiesDataDefinition> result;
100 testSubject = createTestSubject();
101 result = testSubject.getInstAttributes();
106 public void testSetInstAttributes() throws Exception {
107 TopologyTemplate testSubject;
108 Map<String, MapPropertiesDataDefinition> instAttributes = null;
111 testSubject = createTestSubject();
112 testSubject.setInstAttributes(instAttributes);
117 public void testGetInstProperties() throws Exception {
118 TopologyTemplate testSubject;
119 Map<String, MapPropertiesDataDefinition> result;
122 testSubject = createTestSubject();
123 result = testSubject.getInstProperties();
128 public void testSetInstProperties() throws Exception {
129 TopologyTemplate testSubject;
130 Map<String, MapPropertiesDataDefinition> instProperties = null;
133 testSubject = createTestSubject();
134 testSubject.setInstProperties(instProperties);
139 public void testGetGroups() throws Exception {
140 TopologyTemplate testSubject;
141 Map<String, GroupDataDefinition> result;
144 testSubject = createTestSubject();
145 result = testSubject.getGroups();
150 public void testSetGroups() throws Exception {
151 TopologyTemplate testSubject;
152 Map<String, GroupDataDefinition> groups = null;
155 testSubject = createTestSubject();
156 testSubject.setGroups(groups);
161 public void testGetInstGroups() throws Exception {
162 TopologyTemplate testSubject;
163 Map<String, MapGroupsDataDefinition> result;
166 testSubject = createTestSubject();
167 result = testSubject.getInstGroups();
172 public void testSetInstGroups() throws Exception {
173 TopologyTemplate testSubject;
174 Map<String, MapGroupsDataDefinition> instGroups = null;
177 testSubject = createTestSubject();
178 testSubject.setInstGroups(instGroups);
183 public void testGetServiceApiArtifacts() throws Exception {
184 TopologyTemplate testSubject;
185 Map<String, ArtifactDataDefinition> result;
188 testSubject = createTestSubject();
189 result = testSubject.getServiceApiArtifacts();
194 public void testSetServiceApiArtifacts() throws Exception {
195 TopologyTemplate testSubject;
196 Map<String, ArtifactDataDefinition> serviceApiArtifacts = null;
199 testSubject = createTestSubject();
200 testSubject.setServiceApiArtifacts(serviceApiArtifacts);
205 public void testGetCompositions() throws Exception {
206 TopologyTemplate testSubject;
207 Map<String, CompositionDataDefinition> result;
210 testSubject = createTestSubject();
211 result = testSubject.getCompositions();
216 public void testSetCompositions() throws Exception {
217 TopologyTemplate testSubject;
218 Map<String, CompositionDataDefinition> compositions = null;
221 testSubject = createTestSubject();
222 testSubject.setCompositions(compositions);
227 public void testGetCalculatedCapabilities() throws Exception {
228 TopologyTemplate testSubject;
229 Map<String, MapListCapabiltyDataDefinition> result;
232 testSubject = createTestSubject();
233 result = testSubject.getCalculatedCapabilities();
238 public void testSetCalculatedCapabilities() throws Exception {
239 TopologyTemplate testSubject;
240 Map<String, MapListCapabiltyDataDefinition> calculatedCapabilities = null;
243 testSubject = createTestSubject();
244 testSubject.setCalculatedCapabilities(calculatedCapabilities);
249 public void testGetCalculatedRequirements() throws Exception {
250 TopologyTemplate testSubject;
251 Map<String, MapListRequirementDataDefinition> result;
254 testSubject = createTestSubject();
255 result = testSubject.getCalculatedRequirements();
260 public void testSetCalculatedRequirements() throws Exception {
261 TopologyTemplate testSubject;
262 Map<String, MapListRequirementDataDefinition> calculatedRequirements = null;
265 testSubject = createTestSubject();
266 testSubject.setCalculatedRequirements(calculatedRequirements);
271 public void testGetFullfilledCapabilities() throws Exception {
272 TopologyTemplate testSubject;
273 Map<String, MapListCapabiltyDataDefinition> result;
276 testSubject = createTestSubject();
277 result = testSubject.getFullfilledCapabilities();
282 public void testSetFullfilledCapabilities() throws Exception {
283 TopologyTemplate testSubject;
284 Map<String, MapListCapabiltyDataDefinition> fullfilledCapabilities = null;
287 testSubject = createTestSubject();
288 testSubject.setFullfilledCapabilities(fullfilledCapabilities);
293 public void testGetFullfilledRequirements() throws Exception {
294 TopologyTemplate testSubject;
295 Map<String, MapListRequirementDataDefinition> result;
298 testSubject = createTestSubject();
299 result = testSubject.getFullfilledRequirements();
304 public void testSetFullfilledRequirements() throws Exception {
305 TopologyTemplate testSubject;
306 Map<String, MapListRequirementDataDefinition> fullfilledRequirements = null;
309 testSubject = createTestSubject();
310 testSubject.setFullfilledRequirements(fullfilledRequirements);
315 public void testGetInstDeploymentArtifacts() throws Exception {
316 TopologyTemplate testSubject;
317 Map<String, MapArtifactDataDefinition> result;
320 testSubject = createTestSubject();
321 result = testSubject.getInstDeploymentArtifacts();
326 public void testSetInstDeploymentArtifacts() throws Exception {
327 TopologyTemplate testSubject;
328 Map<String, MapArtifactDataDefinition> instDeploymentArtifacts = null;
331 testSubject = createTestSubject();
332 testSubject.setInstDeploymentArtifacts(instDeploymentArtifacts);
337 public void testGetCalculatedCapabilitiesProperties() throws Exception {
338 TopologyTemplate testSubject;
339 Map<String, MapCapabiltyProperty> result;
342 testSubject = createTestSubject();
343 result = testSubject.getCalculatedCapabilitiesProperties();
348 public void testSetCalculatedCapabilitiesProperties() throws Exception {
349 TopologyTemplate testSubject;
350 Map<String, MapCapabiltyProperty> calculatedCapabilitiesProperties = null;
353 testSubject = createTestSubject();
354 testSubject.setCalculatedCapabilitiesProperties(calculatedCapabilitiesProperties);
359 public void testGetInstanceArtifacts() throws Exception {
360 TopologyTemplate testSubject;
361 Map<String, MapArtifactDataDefinition> result;
364 testSubject = createTestSubject();
365 result = testSubject.getInstanceArtifacts();
370 public void testSetInstanceArtifacts() throws Exception {
371 TopologyTemplate testSubject;
372 Map<String, MapArtifactDataDefinition> instanceArtifacts = null;
375 testSubject = createTestSubject();
376 testSubject.setInstanceArtifacts(instanceArtifacts);
384 public void testGetComponentInstances() throws Exception {
385 TopologyTemplate testSubject;
386 Map<String, ComponentInstanceDataDefinition> result;
389 testSubject = createTestSubject();
390 result = testSubject.getComponentInstances();
395 public void testSetComponentInstances() throws Exception {
396 TopologyTemplate testSubject;
397 Map<String, ComponentInstanceDataDefinition> instances = null;
400 testSubject = createTestSubject();
401 testSubject.setComponentInstances(instances);
406 public void testGetRelations() throws Exception {
407 TopologyTemplate testSubject;
408 Map<String, RelationshipInstDataDefinition> result;
411 testSubject = createTestSubject();
412 result = testSubject.getRelations();