Added oparent to sdc main
[sdc.git] / common-app-api / src / test / java / org / openecomp / sdc / be / config / BeEcompErrorManagerTest.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.BeEcompErrorManager.ErrorSeverity;
25 import org.openecomp.sdc.common.config.IEcompConfigurationManager;
26
27
28 public class BeEcompErrorManagerTest {
29
30         private BeEcompErrorManager createTestSubject() {
31                 return  BeEcompErrorManager.getInstance();
32         }
33
34         
35         @Test
36         public void testGetInstance() throws Exception {
37                 BeEcompErrorManager result;
38
39                 // default test
40                 result = BeEcompErrorManager.getInstance();
41         }
42
43         
44
45         
46         @Test
47         public void testGetConfigurationManager() throws Exception {
48                 BeEcompErrorManager testSubject;
49                 IEcompConfigurationManager result;
50
51                 // default test
52                 testSubject = createTestSubject();
53                 result = testSubject.getConfigurationManager();
54         }
55
56         
57         @Test
58         public void testLogBeUebAuthenticationError() throws Exception {
59                 BeEcompErrorManager testSubject;
60                 String context = "";
61                 String reason = "";
62
63                 // default test
64                 testSubject = createTestSubject();
65                 testSubject.logBeUebAuthenticationError(context, reason);
66         }
67
68         
69         @Test
70         public void testLogBeHealthCheckRecovery() throws Exception {
71                 BeEcompErrorManager testSubject;
72                 String context = "";
73
74                 // default test
75                 testSubject = createTestSubject();
76                 testSubject.logBeHealthCheckRecovery(context);
77         }
78
79         
80         @Test
81         public void testLogBeHealthCheckJanusGraphRecovery() throws Exception {
82                 BeEcompErrorManager testSubject;
83                 String context = "";
84
85                 // default test
86                 testSubject = createTestSubject();
87                 testSubject.logBeHealthCheckJanusGraphRecovery(context);
88         }
89
90         
91         @Test
92         public void testLogBeHealthCheckElasticSearchRecovery() throws Exception {
93                 BeEcompErrorManager testSubject;
94                 String context = "";
95
96                 // default test
97                 testSubject = createTestSubject();
98                 testSubject.logBeHealthCheckElasticSearchRecovery(context);
99         }
100
101         
102         @Test
103         public void testLogBeHealthCheckUebClusterRecovery() throws Exception {
104                 BeEcompErrorManager testSubject;
105                 String context = "";
106
107                 // default test
108                 testSubject = createTestSubject();
109                 testSubject.logBeHealthCheckUebClusterRecovery(context);
110         }
111
112         
113         @Test
114         public void testLogFeHealthCheckRecovery() throws Exception {
115                 BeEcompErrorManager testSubject;
116                 String context = "";
117
118                 // default test
119                 testSubject = createTestSubject();
120                 testSubject.logFeHealthCheckRecovery(context);
121         }
122
123         
124         @Test
125         public void testLogBeHealthCheckError() throws Exception {
126                 BeEcompErrorManager testSubject;
127                 String context = "";
128
129                 // default test
130                 testSubject = createTestSubject();
131                 testSubject.logBeHealthCheckError(context);
132         }
133
134         
135         @Test
136         public void testLogBeHealthCheckJanusGraphError() throws Exception {
137                 BeEcompErrorManager testSubject;
138                 String context = "";
139
140                 // default test
141                 testSubject = createTestSubject();
142                 testSubject.logBeHealthCheckJanusGraphError(context);
143         }
144
145         
146         @Test
147         public void testLogBeHealthCheckElasticSearchError() throws Exception {
148                 BeEcompErrorManager testSubject;
149                 String context = "";
150
151                 // default test
152                 testSubject = createTestSubject();
153                 testSubject.logBeHealthCheckElasticSearchError(context);
154         }
155
156         
157         @Test
158         public void testLogBeHealthCheckUebClusterError() throws Exception {
159                 BeEcompErrorManager testSubject;
160                 String context = "";
161
162                 // default test
163                 testSubject = createTestSubject();
164                 testSubject.logBeHealthCheckUebClusterError(context);
165         }
166
167         
168         @Test
169         public void testLogFeHealthCheckError() throws Exception {
170                 BeEcompErrorManager testSubject;
171                 String context = "";
172
173                 // default test
174                 testSubject = createTestSubject();
175                 testSubject.logFeHealthCheckError(context);
176         }
177
178         
179         @Test
180         public void testLogBeUebConnectionError() throws Exception {
181                 BeEcompErrorManager testSubject;
182                 String context = "";
183                 String reason = "";
184
185                 // default test
186                 testSubject = createTestSubject();
187                 testSubject.logBeUebConnectionError(context, reason);
188         }
189
190         
191         @Test
192         public void testLogBeUebUnkownHostError() throws Exception {
193                 BeEcompErrorManager testSubject;
194                 String context = "";
195                 String host = "";
196
197                 // default test
198                 testSubject = createTestSubject();
199                 testSubject.logBeUebUnkownHostError(context, host);
200         }
201
202         
203         @Test
204         public void testLogBeComponentMissingError() throws Exception {
205                 BeEcompErrorManager testSubject;
206                 String context = "";
207                 String componentType = "";
208                 String name = "";
209
210                 // default test
211                 testSubject = createTestSubject();
212                 testSubject.logBeComponentMissingError(context, componentType, name);
213         }
214
215         
216         @Test
217         public void testLogBeIncorrectComponentError() throws Exception {
218                 BeEcompErrorManager testSubject;
219                 String context = "";
220                 String componentType = "";
221                 String name = "";
222
223                 // default test
224                 testSubject = createTestSubject();
225                 testSubject.logBeIncorrectComponentError(context, componentType, name);
226         }
227
228         
229         @Test
230         public void testLogBeInvalidConfigurationError() throws Exception {
231                 BeEcompErrorManager testSubject;
232                 String context = "";
233                 String parameterName = "";
234                 String parameterValue = "";
235
236                 // default test
237                 testSubject = createTestSubject();
238                 testSubject.logBeInvalidConfigurationError(context, parameterName, parameterValue);
239         }
240
241         
242         @Test
243         public void testLogBeUebObjectNotFoundError() throws Exception {
244                 BeEcompErrorManager testSubject;
245                 String context = "";
246                 String notFoundObjectName = "";
247
248                 // default test
249                 testSubject = createTestSubject();
250                 testSubject.logBeUebObjectNotFoundError(context, notFoundObjectName);
251         }
252
253         
254         @Test
255         public void testLogBeDistributionEngineInvalidArtifactType() throws Exception {
256                 BeEcompErrorManager testSubject;
257                 String context = "";
258                 String artifactType = "";
259                 String validArtifactTypes = "";
260
261                 // default test
262                 testSubject = createTestSubject();
263                 testSubject.logBeDistributionEngineInvalidArtifactType(context, artifactType, validArtifactTypes);
264         }
265
266         
267         @Test
268         public void testLogBeMissingConfigurationError() throws Exception {
269                 BeEcompErrorManager testSubject;
270                 String context = "";
271                 String parameterName = "";
272
273                 // default test
274                 testSubject = createTestSubject();
275                 testSubject.logBeMissingConfigurationError(context, parameterName);
276         }
277
278         
279         @Test
280         public void testLogBeConfigurationInvalidListSizeError() throws Exception {
281                 BeEcompErrorManager testSubject;
282                 String context = "";
283                 String parameterName = "";
284                 int listMinimumSize = 0;
285
286                 // default test
287                 testSubject = createTestSubject();
288                 testSubject.logBeConfigurationInvalidListSizeError(context, parameterName, listMinimumSize);
289         }
290
291         
292         @Test
293         public void testLogErrorConfigFileFormat() throws Exception {
294                 BeEcompErrorManager testSubject;
295                 String context = "";
296                 String description = "";
297
298                 // default test
299                 testSubject = createTestSubject();
300                 testSubject.logErrorConfigFileFormat(context, description);
301         }
302
303         
304         @Test
305         public void testLogBeMissingArtifactInformationError() throws Exception {
306                 BeEcompErrorManager testSubject;
307                 String context = "";
308                 String missingInfo = "";
309
310                 // default test
311                 testSubject = createTestSubject();
312                 testSubject.logBeMissingArtifactInformationError(context, missingInfo);
313         }
314
315         
316         @Test
317         public void testLogBeArtifactMissingError() throws Exception {
318                 BeEcompErrorManager testSubject;
319                 String context = "";
320                 String artifactName = "";
321
322                 // default test
323                 testSubject = createTestSubject();
324                 testSubject.logBeArtifactMissingError(context, artifactName);
325         }
326
327         
328         @Test
329         public void testLogBeUserMissingError() throws Exception {
330                 BeEcompErrorManager testSubject;
331                 String context = "";
332                 String userId = "";
333
334                 // default test
335                 testSubject = createTestSubject();
336                 testSubject.logBeUserMissingError(context, userId);
337         }
338
339         
340         @Test
341         public void testLogBeInvalidTypeError() throws Exception {
342                 BeEcompErrorManager testSubject;
343                 String context = "";
344                 String type = "";
345                 String name = "";
346
347                 // default test
348                 testSubject = createTestSubject();
349                 testSubject.logBeInvalidTypeError(context, type, name);
350         }
351
352         
353         @Test
354         public void testLogBeInvalidValueError() throws Exception {
355                 BeEcompErrorManager testSubject;
356                 String context = "";
357                 String value = "";
358                 String name = "";
359                 String type = "";
360
361                 // default test
362                 testSubject = createTestSubject();
363                 testSubject.logBeInvalidValueError(context, value, name, type);
364         }
365
366         
367         @Test
368         public void testLogBeArtifactPayloadInvalid() throws Exception {
369                 BeEcompErrorManager testSubject;
370                 String context = "";
371
372                 // default test
373                 testSubject = createTestSubject();
374                 testSubject.logBeArtifactPayloadInvalid(context);
375         }
376
377         
378         @Test
379         public void testLogBeArtifactInformationInvalidError() throws Exception {
380                 BeEcompErrorManager testSubject;
381                 String context = "";
382
383                 // default test
384                 testSubject = createTestSubject();
385                 testSubject.logBeArtifactInformationInvalidError(context);
386         }
387
388         
389         @Test
390         public void testLogBeDistributionMissingError() throws Exception {
391                 BeEcompErrorManager testSubject;
392                 String context = "";
393                 String distributionName = "";
394
395                 // default test
396                 testSubject = createTestSubject();
397                 testSubject.logBeDistributionMissingError(context, distributionName);
398         }
399
400         
401         @Test
402         public void testLogBeGraphObjectMissingError() throws Exception {
403                 BeEcompErrorManager testSubject;
404                 String context = "";
405                 String objectType = "";
406                 String objectName = "";
407
408                 // default test
409                 testSubject = createTestSubject();
410                 testSubject.logBeGraphObjectMissingError(context, objectType, objectName);
411         }
412
413         
414         @Test
415         public void testLogBeInvalidJsonInput() throws Exception {
416                 BeEcompErrorManager testSubject;
417                 String context = "";
418
419                 // default test
420                 testSubject = createTestSubject();
421                 testSubject.logBeInvalidJsonInput(context);
422         }
423
424         
425         @Test
426         public void testLogBeInitializationError() throws Exception {
427                 BeEcompErrorManager testSubject;
428                 String context = "";
429
430                 // default test
431                 testSubject = createTestSubject();
432                 testSubject.logBeInitializationError(context);
433         }
434
435         
436         @Test
437         public void testLogBeFailedAddingResourceInstanceError() throws Exception {
438                 BeEcompErrorManager testSubject;
439                 String context = "";
440                 String resourceName = "";
441                 String serviceId = "";
442
443                 // default test
444                 testSubject = createTestSubject();
445                 testSubject.logBeFailedAddingResourceInstanceError(context, resourceName, serviceId);
446         }
447
448         
449         @Test
450         public void testLogBeUebSystemError() throws Exception {
451                 BeEcompErrorManager testSubject;
452                 String context = "";
453                 String operation = "";
454
455                 // default test
456                 testSubject = createTestSubject();
457                 testSubject.logBeUebSystemError(context, operation);
458         }
459
460         
461         @Test
462         public void testLogBeDistributionEngineSystemError() throws Exception {
463                 BeEcompErrorManager testSubject;
464                 String context = "";
465                 String operation = "";
466
467                 // default test
468                 testSubject = createTestSubject();
469                 testSubject.logBeDistributionEngineSystemError(context, operation);
470         }
471
472         
473         @Test
474         public void testLogBeFailedAddingNodeTypeError() throws Exception {
475                 BeEcompErrorManager testSubject;
476                 String context = "";
477                 String nodeType = "";
478
479                 // default test
480                 testSubject = createTestSubject();
481                 testSubject.logBeFailedAddingNodeTypeError(context, nodeType);
482         }
483
484         
485         @Test
486         public void testLogBeDaoSystemError() throws Exception {
487                 BeEcompErrorManager testSubject;
488                 String context = "";
489
490                 // default test
491                 testSubject = createTestSubject();
492                 testSubject.logBeDaoSystemError(context);
493         }
494
495         
496         @Test
497         public void testLogBeSystemError() throws Exception {
498                 BeEcompErrorManager testSubject;
499                 String context = "";
500
501                 // default test
502                 testSubject = createTestSubject();
503                 testSubject.logBeSystemError(context);
504         }
505
506         
507         @Test
508         public void testLogBeExecuteRollbackError() throws Exception {
509                 BeEcompErrorManager testSubject;
510                 String context = "";
511
512                 // default test
513                 testSubject = createTestSubject();
514                 testSubject.logBeExecuteRollbackError(context);
515         }
516
517         
518         @Test
519         public void testLogBeFailedLockObjectError() throws Exception {
520                 BeEcompErrorManager testSubject;
521                 String context = "";
522                 String type = "";
523                 String id = "";
524
525                 // default test
526                 testSubject = createTestSubject();
527                 testSubject.logBeFailedLockObjectError(context, type, id);
528         }
529
530         
531         @Test
532         public void testLogBeFailedCreateNodeError() throws Exception {
533                 BeEcompErrorManager testSubject;
534                 String context = "";
535                 String nodeName = "";
536                 String status = "";
537
538                 // default test
539                 testSubject = createTestSubject();
540                 testSubject.logBeFailedCreateNodeError(context, nodeName, status);
541         }
542
543         
544         @Test
545         public void testLogBeFailedUpdateNodeError() throws Exception {
546                 BeEcompErrorManager testSubject;
547                 String context = "";
548                 String nodeName = "";
549                 String status = "";
550
551                 // default test
552                 testSubject = createTestSubject();
553                 testSubject.logBeFailedUpdateNodeError(context, nodeName, status);
554         }
555
556         
557         @Test
558         public void testLogBeFailedDeleteNodeError() throws Exception {
559                 BeEcompErrorManager testSubject;
560                 String context = "";
561                 String nodeName = "";
562                 String status = "";
563
564                 // default test
565                 testSubject = createTestSubject();
566                 testSubject.logBeFailedDeleteNodeError(context, nodeName, status);
567         }
568
569         
570         @Test
571         public void testLogBeFailedRetrieveNodeError() throws Exception {
572                 BeEcompErrorManager testSubject;
573                 String context = "";
574                 String nodeName = "";
575                 String status = "";
576
577                 // default test
578                 testSubject = createTestSubject();
579                 testSubject.logBeFailedRetrieveNodeError(context, nodeName, status);
580         }
581
582         
583         @Test
584         public void testLogBeFailedFindParentError() throws Exception {
585                 BeEcompErrorManager testSubject;
586                 String context = "";
587                 String node = "";
588                 String status = "";
589
590                 // default test
591                 testSubject = createTestSubject();
592                 testSubject.logBeFailedFindParentError(context, node, status);
593         }
594
595         
596         @Test
597         public void testLogBeFailedFindAllNodesError() throws Exception {
598                 BeEcompErrorManager testSubject;
599                 String context = "";
600                 String nodeType = "";
601                 String parentNode = "";
602                 String status = "";
603
604                 // default test
605                 testSubject = createTestSubject();
606                 testSubject.logBeFailedFindAllNodesError(context, nodeType, parentNode, status);
607         }
608
609         
610         @Test
611         public void testLogBeFailedFindAssociationError() throws Exception {
612                 BeEcompErrorManager testSubject;
613                 String context = "";
614                 String nodeType = "";
615                 String fromNode = "";
616                 String status = "";
617
618                 // default test
619                 testSubject = createTestSubject();
620                 testSubject.logBeFailedFindAssociationError(context, nodeType, fromNode, status);
621         }
622
623         
624         @Test
625         public void testLogBeComponentCleanerSystemError() throws Exception {
626                 BeEcompErrorManager testSubject;
627                 String context = "";
628                 String operation = "";
629
630                 // default test
631                 testSubject = createTestSubject();
632                 testSubject.logBeComponentCleanerSystemError(context, operation);
633         }
634
635         
636         @Test
637         public void testLogBeRestApiGeneralError() throws Exception {
638                 BeEcompErrorManager testSubject;
639                 String context = "";
640
641                 // default test
642                 testSubject = createTestSubject();
643                 testSubject.logBeRestApiGeneralError(context);
644         }
645
646         
647         @Test
648         public void testLogFqdnResolveError() throws Exception {
649                 BeEcompErrorManager testSubject;
650                 String context = "";
651                 String description = "";
652
653                 // default test
654                 testSubject = createTestSubject();
655                 testSubject.logFqdnResolveError(context, description);
656         }
657
658         
659         @Test
660         public void testLogSiteSwitchoverInfo() throws Exception {
661                 BeEcompErrorManager testSubject;
662                 String context = "";
663                 String description = "";
664
665                 // default test
666                 testSubject = createTestSubject();
667                 testSubject.logSiteSwitchoverInfo(context, description);
668         }
669
670         
671         @Test
672         public void testLogInternalAuthenticationError() throws Exception {
673                 BeEcompErrorManager testSubject;
674                 String context = "";
675                 String description = "";
676                 ErrorSeverity severity = null;
677
678                 // test 1
679                 testSubject = createTestSubject();
680                 severity = null;
681                 testSubject.logInternalAuthenticationError(context, description, severity);
682         }
683
684         
685         @Test
686         public void testLogInternalConnectionError() throws Exception {
687                 BeEcompErrorManager testSubject;
688                 String context = "";
689                 String description = "";
690                 ErrorSeverity severity = null;
691
692                 // test 1
693                 testSubject = createTestSubject();
694                 severity = null;
695                 testSubject.logInternalConnectionError(context, description, severity);
696         }
697
698         
699         @Test
700         public void testLogInternalDataError() throws Exception {
701                 BeEcompErrorManager testSubject;
702                 String context = "";
703                 String description = "";
704                 ErrorSeverity severity = null;
705
706                 // test 1
707                 testSubject = createTestSubject();
708                 severity = null;
709                 testSubject.logInternalDataError(context, description, severity);
710         }
711
712         
713         @Test
714         public void testLogInvalidInputError() throws Exception {
715                 BeEcompErrorManager testSubject;
716                 String context = "";
717                 String description = "";
718                 ErrorSeverity severity = null;
719
720                 // test 1
721                 testSubject = createTestSubject();
722                 severity = null;
723                 testSubject.logInvalidInputError(context, description, severity);
724         }
725
726         
727         @Test
728         public void testLogInternalFlowError() throws Exception {
729                 BeEcompErrorManager testSubject;
730                 String context = "";
731                 String description = "";
732                 ErrorSeverity severity = null;
733
734                 // test 1
735                 testSubject = createTestSubject();
736                 severity = null;
737                 testSubject.logInternalFlowError(context, description, severity);
738         }
739
740         
741         @Test
742         public void testLogInternalUnexpectedError() throws Exception {
743                 BeEcompErrorManager testSubject;
744                 String context = "";
745                 String description = "";
746                 ErrorSeverity severity = null;
747
748                 // test 1
749                 testSubject = createTestSubject();
750                 severity = null;
751                 testSubject.logInternalUnexpectedError(context, description, severity);
752         }
753 }