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