1 package org.openecomp.sdc.be.ui.model;
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;
21 public class UiComponentDataTransferTest {
23 private UiComponentDataTransfer createTestSubject() {
24 return new UiComponentDataTransfer();
29 public void testGetArtifacts() throws Exception {
30 UiComponentDataTransfer testSubject;
31 Map<String, ArtifactDefinition> result;
34 testSubject = createTestSubject();
35 result = testSubject.getArtifacts();
40 public void testSetArtifacts() throws Exception {
41 UiComponentDataTransfer testSubject;
42 Map<String, ArtifactDefinition> artifacts = null;
45 testSubject = createTestSubject();
46 testSubject.setArtifacts(artifacts);
51 public void testGetDeploymentArtifacts() throws Exception {
52 UiComponentDataTransfer testSubject;
53 Map<String, ArtifactDefinition> result;
56 testSubject = createTestSubject();
57 result = testSubject.getDeploymentArtifacts();
62 public void testSetDeploymentArtifacts() throws Exception {
63 UiComponentDataTransfer testSubject;
64 Map<String, ArtifactDefinition> deploymentArtifacts = null;
67 testSubject = createTestSubject();
68 testSubject.setDeploymentArtifacts(deploymentArtifacts);
73 public void testGetToscaArtifacts() throws Exception {
74 UiComponentDataTransfer testSubject;
75 Map<String, ArtifactDefinition> result;
78 testSubject = createTestSubject();
79 result = testSubject.getToscaArtifacts();
84 public void testSetToscaArtifacts() throws Exception {
85 UiComponentDataTransfer testSubject;
86 Map<String, ArtifactDefinition> toscaArtifacts = null;
89 testSubject = createTestSubject();
90 testSubject.setToscaArtifacts(toscaArtifacts);
95 public void testGetCategories() throws Exception {
96 UiComponentDataTransfer testSubject;
97 List<CategoryDefinition> result;
100 testSubject = createTestSubject();
101 result = testSubject.getCategories();
106 public void testSetCategories() throws Exception {
107 UiComponentDataTransfer testSubject;
108 List<CategoryDefinition> categories = null;
111 testSubject = createTestSubject();
112 testSubject.setCategories(categories);
117 public void testGetCreatorUserId() throws Exception {
118 UiComponentDataTransfer testSubject;
122 testSubject = createTestSubject();
123 result = testSubject.getCreatorUserId();
128 public void testSetCreatorUserId() throws Exception {
129 UiComponentDataTransfer testSubject;
130 String creatorUserId = "";
133 testSubject = createTestSubject();
134 testSubject.setCreatorUserId(creatorUserId);
139 public void testGetCreatorFullName() throws Exception {
140 UiComponentDataTransfer testSubject;
144 testSubject = createTestSubject();
145 result = testSubject.getCreatorFullName();
150 public void testSetCreatorFullName() throws Exception {
151 UiComponentDataTransfer testSubject;
152 String creatorFullName = "";
155 testSubject = createTestSubject();
156 testSubject.setCreatorFullName(creatorFullName);
161 public void testGetLastUpdaterUserId() throws Exception {
162 UiComponentDataTransfer testSubject;
166 testSubject = createTestSubject();
167 result = testSubject.getLastUpdaterUserId();
172 public void testSetLastUpdaterUserId() throws Exception {
173 UiComponentDataTransfer testSubject;
174 String lastUpdaterUserId = "";
177 testSubject = createTestSubject();
178 testSubject.setLastUpdaterUserId(lastUpdaterUserId);
183 public void testGetLastUpdaterFullName() throws Exception {
184 UiComponentDataTransfer testSubject;
188 testSubject = createTestSubject();
189 result = testSubject.getLastUpdaterFullName();
194 public void testSetLastUpdaterFullName() throws Exception {
195 UiComponentDataTransfer testSubject;
196 String lastUpdaterFullName = "";
199 testSubject = createTestSubject();
200 testSubject.setLastUpdaterFullName(lastUpdaterFullName);
205 public void testGetComponentType() throws Exception {
206 UiComponentDataTransfer testSubject;
207 ComponentTypeEnum result;
210 testSubject = createTestSubject();
211 result = testSubject.getComponentType();
216 public void testSetComponentType() throws Exception {
217 UiComponentDataTransfer testSubject;
218 ComponentTypeEnum componentType = null;
221 testSubject = createTestSubject();
222 testSubject.setComponentType(componentType);
227 public void testGetComponentInstances() throws Exception {
228 UiComponentDataTransfer testSubject;
229 List<ComponentInstance> result;
232 testSubject = createTestSubject();
233 result = testSubject.getComponentInstances();
238 public void testSetComponentInstances() throws Exception {
239 UiComponentDataTransfer testSubject;
240 List<ComponentInstance> componentInstances = null;
243 testSubject = createTestSubject();
244 testSubject.setComponentInstances(componentInstances);
249 public void testGetComponentInstancesRelations() throws Exception {
250 UiComponentDataTransfer testSubject;
251 List<RequirementCapabilityRelDef> result;
254 testSubject = createTestSubject();
255 result = testSubject.getComponentInstancesRelations();
260 public void testSetComponentInstancesRelations() throws Exception {
261 UiComponentDataTransfer testSubject;
262 List<RequirementCapabilityRelDef> componentInstancesRelations = null;
265 testSubject = createTestSubject();
266 testSubject.setComponentInstancesRelations(componentInstancesRelations);
271 public void testGetComponentInstancesInputs() throws Exception {
272 UiComponentDataTransfer testSubject;
273 Map<String, List<ComponentInstanceInput>> result;
276 testSubject = createTestSubject();
277 result = testSubject.getComponentInstancesInputs();
282 public void testSetComponentInstancesInputs() throws Exception {
283 UiComponentDataTransfer testSubject;
284 Map<String, List<ComponentInstanceInput>> componentInstancesInputs = null;
287 testSubject = createTestSubject();
288 testSubject.setComponentInstancesInputs(componentInstancesInputs);
293 public void testGetComponentInstancesProperties() throws Exception {
294 UiComponentDataTransfer testSubject;
295 Map<String, List<ComponentInstanceProperty>> result;
298 testSubject = createTestSubject();
299 result = testSubject.getComponentInstancesProperties();
304 public void testSetComponentInstancesProperties() throws Exception {
305 UiComponentDataTransfer testSubject;
306 Map<String, List<ComponentInstanceProperty>> componentInstancesProperties = null;
309 testSubject = createTestSubject();
310 testSubject.setComponentInstancesProperties(componentInstancesProperties);
315 public void testGetComponentInstancesAttributes() throws Exception {
316 UiComponentDataTransfer testSubject;
317 Map<String, List<ComponentInstanceProperty>> result;
320 testSubject = createTestSubject();
321 result = testSubject.getComponentInstancesAttributes();
326 public void testSetComponentInstancesAttributes() throws Exception {
327 UiComponentDataTransfer testSubject;
328 Map<String, List<ComponentInstanceProperty>> componentInstancesAttributes = null;
331 testSubject = createTestSubject();
332 testSubject.setComponentInstancesAttributes(componentInstancesAttributes);
337 public void testGetCapabilities() throws Exception {
338 UiComponentDataTransfer testSubject;
339 Map<String, List<CapabilityDefinition>> result;
342 testSubject = createTestSubject();
343 result = testSubject.getCapabilities();
348 public void testSetCapabilities() throws Exception {
349 UiComponentDataTransfer testSubject;
350 Map<String, List<CapabilityDefinition>> capabilities = null;
353 testSubject = createTestSubject();
354 testSubject.setCapabilities(capabilities);
359 public void testGetRequirements() throws Exception {
360 UiComponentDataTransfer testSubject;
361 Map<String, List<RequirementDefinition>> result;
364 testSubject = createTestSubject();
365 result = testSubject.getRequirements();
370 public void testSetRequirements() throws Exception {
371 UiComponentDataTransfer testSubject;
372 Map<String, List<RequirementDefinition>> requirements = null;
375 testSubject = createTestSubject();
376 testSubject.setRequirements(requirements);
381 public void testGetInputs() throws Exception {
382 UiComponentDataTransfer testSubject;
383 List<InputDefinition> result;
386 testSubject = createTestSubject();
387 result = testSubject.getInputs();
392 public void testSetInputs() throws Exception {
393 UiComponentDataTransfer testSubject;
394 List<InputDefinition> inputs = null;
397 testSubject = createTestSubject();
398 testSubject.setInputs(inputs);
403 public void testGetGroups() throws Exception {
404 UiComponentDataTransfer testSubject;
405 List<GroupDefinition> result;
408 testSubject = createTestSubject();
409 result = testSubject.getGroups();
414 public void testSetGroups() throws Exception {
415 UiComponentDataTransfer testSubject;
416 List<GroupDefinition> groups = null;
419 testSubject = createTestSubject();
420 testSubject.setGroups(groups);
425 public void testGetAdditionalInformation() throws Exception {
426 UiComponentDataTransfer testSubject;
427 List<AdditionalInformationDefinition> result;
430 testSubject = createTestSubject();
431 result = testSubject.getAdditionalInformation();
436 public void testSetAdditionalInformation() throws Exception {
437 UiComponentDataTransfer testSubject;
438 List<AdditionalInformationDefinition> additionalInformation = null;
441 testSubject = createTestSubject();
442 testSubject.setAdditionalInformation(additionalInformation);