1 package org.openecomp.sdc.be.datatypes.elements;
7 public class CapabilityTypeDataDefinitionTest {
9 private CapabilityTypeDataDefinition createTestSubject() {
10 return new CapabilityTypeDataDefinition();
14 public void testCopyConstructor() throws Exception {
15 CapabilityTypeDataDefinition testSubject;
19 testSubject = createTestSubject();
20 new CapabilityTypeDataDefinition(testSubject);
24 public void testGetUniqueId() throws Exception {
25 CapabilityTypeDataDefinition testSubject;
29 testSubject = createTestSubject();
30 result = testSubject.getUniqueId();
34 public void testSetUniqueId() throws Exception {
35 CapabilityTypeDataDefinition testSubject;
39 testSubject = createTestSubject();
40 testSubject.setUniqueId(uniqueId);
44 public void testGetDescription() throws Exception {
45 CapabilityTypeDataDefinition testSubject;
49 testSubject = createTestSubject();
50 result = testSubject.getDescription();
54 public void testSetDescription() throws Exception {
55 CapabilityTypeDataDefinition testSubject;
56 String description = "";
59 testSubject = createTestSubject();
60 testSubject.setDescription(description);
64 public void testGetType() throws Exception {
65 CapabilityTypeDataDefinition testSubject;
69 testSubject = createTestSubject();
70 result = testSubject.getType();
74 public void testSetType() throws Exception {
75 CapabilityTypeDataDefinition testSubject;
79 testSubject = createTestSubject();
80 testSubject.setType(type);
84 public void testGetValidSourceTypes() throws Exception {
85 CapabilityTypeDataDefinition testSubject;
89 testSubject = createTestSubject();
90 result = testSubject.getValidSourceTypes();
94 public void testSetValidSourceTypes() throws Exception {
95 CapabilityTypeDataDefinition testSubject;
96 List<String> validSourceTypes = null;
99 testSubject = createTestSubject();
100 testSubject.setValidSourceTypes(validSourceTypes);
104 public void testGetVersion() throws Exception {
105 CapabilityTypeDataDefinition testSubject;
109 testSubject = createTestSubject();
110 result = testSubject.getVersion();
114 public void testSetVersion() throws Exception {
115 CapabilityTypeDataDefinition testSubject;
119 testSubject = createTestSubject();
120 testSubject.setVersion(version);
124 public void testGetCreationTime() throws Exception {
125 CapabilityTypeDataDefinition testSubject;
129 testSubject = createTestSubject();
130 result = testSubject.getCreationTime();
134 public void testSetCreationTime() throws Exception {
135 CapabilityTypeDataDefinition testSubject;
136 Long creationTime = null;
139 testSubject = createTestSubject();
140 testSubject.setCreationTime(creationTime);
144 public void testGetModificationTime() throws Exception {
145 CapabilityTypeDataDefinition testSubject;
149 testSubject = createTestSubject();
150 result = testSubject.getModificationTime();
154 public void testSetModificationTime() throws Exception {
155 CapabilityTypeDataDefinition testSubject;
156 Long modificationTime = null;
159 testSubject = createTestSubject();
160 testSubject.setModificationTime(modificationTime);
164 public void testToString() throws Exception {
165 CapabilityTypeDataDefinition testSubject;
169 testSubject = createTestSubject();
170 result = testSubject.toString();