Added oparent to sdc main
[sdc.git] / catalog-dao / src / test / java / org / openecomp / sdc / be / resources / data / auditing / DistributionNotificationEventTest.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.resources.data.auditing;
22
23 import org.junit.Test;
24 import org.openecomp.sdc.be.resources.data.auditing.model.CommonAuditData;
25 import org.openecomp.sdc.be.resources.data.auditing.model.OperationalEnvAuditData;
26 import org.openecomp.sdc.be.resources.data.auditing.model.ResourceCommonInfo;
27 import org.openecomp.sdc.be.resources.data.auditing.model.ResourceVersionInfo;
28
29 import java.util.Date;
30 import java.util.UUID;
31
32 public class DistributionNotificationEventTest {
33
34         private DistributionNotificationEvent createTestSubject() {
35                 return new DistributionNotificationEvent();
36         }
37
38         @Test
39         public void testCtor() throws Exception {
40                 new DistributionNotificationEvent();
41                 new DistributionNotificationEvent("mock", CommonAuditData.newBuilder().build(), new ResourceCommonInfo(),ResourceVersionInfo.newBuilder().build() , "mock", "mock", "mock", new OperationalEnvAuditData("mock", "mock", "mock"));
42         }
43         
44         @Test
45         public void testFillFields() throws Exception {
46                 DistributionNotificationEvent testSubject;
47
48                 // default test
49                 testSubject = createTestSubject();
50                 testSubject.fillFields();
51         }
52
53         
54         @Test
55         public void testGetResourceName() throws Exception {
56                 DistributionNotificationEvent testSubject;
57                 String result;
58
59                 // default test
60                 testSubject = createTestSubject();
61                 result = testSubject.getResourceName();
62         }
63
64         
65         @Test
66         public void testSetResourceName() throws Exception {
67                 DistributionNotificationEvent testSubject;
68                 String resourceName = "";
69
70                 // default test
71                 testSubject = createTestSubject();
72                 testSubject.setResourceName(resourceName);
73         }
74
75         
76         @Test
77         public void testGetResourceType() throws Exception {
78                 DistributionNotificationEvent testSubject;
79                 String result;
80
81                 // default test
82                 testSubject = createTestSubject();
83                 result = testSubject.getResourceType();
84         }
85
86         
87         @Test
88         public void testSetResourceType() throws Exception {
89                 DistributionNotificationEvent testSubject;
90                 String resourceType = "";
91
92                 // default test
93                 testSubject = createTestSubject();
94                 testSubject.setResourceType(resourceType);
95         }
96
97         
98         @Test
99         public void testGetCurrVersion() throws Exception {
100                 DistributionNotificationEvent testSubject;
101                 String result;
102
103                 // default test
104                 testSubject = createTestSubject();
105                 result = testSubject.getCurrVersion();
106         }
107
108         
109         @Test
110         public void testSetCurrVersion() throws Exception {
111                 DistributionNotificationEvent testSubject;
112                 String currVersion = "";
113
114                 // default test
115                 testSubject = createTestSubject();
116                 testSubject.setCurrVersion(currVersion);
117         }
118
119         
120         @Test
121         public void testGetCurrState() throws Exception {
122                 DistributionNotificationEvent testSubject;
123                 String result;
124
125                 // default test
126                 testSubject = createTestSubject();
127                 result = testSubject.getCurrState();
128         }
129
130         
131         @Test
132         public void testSetCurrState() throws Exception {
133                 DistributionNotificationEvent testSubject;
134                 String currState = "";
135
136                 // default test
137                 testSubject = createTestSubject();
138                 testSubject.setCurrState(currState);
139         }
140
141         
142         @Test
143         public void testGetTopicName() throws Exception {
144                 DistributionNotificationEvent testSubject;
145                 String result;
146
147                 // default test
148                 testSubject = createTestSubject();
149                 result = testSubject.getTopicName();
150         }
151
152         
153         @Test
154         public void testSetTopicName() throws Exception {
155                 DistributionNotificationEvent testSubject;
156                 String topicName = "";
157
158                 // default test
159                 testSubject = createTestSubject();
160                 testSubject.setTopicName(topicName);
161         }
162
163         
164         @Test
165         public void testGetTimebaseduuid() throws Exception {
166                 DistributionNotificationEvent testSubject;
167                 UUID result;
168
169                 // default test
170                 testSubject = createTestSubject();
171                 result = testSubject.getTimebaseduuid();
172         }
173
174         
175         @Test
176         public void testSetTimebaseduuid() throws Exception {
177                 DistributionNotificationEvent testSubject;
178                 UUID timebaseduuid = null;
179
180                 // default test
181                 testSubject = createTestSubject();
182                 testSubject.setTimebaseduuid(timebaseduuid);
183         }
184
185         
186         @Test
187         public void testGetTimestamp1() throws Exception {
188                 DistributionNotificationEvent testSubject;
189                 Date result;
190
191                 // default test
192                 testSubject = createTestSubject();
193                 result = testSubject.getTimestamp1();
194         }
195
196         
197         @Test
198         public void testSetTimestamp1() throws Exception {
199                 DistributionNotificationEvent testSubject;
200                 Date timestamp1 = null;
201
202                 // default test
203                 testSubject = createTestSubject();
204                 testSubject.setTimestamp1(timestamp1);
205         }
206
207         
208         @Test
209         public void testGetRequestId() throws Exception {
210                 DistributionNotificationEvent testSubject;
211                 String result;
212
213                 // default test
214                 testSubject = createTestSubject();
215                 result = testSubject.getRequestId();
216         }
217
218         
219         @Test
220         public void testSetRequestId() throws Exception {
221                 DistributionNotificationEvent testSubject;
222                 String requestId = "";
223
224                 // default test
225                 testSubject = createTestSubject();
226                 testSubject.setRequestId(requestId);
227         }
228
229         
230         @Test
231         public void testGetServiceInstanceId() throws Exception {
232                 DistributionNotificationEvent testSubject;
233                 String result;
234
235                 // default test
236                 testSubject = createTestSubject();
237                 result = testSubject.getServiceInstanceId();
238         }
239
240         
241         @Test
242         public void testSetServiceInstanceId() throws Exception {
243                 DistributionNotificationEvent testSubject;
244                 String serviceInstanceId = "";
245
246                 // default test
247                 testSubject = createTestSubject();
248                 testSubject.setServiceInstanceId(serviceInstanceId);
249         }
250
251         
252         @Test
253         public void testGetAction() throws Exception {
254                 DistributionNotificationEvent testSubject;
255                 String result;
256
257                 // default test
258                 testSubject = createTestSubject();
259                 result = testSubject.getAction();
260         }
261
262         
263         @Test
264         public void testSetAction() throws Exception {
265                 DistributionNotificationEvent testSubject;
266                 String action = "";
267
268                 // default test
269                 testSubject = createTestSubject();
270                 testSubject.setAction(action);
271         }
272
273         
274         @Test
275         public void testGetStatus() throws Exception {
276                 DistributionNotificationEvent testSubject;
277                 String result;
278
279                 // default test
280                 testSubject = createTestSubject();
281                 result = testSubject.getStatus();
282         }
283
284         
285         @Test
286         public void testSetStatus() throws Exception {
287                 DistributionNotificationEvent testSubject;
288                 String status = "";
289
290                 // default test
291                 testSubject = createTestSubject();
292                 testSubject.setStatus(status);
293         }
294
295         
296         @Test
297         public void testGetDesc() throws Exception {
298                 DistributionNotificationEvent testSubject;
299                 String result;
300
301                 // default test
302                 testSubject = createTestSubject();
303                 result = testSubject.getDesc();
304         }
305
306         
307         @Test
308         public void testSetDesc() throws Exception {
309                 DistributionNotificationEvent testSubject;
310                 String desc = "";
311
312                 // default test
313                 testSubject = createTestSubject();
314                 testSubject.setDesc(desc);
315         }
316
317         
318         @Test
319         public void testGetModifier() throws Exception {
320                 DistributionNotificationEvent testSubject;
321                 String result;
322
323                 // default test
324                 testSubject = createTestSubject();
325                 result = testSubject.getModifier();
326         }
327
328         
329         @Test
330         public void testSetModifier() throws Exception {
331                 DistributionNotificationEvent testSubject;
332                 String modifier = "";
333
334                 // default test
335                 testSubject = createTestSubject();
336                 testSubject.setModifier(modifier);
337         }
338
339         
340         @Test
341         public void testGetDid() throws Exception {
342                 DistributionNotificationEvent testSubject;
343                 String result;
344
345                 // default test
346                 testSubject = createTestSubject();
347                 result = testSubject.getDid();
348         }
349
350         
351         @Test
352         public void testSetDid() throws Exception {
353                 DistributionNotificationEvent testSubject;
354                 String did = "";
355
356                 // default test
357                 testSubject = createTestSubject();
358                 testSubject.setDid(did);
359         }
360
361         
362         @Test
363         public void testToString() throws Exception {
364                 DistributionNotificationEvent testSubject;
365                 String result;
366
367                 // default test
368                 testSubject = createTestSubject();
369                 result = testSubject.toString();
370         }
371         
372         @Test
373         public void testSetVnfWorkloadContext() throws Exception {
374                 DistributionNotificationEvent testSubject;
375
376                 // default test
377                 testSubject = createTestSubject();
378                 testSubject.setVnfWorkloadContext("mock");
379         }
380         
381         @Test
382         public void testSetEnvId() throws Exception {
383                 DistributionNotificationEvent testSubject;
384
385                 // default test
386                 testSubject = createTestSubject();
387                 testSubject.setEnvId("mock");
388         }
389         
390         @Test
391         public void testSetTenant() throws Exception {
392                 DistributionNotificationEvent testSubject;
393
394                 // default test
395                 testSubject = createTestSubject();
396                 testSubject.setTenant("mock");
397         }
398 }