re base code
[sdc.git] / common-app-api / src / test / java / org / openecomp / sdc / be / config / DistributionEngineConfigurationTest.java
1 package org.openecomp.sdc.be.config;
2
3 import org.junit.Test;
4 import org.openecomp.sdc.be.config.DistributionEngineConfiguration.ComponentArtifactTypesConfig;
5 import org.openecomp.sdc.be.config.DistributionEngineConfiguration.CreateTopicConfig;
6 import org.openecomp.sdc.be.config.DistributionEngineConfiguration.DistributionNotificationTopicConfig;
7 import org.openecomp.sdc.be.config.DistributionEngineConfiguration.DistributionStatusTopicConfig;
8 import org.openecomp.sdc.common.http.config.ExternalServiceConfig;
9
10 import java.util.List;
11
12
13 public class DistributionEngineConfigurationTest {
14
15         private DistributionEngineConfiguration createTestSubject() {
16                 return new DistributionEngineConfiguration();
17         }
18
19         
20         @Test
21         public void testGetUebServers() throws Exception {
22                 DistributionEngineConfiguration testSubject;
23                 List<String> result;
24
25                 // default test
26                 testSubject = createTestSubject();
27                 result = testSubject.getUebServers();
28         }
29
30         
31         @Test
32         public void testSetUebServers() throws Exception {
33                 DistributionEngineConfiguration testSubject;
34                 List<String> uebServers = null;
35
36                 // default test
37                 testSubject = createTestSubject();
38                 testSubject.setUebServers(uebServers);
39         }
40
41         
42         @Test
43         public void testGetDistributionNotifTopicName() throws Exception {
44                 DistributionEngineConfiguration testSubject;
45                 String result;
46
47                 // default test
48                 testSubject = createTestSubject();
49                 result = testSubject.getDistributionNotifTopicName();
50         }
51
52         
53         @Test
54         public void testSetDistributionNotifTopicName() throws Exception {
55                 DistributionEngineConfiguration testSubject;
56                 String distributionNotifTopicName = "";
57
58                 // default test
59                 testSubject = createTestSubject();
60                 testSubject.setDistributionNotifTopicName(distributionNotifTopicName);
61         }
62
63         
64         @Test
65         public void testGetDistributionStatusTopicName() throws Exception {
66                 DistributionEngineConfiguration testSubject;
67                 String result;
68
69                 // default test
70                 testSubject = createTestSubject();
71                 result = testSubject.getDistributionStatusTopicName();
72         }
73
74         
75         @Test
76         public void testSetDistributionStatusTopicName() throws Exception {
77                 DistributionEngineConfiguration testSubject;
78                 String distributionStatusTopicName = "";
79
80                 // default test
81                 testSubject = createTestSubject();
82                 testSubject.setDistributionStatusTopicName(distributionStatusTopicName);
83         }
84
85         
86         @Test
87         public void testGetInitRetryIntervalSec() throws Exception {
88                 DistributionEngineConfiguration testSubject;
89                 Integer result;
90
91                 // default test
92                 testSubject = createTestSubject();
93                 result = testSubject.getInitRetryIntervalSec();
94         }
95
96         
97         @Test
98         public void testSetInitRetryIntervalSec() throws Exception {
99                 DistributionEngineConfiguration testSubject;
100                 Integer initRetryIntervalSec = 0;
101
102                 // default test
103                 testSubject = createTestSubject();
104                 testSubject.setInitRetryIntervalSec(initRetryIntervalSec);
105         }
106
107         
108         @Test
109         public void testGetDistribNotifServiceArtifactTypes() throws Exception {
110                 DistributionEngineConfiguration testSubject;
111                 ComponentArtifactTypesConfig result;
112
113                 // default test
114                 testSubject = createTestSubject();
115                 result = testSubject.getDistribNotifServiceArtifactTypes();
116         }
117
118         
119         @Test
120         public void testSetDistribNotifServiceArtifactTypes() throws Exception {
121                 DistributionEngineConfiguration testSubject;
122                 ComponentArtifactTypesConfig distribNotifServiceArtifactTypes = null;
123
124                 // default test
125                 testSubject = createTestSubject();
126                 testSubject.setDistribNotifServiceArtifactTypes(distribNotifServiceArtifactTypes);
127         }
128
129         
130         @Test
131         public void testGetDistribNotifResourceArtifactTypes() throws Exception {
132                 DistributionEngineConfiguration testSubject;
133                 ComponentArtifactTypesConfig result;
134
135                 // default test
136                 testSubject = createTestSubject();
137                 result = testSubject.getDistribNotifResourceArtifactTypes();
138         }
139
140         
141         @Test
142         public void testSetDistribNotifResourceArtifactTypes() throws Exception {
143                 DistributionEngineConfiguration testSubject;
144                 ComponentArtifactTypesConfig distribNotifResourceArtifactTypes = null;
145
146                 // default test
147                 testSubject = createTestSubject();
148                 testSubject.setDistribNotifResourceArtifactTypes(distribNotifResourceArtifactTypes);
149         }
150
151         
152         @Test
153         public void testGetUebPublicKey() throws Exception {
154                 DistributionEngineConfiguration testSubject;
155                 String result;
156
157                 // default test
158                 testSubject = createTestSubject();
159                 result = testSubject.getUebPublicKey();
160         }
161
162         
163         @Test
164         public void testSetUebPublicKey() throws Exception {
165                 DistributionEngineConfiguration testSubject;
166                 String uebPublicKey = "";
167
168                 // default test
169                 testSubject = createTestSubject();
170                 testSubject.setUebPublicKey(uebPublicKey);
171         }
172
173         
174         @Test
175         public void testGetUebSecretKey() throws Exception {
176                 DistributionEngineConfiguration testSubject;
177                 String result;
178
179                 // default test
180                 testSubject = createTestSubject();
181                 result = testSubject.getUebSecretKey();
182         }
183
184         
185         @Test
186         public void testSetUebSecretKey() throws Exception {
187                 DistributionEngineConfiguration testSubject;
188                 String uebSecretKey = "";
189
190                 // default test
191                 testSubject = createTestSubject();
192                 testSubject.setUebSecretKey(uebSecretKey);
193         }
194
195         
196         @Test
197         public void testGetEnvironments() throws Exception {
198                 DistributionEngineConfiguration testSubject;
199                 List<String> result;
200
201                 // default test
202                 testSubject = createTestSubject();
203                 result = testSubject.getEnvironments();
204         }
205
206         
207         
208         @Test
209         public void testSetEnvironments() throws Exception {
210                 DistributionEngineConfiguration testSubject;
211                 List<String> environments = null;
212
213                 // test 1
214                 testSubject = createTestSubject();
215                 environments = null;
216                 testSubject.setEnvironments(environments);
217         }
218
219         
220         @Test
221         public void testGetDistributionStatusTopic() throws Exception {
222                 DistributionEngineConfiguration testSubject;
223                 DistributionStatusTopicConfig result;
224
225                 // default test
226                 testSubject = createTestSubject();
227                 result = testSubject.getDistributionStatusTopic();
228         }
229
230         
231         @Test
232         public void testSetDistributionStatusTopic() throws Exception {
233                 DistributionEngineConfiguration testSubject;
234                 DistributionStatusTopicConfig distributionStatusTopic = null;
235
236                 // default test
237                 testSubject = createTestSubject();
238                 testSubject.setDistributionStatusTopic(distributionStatusTopic);
239         }
240
241         
242         @Test
243         public void testGetInitMaxIntervalSec() throws Exception {
244                 DistributionEngineConfiguration testSubject;
245                 Integer result;
246
247                 // default test
248                 testSubject = createTestSubject();
249                 result = testSubject.getInitMaxIntervalSec();
250         }
251
252         
253         @Test
254         public void testSetInitMaxIntervalSec() throws Exception {
255                 DistributionEngineConfiguration testSubject;
256                 Integer initMaxIntervalSec = 0;
257
258                 // default test
259                 testSubject = createTestSubject();
260                 testSubject.setInitMaxIntervalSec(initMaxIntervalSec);
261         }
262
263         
264         @Test
265         public void testGetCreateTopic() throws Exception {
266                 DistributionEngineConfiguration testSubject;
267                 CreateTopicConfig result;
268
269                 // default test
270                 testSubject = createTestSubject();
271                 result = testSubject.getCreateTopic();
272         }
273
274         
275         @Test
276         public void testSetCreateTopic() throws Exception {
277                 DistributionEngineConfiguration testSubject;
278                 CreateTopicConfig createTopic = null;
279
280                 // default test
281                 testSubject = createTestSubject();
282                 testSubject.setCreateTopic(createTopic);
283         }
284
285         
286         @Test
287         public void testIsStartDistributionEngine() throws Exception {
288                 DistributionEngineConfiguration testSubject;
289                 boolean result;
290
291                 // default test
292                 testSubject = createTestSubject();
293                 result = testSubject.isStartDistributionEngine();
294         }
295
296         
297         @Test
298         public void testSetStartDistributionEngine() throws Exception {
299                 DistributionEngineConfiguration testSubject;
300                 boolean startDistributionEngine = false;
301
302                 // default test
303                 testSubject = createTestSubject();
304                 testSubject.setStartDistributionEngine(startDistributionEngine);
305         }
306
307         
308         @Test
309         public void testGetDistributionNotificationTopic() throws Exception {
310                 DistributionEngineConfiguration testSubject;
311                 DistributionNotificationTopicConfig result;
312
313                 // default test
314                 testSubject = createTestSubject();
315                 result = testSubject.getDistributionNotificationTopic();
316         }
317
318         
319         @Test
320         public void testSetDistributionNotificationTopic() throws Exception {
321                 DistributionEngineConfiguration testSubject;
322                 DistributionNotificationTopicConfig distributionNotificationTopic = null;
323
324                 // default test
325                 testSubject = createTestSubject();
326                 testSubject.setDistributionNotificationTopic(distributionNotificationTopic);
327         }
328
329         
330         @Test
331         public void testGetDefaultArtifactInstallationTimeout() throws Exception {
332                 DistributionEngineConfiguration testSubject;
333                 int result;
334
335                 // default test
336                 testSubject = createTestSubject();
337                 result = testSubject.getDefaultArtifactInstallationTimeout();
338         }
339
340         
341         @Test
342         public void testSetDefaultArtifactInstallationTimeout() throws Exception {
343                 DistributionEngineConfiguration testSubject;
344                 int defaultArtifactInstallationTimeout = 0;
345
346                 // default test
347                 testSubject = createTestSubject();
348                 testSubject.setDefaultArtifactInstallationTimeout(defaultArtifactInstallationTimeout);
349         }
350
351         
352         @Test
353         public void testIsUseHttpsWithDmaap() throws Exception {
354                 DistributionEngineConfiguration testSubject;
355                 boolean result;
356
357                 // default test
358                 testSubject = createTestSubject();
359                 result = testSubject.isUseHttpsWithDmaap();
360         }
361
362         
363         @Test
364         public void testSetUseHttpsWithDmaap() throws Exception {
365                 DistributionEngineConfiguration testSubject;
366                 boolean useHttpsWithDmaap = false;
367
368                 // default test
369                 testSubject = createTestSubject();
370                 testSubject.setUseHttpsWithDmaap(useHttpsWithDmaap);
371         }
372
373
374         
375         @Test
376         public void testGetAaiConfig() throws Exception {
377         DistributionEngineConfiguration testSubject;ExternalServiceConfig result;
378         
379         // default test 1
380         testSubject=createTestSubject();result=testSubject.getAaiConfig();
381         }
382
383
384         
385         @Test
386         public void testGetAllowedTimeBeforeStaleSec() throws Exception {
387         DistributionEngineConfiguration testSubject;Integer result;
388         
389         // default test 1
390         testSubject=createTestSubject();result=testSubject.getAllowedTimeBeforeStaleSec();
391         }
392
393
394         
395         @Test
396         public void testGetCurrentArtifactInstallationTimeout() throws Exception {
397         DistributionEngineConfiguration testSubject;int result;
398         
399         // default test 1
400         testSubject=createTestSubject();result=testSubject.getCurrentArtifactInstallationTimeout();
401         }
402
403
404         
405         @Test
406         public void testGetCurrentArtifactInstallationTimeout_1() throws Exception {
407         DistributionEngineConfiguration testSubject;int result;
408         
409         // default test 1
410         testSubject=createTestSubject();result=testSubject.getCurrentArtifactInstallationTimeout();
411         }
412
413
414         
415         @Test
416         public void testSetCurrentArtifactInstallationTimeout() throws Exception {
417         DistributionEngineConfiguration testSubject;int currentArtifactInstallationTimeout = 0;
418         
419         
420         // default test
421         testSubject=createTestSubject();testSubject.setCurrentArtifactInstallationTimeout(currentArtifactInstallationTimeout);
422         }
423
424
425         
426         @Test
427         public void testGetOpEnvRecoveryIntervalSec() throws Exception {
428         DistributionEngineConfiguration testSubject;Integer result;
429         
430         // default test
431         testSubject=createTestSubject();result=testSubject.getOpEnvRecoveryIntervalSec();
432         }
433
434
435         
436         @Test
437         public void testSetOpEnvRecoveryIntervalSec() throws Exception {
438         DistributionEngineConfiguration testSubject;Integer opEnvRecoveryIntervalSec = 0;
439         
440         
441         // default test
442         testSubject=createTestSubject();testSubject.setOpEnvRecoveryIntervalSec(opEnvRecoveryIntervalSec);
443         }
444
445
446         
447         @Test
448         public void testGetAllowedTimeBeforeStaleSec_1() throws Exception {
449         DistributionEngineConfiguration testSubject;Integer result;
450         
451         // default test 1
452         testSubject=createTestSubject();result=testSubject.getAllowedTimeBeforeStaleSec();
453         }
454
455
456         
457         @Test
458         public void testSetAllowedTimeBeforeStaleSec() throws Exception {
459         DistributionEngineConfiguration testSubject;Integer allowedTimeBeforeStaleSec = 0;
460         
461         
462         // default test
463         testSubject=createTestSubject();testSubject.setAllowedTimeBeforeStaleSec(allowedTimeBeforeStaleSec);
464         }
465
466
467         
468         @Test
469         public void testGetAaiConfig_1() throws Exception {
470         DistributionEngineConfiguration testSubject;ExternalServiceConfig result;
471         
472         // default test 1
473         testSubject=createTestSubject();result=testSubject.getAaiConfig();
474         }
475
476
477         
478         @Test
479         public void testSetAaiConfig() throws Exception {
480         DistributionEngineConfiguration testSubject;ExternalServiceConfig aaiConfig = null;
481         
482         
483         // default test
484         testSubject=createTestSubject();testSubject.setAaiConfig(aaiConfig);
485         }
486
487
488         
489         @Test
490         public void testGetMsoConfig() throws Exception {
491         DistributionEngineConfiguration testSubject;ExternalServiceConfig result;
492         
493         // default test
494         testSubject=createTestSubject();result=testSubject.getMsoConfig();
495         }
496
497
498         
499         @Test
500         public void testSetMsoConfig() throws Exception {
501         DistributionEngineConfiguration testSubject;ExternalServiceConfig msoConfig = null;
502         
503         
504         // default test
505         testSubject=createTestSubject();testSubject.setMsoConfig(msoConfig);
506         }
507         
508         private ComponentArtifactTypesConfig createTestSubject2() {
509                 return new DistributionEngineConfiguration.ComponentArtifactTypesConfig();
510         }
511
512         
513         @Test
514         public void testGetInfo() throws Exception {
515                 ComponentArtifactTypesConfig testSubject;
516                 List<String> result;
517
518                 // default test
519                 testSubject = createTestSubject2();
520                 result = testSubject.getInfo();
521         }
522
523         
524         @Test
525         public void testSetInfo() throws Exception {
526                 ComponentArtifactTypesConfig testSubject;
527                 List<String> info = null;
528
529                 // default test
530                 testSubject = createTestSubject2();
531                 testSubject.setInfo(info);
532         }
533
534         
535         @Test
536         public void testGetLifecycle() throws Exception {
537                 ComponentArtifactTypesConfig testSubject;
538                 List<String> result;
539
540                 // default test
541                 testSubject = createTestSubject2();
542                 result = testSubject.getLifecycle();
543         }
544
545         
546         @Test
547         public void testSetLifecycle() throws Exception {
548                 ComponentArtifactTypesConfig testSubject;
549                 List<String> lifecycle = null;
550
551                 // default test
552                 testSubject = createTestSubject2();
553                 testSubject.setLifecycle(lifecycle);
554         }
555
556         
557         @Test
558         public void testToString() throws Exception {
559                 ComponentArtifactTypesConfig testSubject;
560                 String result;
561
562                 // default test
563                 testSubject = createTestSubject2();
564                 result = testSubject.toString();
565         }
566         
567         
568 }