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