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