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;
29 public class GroupTypeDataDefinitionTest {
31 private GroupTypeDataDefinition createTestSubject() {
32 return new GroupTypeDataDefinition();
36 public void testCopyConstructor() throws Exception {
37 GroupTypeDataDefinition testSubject;
41 testSubject = createTestSubject();
42 new GroupTypeDataDefinition(testSubject);
46 public void testGetType() throws Exception {
47 GroupTypeDataDefinition testSubject;
51 testSubject = createTestSubject();
52 result = testSubject.getType();
57 public void testSetType() throws Exception {
58 GroupTypeDataDefinition testSubject;
62 testSubject = createTestSubject();
63 testSubject.setType(type);
68 public void testGetVersion() throws Exception {
69 GroupTypeDataDefinition testSubject;
73 testSubject = createTestSubject();
74 result = testSubject.getVersion();
79 public void testSetVersion() throws Exception {
80 GroupTypeDataDefinition testSubject;
84 testSubject = createTestSubject();
85 testSubject.setVersion(version);
90 public void testGetMembers() throws Exception {
91 GroupTypeDataDefinition testSubject;
95 testSubject = createTestSubject();
96 result = testSubject.getMembers();
101 public void testSetMembers() throws Exception {
102 GroupTypeDataDefinition testSubject;
103 List<String> members = null;
106 testSubject = createTestSubject();
107 testSubject.setMembers(members);
112 public void testGetMetadata() throws Exception {
113 GroupTypeDataDefinition testSubject;
114 Map<String, String> result;
117 testSubject = createTestSubject();
118 result = testSubject.getMetadata();
123 public void testSetMetadata() throws Exception {
124 GroupTypeDataDefinition testSubject;
125 Map<String, String> metadata = null;
128 testSubject = createTestSubject();
129 testSubject.setMetadata(metadata);
134 public void testGetDescription() throws Exception {
135 GroupTypeDataDefinition testSubject;
139 testSubject = createTestSubject();
140 result = testSubject.getDescription();
145 public void testSetDescription() throws Exception {
146 GroupTypeDataDefinition testSubject;
147 String description = "";
150 testSubject = createTestSubject();
151 testSubject.setDescription(description);
156 public void testGetUniqueId() throws Exception {
157 GroupTypeDataDefinition testSubject;
161 testSubject = createTestSubject();
162 result = testSubject.getUniqueId();
167 public void testSetUniqueId() throws Exception {
168 GroupTypeDataDefinition testSubject;
169 String uniqueId = "";
172 testSubject = createTestSubject();
173 testSubject.setUniqueId(uniqueId);
178 public void testGetCreationTime() throws Exception {
179 GroupTypeDataDefinition testSubject;
183 testSubject = createTestSubject();
184 result = testSubject.getCreationTime();
189 public void testSetCreationTime() throws Exception {
190 GroupTypeDataDefinition testSubject;
191 Long creationTime = null;
194 testSubject = createTestSubject();
195 testSubject.setCreationTime(creationTime);
200 public void testGetModificationTime() throws Exception {
201 GroupTypeDataDefinition testSubject;
205 testSubject = createTestSubject();
206 result = testSubject.getModificationTime();
211 public void testSetModificationTime() throws Exception {
212 GroupTypeDataDefinition testSubject;
213 Long modificationTime = null;
216 testSubject = createTestSubject();
217 testSubject.setModificationTime(modificationTime);
222 public void testToString() throws Exception {
223 GroupTypeDataDefinition testSubject;
227 testSubject = createTestSubject();
228 result = testSubject.toString();
233 public void testGetDerivedFrom() throws Exception {
234 GroupTypeDataDefinition testSubject;
238 testSubject = createTestSubject();
239 result = testSubject.getDerivedFrom();
244 public void testSetDerivedFrom() throws Exception {
245 GroupTypeDataDefinition testSubject;
246 String derivedFrom = "";
249 testSubject = createTestSubject();
250 testSubject.setDerivedFrom(derivedFrom);
255 public void testIsHighestVersion() throws Exception {
256 GroupTypeDataDefinition testSubject;
260 testSubject = createTestSubject();
261 result = testSubject.isHighestVersion();
266 public void testSetHighestVersion() throws Exception {
267 GroupTypeDataDefinition testSubject;
268 boolean isLatestVersion = false;
271 testSubject = createTestSubject();
272 testSubject.setHighestVersion(isLatestVersion);