Added oparent to sdc main
[sdc.git] / common-app-api / src / test / java / org / openecomp / sdc / fe / config / ConfigurationTest.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.fe.config;
22
23 import org.junit.Test;
24 import org.openecomp.sdc.fe.config.Configuration.FeMonitoringConfig;
25
26 import java.util.Date;
27 import java.util.List;
28
29
30 public class ConfigurationTest {
31
32         private Configuration createTestSubject() {
33                 return new Configuration();
34         }
35
36         
37         @Test
38         public void testGetKibanaProtocol() throws Exception {
39                 Configuration testSubject;
40                 String result;
41
42                 // default test
43                 testSubject = createTestSubject();
44                 result = testSubject.getKibanaProtocol();
45         }
46
47         
48         @Test
49         public void testSetKibanaProtocol() throws Exception {
50                 Configuration testSubject;
51                 String kibanaProtocol = "";
52
53                 // default test
54                 testSubject = createTestSubject();
55                 testSubject.setKibanaProtocol(kibanaProtocol);
56         }
57
58         
59         @Test
60         public void testGetKibanaHost() throws Exception {
61                 Configuration testSubject;
62                 String result;
63
64                 // default test
65                 testSubject = createTestSubject();
66                 result = testSubject.getKibanaHost();
67         }
68
69         
70         @Test
71         public void testSetKibanaHost() throws Exception {
72                 Configuration testSubject;
73                 String kibanaHost = "";
74
75                 // default test
76                 testSubject = createTestSubject();
77                 testSubject.setKibanaHost(kibanaHost);
78         }
79
80         
81         @Test
82         public void testGetKibanaPort() throws Exception {
83                 Configuration testSubject;
84                 Integer result;
85
86                 // default test
87                 testSubject = createTestSubject();
88                 result = testSubject.getKibanaPort();
89         }
90
91         
92         @Test
93         public void testSetKibanaPort() throws Exception {
94                 Configuration testSubject;
95                 Integer kibanaPort = 0;
96
97                 // default test
98                 testSubject = createTestSubject();
99                 testSubject.setKibanaPort(kibanaPort);
100         }
101
102         
103         @Test
104         public void testGetSystemMonitoring() throws Exception {
105                 Configuration testSubject;
106                 FeMonitoringConfig result;
107
108                 // default test
109                 testSubject = createTestSubject();
110                 result = testSubject.getSystemMonitoring();
111         }
112
113         
114         @Test
115         public void testSetSystemMonitoring() throws Exception {
116                 Configuration testSubject;
117                 FeMonitoringConfig systemMonitoring = null;
118
119                 // default test
120                 testSubject = createTestSubject();
121                 testSubject.setSystemMonitoring(systemMonitoring);
122         }
123
124         
125         @Test
126         public void testGetHealthCheckSocketTimeoutInMs() throws Exception {
127                 Configuration testSubject;
128                 Integer result;
129
130                 // default test
131                 testSubject = createTestSubject();
132                 result = testSubject.getHealthCheckSocketTimeoutInMs();
133         }
134
135         
136         @Test
137         public void testGetHealthCheckSocketTimeoutInMs_1() throws Exception {
138                 Configuration testSubject;
139                 int defaultVal = 0;
140                 Integer result;
141
142                 // default test
143                 testSubject = createTestSubject();
144                 result = testSubject.getHealthCheckSocketTimeoutInMs(defaultVal);
145         }
146
147         
148         @Test
149         public void testSetHealthCheckSocketTimeoutInMs() throws Exception {
150                 Configuration testSubject;
151                 Integer healthCheckSocketTimeout = 0;
152
153                 // default test
154                 testSubject = createTestSubject();
155                 testSubject.setHealthCheckSocketTimeoutInMs(healthCheckSocketTimeout);
156         }
157
158         
159         @Test
160         public void testGetHealthCheckIntervalInSeconds() throws Exception {
161                 Configuration testSubject;
162                 Integer result;
163
164                 // default test
165                 testSubject = createTestSubject();
166                 result = testSubject.getHealthCheckIntervalInSeconds();
167         }
168
169         
170         @Test
171         public void testGetHealthCheckIntervalInSeconds_1() throws Exception {
172                 Configuration testSubject;
173                 int defaultVal = 0;
174                 Integer result;
175
176                 // default test
177                 testSubject = createTestSubject();
178                 result = testSubject.getHealthCheckIntervalInSeconds(defaultVal);
179         }
180
181         
182         @Test
183         public void testSetHealthCheckIntervalInSeconds() throws Exception {
184                 Configuration testSubject;
185                 Integer healthCheckInterval = 0;
186
187                 // default test
188                 testSubject = createTestSubject();
189                 testSubject.setHealthCheckIntervalInSeconds(healthCheckInterval);
190         }
191
192         
193         @Test
194         public void testGetReleased() throws Exception {
195                 Configuration testSubject;
196                 Date result;
197
198                 // default test
199                 testSubject = createTestSubject();
200                 result = testSubject.getReleased();
201         }
202
203         
204         @Test
205         public void testGetVersion() throws Exception {
206                 Configuration testSubject;
207                 String result;
208
209                 // default test
210                 testSubject = createTestSubject();
211                 result = testSubject.getVersion();
212         }
213
214         
215         @Test
216         public void testSetReleased() throws Exception {
217                 Configuration testSubject;
218                 Date released = null;
219
220                 // default test
221                 testSubject = createTestSubject();
222                 testSubject.setReleased(released);
223         }
224
225         
226         @Test
227         public void testSetVersion() throws Exception {
228                 Configuration testSubject;
229                 String version = "";
230
231                 // default test
232                 testSubject = createTestSubject();
233                 testSubject.setVersion(version);
234         }
235
236         
237         @Test
238         public void testGetConnection() throws Exception {
239                 Configuration testSubject;
240                 Connection result;
241
242                 // default test
243                 testSubject = createTestSubject();
244                 result = testSubject.getConnection();
245         }
246
247         
248         @Test
249         public void testSetConnection() throws Exception {
250                 Configuration testSubject;
251                 Connection connection = null;
252
253                 // default test
254                 testSubject = createTestSubject();
255                 testSubject.setConnection(connection);
256         }
257
258         
259         @Test
260         public void testGetProtocols() throws Exception {
261                 Configuration testSubject;
262                 List<String> result;
263
264                 // default test
265                 testSubject = createTestSubject();
266                 result = testSubject.getProtocols();
267         }
268
269         
270         @Test
271         public void testSetProtocols() throws Exception {
272                 Configuration testSubject;
273                 List<String> protocols = null;
274
275                 // default test
276                 testSubject = createTestSubject();
277                 testSubject.setProtocols(protocols);
278         }
279
280         
281         @Test
282         public void testGetBeHost() throws Exception {
283                 Configuration testSubject;
284                 String result;
285
286                 // default test
287                 testSubject = createTestSubject();
288                 result = testSubject.getBeHost();
289         }
290
291         
292         @Test
293         public void testSetBeHost() throws Exception {
294                 Configuration testSubject;
295                 String beHost = "";
296
297                 // default test
298                 testSubject = createTestSubject();
299                 testSubject.setBeHost(beHost);
300         }
301
302         
303         @Test
304         public void testGetBeHttpPort() throws Exception {
305                 Configuration testSubject;
306                 Integer result;
307
308                 // default test
309                 testSubject = createTestSubject();
310                 result = testSubject.getBeHttpPort();
311         }
312
313         
314         @Test
315         public void testSetBeHttpPort() throws Exception {
316                 Configuration testSubject;
317                 Integer beHttpPort = 0;
318
319                 // default test
320                 testSubject = createTestSubject();
321                 testSubject.setBeHttpPort(beHttpPort);
322         }
323
324         
325         @Test
326         public void testGetBeSslPort() throws Exception {
327                 Configuration testSubject;
328                 Integer result;
329
330                 // default test
331                 testSubject = createTestSubject();
332                 result = testSubject.getBeSslPort();
333         }
334
335         
336         @Test
337         public void testSetBeSslPort() throws Exception {
338                 Configuration testSubject;
339                 Integer beSslPort = 0;
340
341                 // default test
342                 testSubject = createTestSubject();
343                 testSubject.setBeSslPort(beSslPort);
344         }
345
346         
347         @Test
348         public void testGetBeContext() throws Exception {
349                 Configuration testSubject;
350                 String result;
351
352                 // default test
353                 testSubject = createTestSubject();
354                 result = testSubject.getBeContext();
355         }
356
357         
358         @Test
359         public void testSetBeContext() throws Exception {
360                 Configuration testSubject;
361                 String beContext = "";
362
363                 // default test
364                 testSubject = createTestSubject();
365                 testSubject.setBeContext(beContext);
366         }
367
368         
369         @Test
370         public void testGetBeProtocol() throws Exception {
371                 Configuration testSubject;
372                 String result;
373
374                 // default test
375                 testSubject = createTestSubject();
376                 result = testSubject.getBeProtocol();
377         }
378
379         
380         @Test
381         public void testSetBeProtocol() throws Exception {
382                 Configuration testSubject;
383                 String beProtocol = "";
384
385                 // default test
386                 testSubject = createTestSubject();
387                 testSubject.setBeProtocol(beProtocol);
388         }
389
390         
391         @Test
392         public void testGetThreadpoolSize() throws Exception {
393                 Configuration testSubject;
394                 int result;
395
396                 // default test
397                 testSubject = createTestSubject();
398                 result = testSubject.getThreadpoolSize();
399         }
400
401         
402         @Test
403         public void testSetThreadpoolSize() throws Exception {
404                 Configuration testSubject;
405                 int threadpoolSize = 0;
406
407                 // default test
408                 testSubject = createTestSubject();
409                 testSubject.setThreadpoolSize(threadpoolSize);
410         }
411
412         
413         @Test
414         public void testGetRequestTimeout() throws Exception {
415                 Configuration testSubject;
416                 int result;
417
418                 // default test
419                 testSubject = createTestSubject();
420                 result = testSubject.getRequestTimeout();
421         }
422
423         
424         @Test
425         public void testSetRequestTimeout() throws Exception {
426                 Configuration testSubject;
427                 int requestTimeout = 0;
428
429                 // default test
430                 testSubject = createTestSubject();
431                 testSubject.setRequestTimeout(requestTimeout);
432         }
433
434         
435         @Test
436         public void testGetIdentificationHeaderFields() throws Exception {
437                 Configuration testSubject;
438                 List<List<String>> result;
439
440                 // default test
441                 testSubject = createTestSubject();
442                 result = testSubject.getIdentificationHeaderFields();
443         }
444
445         
446         @Test
447         public void testSetIdentificationHeaderFields() throws Exception {
448                 Configuration testSubject;
449                 List<List<String>> identificationHeaderFields = null;
450
451                 // default test
452                 testSubject = createTestSubject();
453                 testSubject.setIdentificationHeaderFields(identificationHeaderFields);
454         }
455
456         
457         @Test
458         public void testGetOptionalHeaderFields() throws Exception {
459                 Configuration testSubject;
460                 List<List<String>> result;
461
462                 // default test
463                 testSubject = createTestSubject();
464                 result = testSubject.getOptionalHeaderFields();
465         }
466
467         
468         @Test
469         public void testSetOptionalHeaderFields() throws Exception {
470                 Configuration testSubject;
471                 List<List<String>> optionalHeaderFields = null;
472
473                 // default test
474                 testSubject = createTestSubject();
475                 testSubject.setOptionalHeaderFields(optionalHeaderFields);
476         }
477
478         
479         @Test
480         public void testGetForwardHeaderFields() throws Exception {
481                 Configuration testSubject;
482                 List<String> result;
483
484                 // default test
485                 testSubject = createTestSubject();
486                 result = testSubject.getForwardHeaderFields();
487         }
488
489         
490         @Test
491         public void testSetForwardHeaderFields() throws Exception {
492                 Configuration testSubject;
493                 List<String> forwardHeaderFields = null;
494
495                 // default test
496                 testSubject = createTestSubject();
497                 testSubject.setForwardHeaderFields(forwardHeaderFields);
498         }
499
500         
501         @Test
502         public void testGetFeFqdn() throws Exception {
503                 Configuration testSubject;
504                 String result;
505
506                 // default test
507                 testSubject = createTestSubject();
508                 result = testSubject.getFeFqdn();
509         }
510
511         
512         @Test
513         public void testSetFeFqdn() throws Exception {
514                 Configuration testSubject;
515                 String feFqdn = "";
516
517                 // default test
518                 testSubject = createTestSubject();
519                 testSubject.setFeFqdn(feFqdn);
520         }
521
522
523         @Test
524         public void testToString() throws Exception {
525                 Configuration testSubject;
526                 String result;
527
528                 // default test
529                 testSubject = createTestSubject();
530                 result = testSubject.toString();
531         }
532 }