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