ErrorTypes.java-junits
[music.git] / music-core / src / test / java / org / onap / music / eelf / logging / format / ErrorTypesTest.java
1 /*
2  * ============LICENSE_START==========================================
3  * org.onap.music
4  * ===================================================================
5  *  Copyright (c) 2017 AT&T Intellectual Property
6  *  Modifications Copyright (C) 2019 IBM 
7  * ===================================================================
8  *  Licensed under the Apache License, Version 2.0 (the "License");
9  *  you may not use this file except in compliance with the License.
10  *  You may obtain a copy of the License at
11  * 
12  *     http://www.apache.org/licenses/LICENSE-2.0
13  * 
14  *  Unless required by applicable law or agreed to in writing, software
15  *  distributed under the License is distributed on an "AS IS" BASIS,
16  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  *  See the License for the specific language governing permissions and
18  *  limitations under the License.
19  * 
20  * ============LICENSE_END=============================================
21  * ====================================================================
22  */
23
24 package org.onap.music.eelf.logging.format;
25
26 import static org.junit.Assert.assertEquals;
27
28 import org.junit.Test;
29
30 public class ErrorTypesTest {
31
32         @Test
33         public void Test1()
34         {
35                 assertEquals("CONNECTIONERROR",ErrorTypes.CONNECTIONERROR.name());
36                 assertEquals("SESSIONEXPIRED",ErrorTypes.SESSIONEXPIRED.name());
37                 assertEquals("AUTHENTICATIONERROR",ErrorTypes.AUTHENTICATIONERROR.name());
38                 assertEquals("CACHEERROR",ErrorTypes.CACHEERROR.name());
39                 assertEquals("SERVICEUNAVAILABLE",ErrorTypes.SERVICEUNAVAILABLE.name());
40                 assertEquals("QUERYERROR",ErrorTypes.QUERYERROR.name());
41                 assertEquals("DATAERROR",ErrorTypes.DATAERROR.name());
42                 assertEquals("GENERALSERVICEERROR",ErrorTypes.GENERALSERVICEERROR.name());
43                 assertEquals("MUSICSERVICEERROR",ErrorTypes.MUSICSERVICEERROR.name());
44                 assertEquals("LOCKINGERROR",ErrorTypes.LOCKINGERROR.name());
45                 assertEquals("UNKNOWN",ErrorTypes.UNKNOWN.name());
46                 
47         }
48 }