re base code
[sdc.git] / common-app-api / src / test / java / org / openecomp / sdc / be / config / DmaapConsumerConfigurationTest.java
1 package org.openecomp.sdc.be.config;
2
3 import org.junit.Test;
4 import org.openecomp.sdc.be.config.DmaapConsumerConfiguration.Credential;
5
6 public class DmaapConsumerConfigurationTest {
7
8         private DmaapConsumerConfiguration createTestSubject() {
9                 return new DmaapConsumerConfiguration();
10         }
11
12         
13         @Test
14         public void testGetHosts() throws Exception {
15                 DmaapConsumerConfiguration testSubject;
16                 String result;
17
18                 // default test
19                 testSubject = createTestSubject();
20                 result = testSubject.getHosts();
21         }
22
23         
24         @Test
25         public void testSetHosts() throws Exception {
26                 DmaapConsumerConfiguration testSubject;
27                 String hosts = "";
28
29                 // default test
30                 testSubject = createTestSubject();
31                 testSubject.setHosts(hosts);
32         }
33
34         
35         @Test
36         public void testGetConsumerGroup() throws Exception {
37                 DmaapConsumerConfiguration testSubject;
38                 String result;
39
40                 // default test
41                 testSubject = createTestSubject();
42                 result = testSubject.getConsumerGroup();
43         }
44
45         
46         @Test
47         public void testSetConsumerGroup() throws Exception {
48                 DmaapConsumerConfiguration testSubject;
49                 String consumerGroup = "";
50
51                 // default test
52                 testSubject = createTestSubject();
53                 testSubject.setConsumerGroup(consumerGroup);
54         }
55
56         
57         @Test
58         public void testGetConsumerId() throws Exception {
59                 DmaapConsumerConfiguration testSubject;
60                 String result;
61
62                 // default test
63                 testSubject = createTestSubject();
64                 result = testSubject.getConsumerId();
65         }
66
67         
68         @Test
69         public void testSetConsumerId() throws Exception {
70                 DmaapConsumerConfiguration testSubject;
71                 String consumerId = "";
72
73                 // default test
74                 testSubject = createTestSubject();
75                 testSubject.setConsumerId(consumerId);
76         }
77
78         
79         @Test
80         public void testGetTimeoutMs() throws Exception {
81                 DmaapConsumerConfiguration testSubject;
82                 Integer result;
83
84                 // default test
85                 testSubject = createTestSubject();
86                 result = testSubject.getTimeoutMs();
87         }
88
89         
90         @Test
91         public void testSetTimeoutMs() throws Exception {
92                 DmaapConsumerConfiguration testSubject;
93                 Integer timeoutMs = 0;
94
95                 // default test
96                 testSubject = createTestSubject();
97                 testSubject.setTimeoutMs(timeoutMs);
98         }
99
100         
101         @Test
102         public void testGetLimit() throws Exception {
103                 DmaapConsumerConfiguration testSubject;
104                 Integer result;
105
106                 // default test
107                 testSubject = createTestSubject();
108                 result = testSubject.getLimit();
109         }
110
111         
112         @Test
113         public void testSetLimit() throws Exception {
114                 DmaapConsumerConfiguration testSubject;
115                 Integer limit = 0;
116
117                 // default test
118                 testSubject = createTestSubject();
119                 testSubject.setLimit(limit);
120         }
121
122         
123         @Test
124         public void testGetPollingInterval() throws Exception {
125                 DmaapConsumerConfiguration testSubject;
126                 Integer result;
127
128                 // default test
129                 testSubject = createTestSubject();
130                 result = testSubject.getPollingInterval();
131         }
132
133         
134         @Test
135         public void testSetPollingInterval() throws Exception {
136                 DmaapConsumerConfiguration testSubject;
137                 Integer pollingInterval = 0;
138
139                 // default test
140                 testSubject = createTestSubject();
141                 testSubject.setPollingInterval(pollingInterval);
142         }
143
144         
145         @Test
146         public void testGetTopic() throws Exception {
147                 DmaapConsumerConfiguration testSubject;
148                 String result;
149
150                 // default test
151                 testSubject = createTestSubject();
152                 result = testSubject.getTopic();
153         }
154
155         
156         @Test
157         public void testSetTopic() throws Exception {
158                 DmaapConsumerConfiguration testSubject;
159                 String topic = "";
160
161                 // default test
162                 testSubject = createTestSubject();
163                 testSubject.setTopic(topic);
164         }
165
166         
167         @Test
168         public void testGetLatitude() throws Exception {
169                 DmaapConsumerConfiguration testSubject;
170                 Double result;
171
172                 // default test
173                 testSubject = createTestSubject();
174                 result = testSubject.getLatitude();
175         }
176
177         
178         @Test
179         public void testSetLatitude() throws Exception {
180                 DmaapConsumerConfiguration testSubject;
181                 Double latitude = null;
182
183                 // default test
184                 testSubject = createTestSubject();
185                 testSubject.setLatitude(latitude);
186         }
187
188         
189         @Test
190         public void testGetLongitude() throws Exception {
191                 DmaapConsumerConfiguration testSubject;
192                 Double result;
193
194                 // default test
195                 testSubject = createTestSubject();
196                 result = testSubject.getLongitude();
197         }
198
199         
200         @Test
201         public void testSetLongitude() throws Exception {
202                 DmaapConsumerConfiguration testSubject;
203                 Double longitude = null;
204
205                 // default test
206                 testSubject = createTestSubject();
207                 testSubject.setLongitude(longitude);
208         }
209
210         
211         @Test
212         public void testGetVersion() throws Exception {
213                 DmaapConsumerConfiguration testSubject;
214                 String result;
215
216                 // default test
217                 testSubject = createTestSubject();
218                 result = testSubject.getVersion();
219         }
220
221         
222         @Test
223         public void testSetVersion() throws Exception {
224                 DmaapConsumerConfiguration testSubject;
225                 String version = "";
226
227                 // default test
228                 testSubject = createTestSubject();
229                 testSubject.setVersion(version);
230         }
231
232         
233         @Test
234         public void testGetServiceName() throws Exception {
235                 DmaapConsumerConfiguration testSubject;
236                 String result;
237
238                 // default test
239                 testSubject = createTestSubject();
240                 result = testSubject.getServiceName();
241         }
242
243         
244         @Test
245         public void testSetServiceName() throws Exception {
246                 DmaapConsumerConfiguration testSubject;
247                 String serviceName = "";
248
249                 // default test
250                 testSubject = createTestSubject();
251                 testSubject.setServiceName(serviceName);
252         }
253
254         
255         @Test
256         public void testGetEnvironment() throws Exception {
257                 DmaapConsumerConfiguration testSubject;
258                 String result;
259
260                 // default test
261                 testSubject = createTestSubject();
262                 result = testSubject.getEnvironment();
263         }
264
265         
266         @Test
267         public void testSetEnvironment() throws Exception {
268                 DmaapConsumerConfiguration testSubject;
269                 String environment = "";
270
271                 // default test
272                 testSubject = createTestSubject();
273                 testSubject.setEnvironment(environment);
274         }
275
276         
277         @Test
278         public void testGetPartner() throws Exception {
279                 DmaapConsumerConfiguration testSubject;
280                 String result;
281
282                 // default test
283                 testSubject = createTestSubject();
284                 result = testSubject.getPartner();
285         }
286
287         
288         @Test
289         public void testSetPartner() throws Exception {
290                 DmaapConsumerConfiguration testSubject;
291                 String partner = "";
292
293                 // default test
294                 testSubject = createTestSubject();
295                 testSubject.setPartner(partner);
296         }
297
298         
299         @Test
300         public void testGetRouteOffer() throws Exception {
301                 DmaapConsumerConfiguration testSubject;
302                 String result;
303
304                 // default test
305                 testSubject = createTestSubject();
306                 result = testSubject.getRouteOffer();
307         }
308
309         
310         @Test
311         public void testSetRouteOffer() throws Exception {
312                 DmaapConsumerConfiguration testSubject;
313                 String routeOffer = "";
314
315                 // default test
316                 testSubject = createTestSubject();
317                 testSubject.setRouteOffer(routeOffer);
318         }
319
320         
321         @Test
322         public void testGetProtocol() throws Exception {
323                 DmaapConsumerConfiguration testSubject;
324                 String result;
325
326                 // default test
327                 testSubject = createTestSubject();
328                 result = testSubject.getProtocol();
329         }
330
331         
332         @Test
333         public void testSetProtocol() throws Exception {
334                 DmaapConsumerConfiguration testSubject;
335                 String protocol = "";
336
337                 // default test
338                 testSubject = createTestSubject();
339                 testSubject.setProtocol(protocol);
340         }
341
342         
343         @Test
344         public void testGetContenttype() throws Exception {
345                 DmaapConsumerConfiguration testSubject;
346                 String result;
347
348                 // default test
349                 testSubject = createTestSubject();
350                 result = testSubject.getContenttype();
351         }
352
353         
354         @Test
355         public void testSetContenttype() throws Exception {
356                 DmaapConsumerConfiguration testSubject;
357                 String contenttype = "";
358
359                 // default test
360                 testSubject = createTestSubject();
361                 testSubject.setContenttype(contenttype);
362         }
363
364         
365         @Test
366         public void testIsDme2TraceOn() throws Exception {
367                 DmaapConsumerConfiguration testSubject;
368                 Boolean result;
369
370                 // default test
371                 testSubject = createTestSubject();
372                 result = testSubject.isDme2TraceOn();
373         }
374
375         
376         @Test
377         public void testGetDme2TraceOn() throws Exception {
378                 DmaapConsumerConfiguration testSubject;
379                 Boolean result;
380
381                 // default test
382                 testSubject = createTestSubject();
383                 result = testSubject.getDme2TraceOn();
384         }
385
386         
387         @Test
388         public void testSetDme2TraceOn() throws Exception {
389                 DmaapConsumerConfiguration testSubject;
390                 Boolean dme2TraceOn = null;
391
392                 // default test
393                 testSubject = createTestSubject();
394                 testSubject.setDme2TraceOn(dme2TraceOn);
395         }
396
397         
398         @Test
399         public void testGetAftEnvironment() throws Exception {
400                 DmaapConsumerConfiguration testSubject;
401                 String result;
402
403                 // default test
404                 testSubject = createTestSubject();
405                 result = testSubject.getAftEnvironment();
406         }
407
408         
409         @Test
410         public void testSetAftEnvironment() throws Exception {
411                 DmaapConsumerConfiguration testSubject;
412                 String aftEnvironment = "";
413
414                 // default test
415                 testSubject = createTestSubject();
416                 testSubject.setAftEnvironment(aftEnvironment);
417         }
418
419         
420         @Test
421         public void testGetAftDme2ConnectionTimeoutMs() throws Exception {
422                 DmaapConsumerConfiguration testSubject;
423                 Integer result;
424
425                 // default test
426                 testSubject = createTestSubject();
427                 result = testSubject.getAftDme2ConnectionTimeoutMs();
428         }
429
430         
431         @Test
432         public void testSetAftDme2ConnectionTimeoutMs() throws Exception {
433                 DmaapConsumerConfiguration testSubject;
434                 Integer aftDme2ConnectionTimeoutMs = 0;
435
436                 // default test
437                 testSubject = createTestSubject();
438                 testSubject.setAftDme2ConnectionTimeoutMs(aftDme2ConnectionTimeoutMs);
439         }
440
441         
442         @Test
443         public void testGetAftDme2RoundtripTimeoutMs() throws Exception {
444                 DmaapConsumerConfiguration testSubject;
445                 Integer result;
446
447                 // default test
448                 testSubject = createTestSubject();
449                 result = testSubject.getAftDme2RoundtripTimeoutMs();
450         }
451
452         
453         @Test
454         public void testSetAftDme2RoundtripTimeoutMs() throws Exception {
455                 DmaapConsumerConfiguration testSubject;
456                 Integer aftDme2RoundtripTimeoutMs = 0;
457
458                 // default test
459                 testSubject = createTestSubject();
460                 testSubject.setAftDme2RoundtripTimeoutMs(aftDme2RoundtripTimeoutMs);
461         }
462
463         
464         @Test
465         public void testGetAftDme2ReadTimeoutMs() throws Exception {
466                 DmaapConsumerConfiguration testSubject;
467                 Integer result;
468
469                 // default test
470                 testSubject = createTestSubject();
471                 result = testSubject.getAftDme2ReadTimeoutMs();
472         }
473
474         
475         @Test
476         public void testSetAftDme2ReadTimeoutMs() throws Exception {
477                 DmaapConsumerConfiguration testSubject;
478                 Integer aftDme2ReadTimeoutMs = 0;
479
480                 // default test
481                 testSubject = createTestSubject();
482                 testSubject.setAftDme2ReadTimeoutMs(aftDme2ReadTimeoutMs);
483         }
484
485         
486         @Test
487         public void testGetDme2preferredRouterFilePath() throws Exception {
488                 DmaapConsumerConfiguration testSubject;
489                 String result;
490
491                 // default test
492                 testSubject = createTestSubject();
493                 result = testSubject.getDme2preferredRouterFilePath();
494         }
495
496         
497         @Test
498         public void testSetDme2preferredRouterFilePath() throws Exception {
499                 DmaapConsumerConfiguration testSubject;
500                 String dme2preferredRouterFilePath = "";
501
502                 // default test
503                 testSubject = createTestSubject();
504                 testSubject.setDme2preferredRouterFilePath(dme2preferredRouterFilePath);
505         }
506
507         
508         @Test
509         public void testGetCredential() throws Exception {
510                 DmaapConsumerConfiguration testSubject;
511                 Credential result;
512
513                 // default test
514                 testSubject = createTestSubject();
515                 result = testSubject.getCredential();
516         }
517
518         
519         @Test
520         public void testSetCredential() throws Exception {
521                 DmaapConsumerConfiguration testSubject;
522                 Credential credential = null;
523
524                 // default test
525                 testSubject = createTestSubject();
526                 testSubject.setCredential(credential);
527         }
528
529         
530         @Test
531         public void testToString() throws Exception {
532                 DmaapConsumerConfiguration testSubject;
533                 String result;
534
535                 // default test
536                 testSubject = createTestSubject();
537                 result = testSubject.toString();
538         }
539
540         
541         @Test
542         public void testGetTimeLimitForNotificationHandleMs() throws Exception {
543                 DmaapConsumerConfiguration testSubject;
544                 Integer result;
545
546                 // default test
547                 testSubject = createTestSubject();
548                 result = testSubject.getTimeLimitForNotificationHandleMs();
549         }
550
551         
552         @Test
553         public void testSetTimeLimitForNotificationHandleMs() throws Exception {
554                 DmaapConsumerConfiguration testSubject;
555                 Integer timeLimitForNotificationHandleMs = 0;
556
557                 // default test
558                 testSubject = createTestSubject();
559                 testSubject.setTimeLimitForNotificationHandleMs(timeLimitForNotificationHandleMs);
560         }
561 }