Added oparent to sdc main
[sdc.git] / common-be / src / test / java / org / openecomp / sdc / be / datatypes / elements / InterfaceDataDefinitionTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.openecomp.sdc.be.datatypes.elements;
22
23 import org.junit.Test;
24
25 import java.util.Map;
26
27
28 public class InterfaceDataDefinitionTest {
29
30         private InterfaceDataDefinition createTestSubject() {
31                 return new InterfaceDataDefinition();
32         }
33
34         @Test
35         public void testOverloadConstructors() throws Exception {
36                 InterfaceDataDefinition testSubject;
37                 String result;
38
39                 // default test
40                 testSubject = createTestSubject();
41                 result = testSubject.getUniqueId();
42                 
43                 new InterfaceDataDefinition(testSubject);
44                 new InterfaceDataDefinition("","");
45         }
46
47         @Test
48         public void testGetUniqueId() throws Exception {
49                 InterfaceDataDefinition testSubject;
50                 String result;
51
52                 // default test
53                 testSubject = createTestSubject();
54                 result = testSubject.getUniqueId();
55         }
56
57
58         @Test
59         public void testSetUniqueId() throws Exception {
60                 InterfaceDataDefinition testSubject;
61                 String uniqueId = "";
62
63                 // default test
64                 testSubject = createTestSubject();
65                 testSubject.setUniqueId(uniqueId);
66         }
67
68
69         @Test
70         public void testGetType() throws Exception {
71                 InterfaceDataDefinition testSubject;
72                 String result;
73
74                 // default test
75                 testSubject = createTestSubject();
76                 result = testSubject.getType();
77         }
78
79
80         @Test
81         public void testSetType() throws Exception {
82                 InterfaceDataDefinition testSubject;
83                 String type = "";
84
85                 // default test
86                 testSubject = createTestSubject();
87                 testSubject.setType(type);
88         }
89
90
91         @Test
92         public void testGetCreationDate() throws Exception {
93                 InterfaceDataDefinition testSubject;
94                 Long result;
95
96                 // default test
97                 testSubject = createTestSubject();
98                 result = testSubject.getCreationDate();
99         }
100
101
102         @Test
103         public void testSetCreationDate() throws Exception {
104                 InterfaceDataDefinition testSubject;
105                 Long creationDate = null;
106
107                 // default test
108                 testSubject = createTestSubject();
109                 testSubject.setCreationDate(creationDate);
110         }
111
112
113         @Test
114         public void testGetLastUpdateDate() throws Exception {
115                 InterfaceDataDefinition testSubject;
116                 Long result;
117
118                 // default test
119                 testSubject = createTestSubject();
120                 result = testSubject.getLastUpdateDate();
121         }
122
123
124         @Test
125         public void testSetLastUpdateDate() throws Exception {
126                 InterfaceDataDefinition testSubject;
127                 Long lastUpdateDate = null;
128
129                 // default test
130                 testSubject = createTestSubject();
131                 testSubject.setLastUpdateDate(lastUpdateDate);
132         }
133
134
135         @Test
136         public void testGetDescription() throws Exception {
137                 InterfaceDataDefinition testSubject;
138                 String result;
139
140                 // default test
141                 testSubject = createTestSubject();
142                 result = testSubject.getDescription();
143         }
144
145
146         @Test
147         public void testSetDescription() throws Exception {
148                 InterfaceDataDefinition testSubject;
149                 String description = "";
150
151                 // default test
152                 testSubject = createTestSubject();
153                 testSubject.setDescription(description);
154         }
155
156
157         @Test
158         public void testGetOperations() throws Exception {
159                 InterfaceDataDefinition testSubject;
160                 Map<String, OperationDataDefinition> result;
161
162                 // default test
163                 testSubject = createTestSubject();
164                 result = testSubject.getOperations();
165         }
166
167
168         @Test
169         public void testSetOperations() throws Exception {
170                 InterfaceDataDefinition testSubject;
171                 Map<String, OperationDataDefinition> operations = null;
172
173                 // default test
174                 testSubject = createTestSubject();
175                 testSubject.setOperations(operations);
176         }
177 }