2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.openecomp.sdc.be.datatypes.elements;
23 import org.junit.Test;
25 import java.util.List;
27 public class CapabilityTypeDataDefinitionTest {
29 private CapabilityTypeDataDefinition createTestSubject() {
30 return new CapabilityTypeDataDefinition();
34 public void testCopyConstructor() throws Exception {
35 CapabilityTypeDataDefinition testSubject;
39 testSubject = createTestSubject();
40 new CapabilityTypeDataDefinition(testSubject);
44 public void testGetUniqueId() throws Exception {
45 CapabilityTypeDataDefinition testSubject;
49 testSubject = createTestSubject();
50 result = testSubject.getUniqueId();
54 public void testSetUniqueId() throws Exception {
55 CapabilityTypeDataDefinition testSubject;
59 testSubject = createTestSubject();
60 testSubject.setUniqueId(uniqueId);
64 public void testGetDescription() throws Exception {
65 CapabilityTypeDataDefinition testSubject;
69 testSubject = createTestSubject();
70 result = testSubject.getDescription();
74 public void testSetDescription() throws Exception {
75 CapabilityTypeDataDefinition testSubject;
76 String description = "";
79 testSubject = createTestSubject();
80 testSubject.setDescription(description);
84 public void testGetType() throws Exception {
85 CapabilityTypeDataDefinition testSubject;
89 testSubject = createTestSubject();
90 result = testSubject.getType();
94 public void testSetType() throws Exception {
95 CapabilityTypeDataDefinition testSubject;
99 testSubject = createTestSubject();
100 testSubject.setType(type);
104 public void testGetValidSourceTypes() throws Exception {
105 CapabilityTypeDataDefinition testSubject;
109 testSubject = createTestSubject();
110 result = testSubject.getValidSourceTypes();
114 public void testSetValidSourceTypes() throws Exception {
115 CapabilityTypeDataDefinition testSubject;
116 List<String> validSourceTypes = null;
119 testSubject = createTestSubject();
120 testSubject.setValidSourceTypes(validSourceTypes);
124 public void testGetVersion() throws Exception {
125 CapabilityTypeDataDefinition testSubject;
129 testSubject = createTestSubject();
130 result = testSubject.getVersion();
134 public void testSetVersion() throws Exception {
135 CapabilityTypeDataDefinition testSubject;
139 testSubject = createTestSubject();
140 testSubject.setVersion(version);
144 public void testGetCreationTime() throws Exception {
145 CapabilityTypeDataDefinition testSubject;
149 testSubject = createTestSubject();
150 result = testSubject.getCreationTime();
154 public void testSetCreationTime() throws Exception {
155 CapabilityTypeDataDefinition testSubject;
156 Long creationTime = null;
159 testSubject = createTestSubject();
160 testSubject.setCreationTime(creationTime);
164 public void testGetModificationTime() throws Exception {
165 CapabilityTypeDataDefinition testSubject;
169 testSubject = createTestSubject();
170 result = testSubject.getModificationTime();
174 public void testSetModificationTime() throws Exception {
175 CapabilityTypeDataDefinition testSubject;
176 Long modificationTime = null;
179 testSubject = createTestSubject();
180 testSubject.setModificationTime(modificationTime);
184 public void testToString() throws Exception {
185 CapabilityTypeDataDefinition testSubject;
189 testSubject = createTestSubject();
190 result = testSubject.toString();