1 package org.onap.vid.asdc.beans.tosca;
3 import java.util.Collection;
9 public class CapabilityTest {
11 private Capability createTestSubject() {
12 return new Capability();
17 public void testGetType() throws Exception {
18 Capability testSubject;
22 testSubject = createTestSubject();
23 result = testSubject.getType();
28 public void testGetDescription() throws Exception {
29 Capability testSubject;
33 testSubject = createTestSubject();
34 result = testSubject.getDescription();
39 public void testGetOccurrences() throws Exception {
40 Capability testSubject;
41 Collection<String> result;
44 testSubject = createTestSubject();
45 result = testSubject.getOccurrences();
50 public void testGetProperties() throws Exception {
51 Capability testSubject;
52 Map<String, Property> result;
55 testSubject = createTestSubject();
56 result = testSubject.getProperties();
61 public void testGetValid_source_types() throws Exception {
62 Capability testSubject;
63 Collection<String> result;
66 testSubject = createTestSubject();
67 result = testSubject.getValid_source_types();
72 public void testSetType() throws Exception {
73 Capability testSubject;
77 testSubject = createTestSubject();
78 testSubject.setType(type);
83 public void testSetDescription() throws Exception {
84 Capability testSubject;
85 String description = "";
88 testSubject = createTestSubject();
89 testSubject.setDescription(description);
94 public void testSetOccurrences() throws Exception {
95 Capability testSubject;
96 Collection<String> occurrences = null;
99 testSubject = createTestSubject();
100 testSubject.setOccurrences(occurrences);
105 public void testSetProperties() throws Exception {
106 Capability testSubject;
107 Map<String, Property> properties = null;
110 testSubject = createTestSubject();
111 testSubject.setProperties(properties);
116 public void testSetValid_source_types() throws Exception {
117 Capability testSubject;
118 Collection<String> valid_source_types = null;
121 testSubject = createTestSubject();
122 testSubject.setValid_source_types(valid_source_types);