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