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;
28 public class InterfaceDataDefinitionTest {
30 private InterfaceDataDefinition createTestSubject() {
31 return new InterfaceDataDefinition();
35 public void testOverloadConstructors() throws Exception {
36 InterfaceDataDefinition testSubject;
40 testSubject = createTestSubject();
41 result = testSubject.getUniqueId();
43 new InterfaceDataDefinition(testSubject);
44 new InterfaceDataDefinition("","");
48 public void testGetUniqueId() throws Exception {
49 InterfaceDataDefinition testSubject;
53 testSubject = createTestSubject();
54 result = testSubject.getUniqueId();
59 public void testSetUniqueId() throws Exception {
60 InterfaceDataDefinition testSubject;
64 testSubject = createTestSubject();
65 testSubject.setUniqueId(uniqueId);
70 public void testGetType() throws Exception {
71 InterfaceDataDefinition testSubject;
75 testSubject = createTestSubject();
76 result = testSubject.getType();
81 public void testSetType() throws Exception {
82 InterfaceDataDefinition testSubject;
86 testSubject = createTestSubject();
87 testSubject.setType(type);
92 public void testGetCreationDate() throws Exception {
93 InterfaceDataDefinition testSubject;
97 testSubject = createTestSubject();
98 result = testSubject.getCreationDate();
103 public void testSetCreationDate() throws Exception {
104 InterfaceDataDefinition testSubject;
105 Long creationDate = null;
108 testSubject = createTestSubject();
109 testSubject.setCreationDate(creationDate);
114 public void testGetLastUpdateDate() throws Exception {
115 InterfaceDataDefinition testSubject;
119 testSubject = createTestSubject();
120 result = testSubject.getLastUpdateDate();
125 public void testSetLastUpdateDate() throws Exception {
126 InterfaceDataDefinition testSubject;
127 Long lastUpdateDate = null;
130 testSubject = createTestSubject();
131 testSubject.setLastUpdateDate(lastUpdateDate);
136 public void testGetDescription() throws Exception {
137 InterfaceDataDefinition testSubject;
141 testSubject = createTestSubject();
142 result = testSubject.getDescription();
147 public void testSetDescription() throws Exception {
148 InterfaceDataDefinition testSubject;
149 String description = "";
152 testSubject = createTestSubject();
153 testSubject.setDescription(description);
158 public void testGetOperations() throws Exception {
159 InterfaceDataDefinition testSubject;
160 Map<String, OperationDataDefinition> result;
163 testSubject = createTestSubject();
164 result = testSubject.getOperations();
169 public void testSetOperations() throws Exception {
170 InterfaceDataDefinition testSubject;
171 Map<String, OperationDataDefinition> operations = null;
174 testSubject = createTestSubject();
175 testSubject.setOperations(operations);