2 * ============LICENSE_START==========================================
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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.
20 * ============LICENSE_END=============================================
21 * ====================================================================
24 package org.onap.music.eelf.logging.format;
26 import static org.junit.Assert.assertEquals;
28 import org.junit.Test;
30 public class ErrorTypesTest {
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());