2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.core.logging.api;
23 import org.testng.annotations.Test;
26 * This is only for manual testing - change ENABLE to 'true'
31 public class LoggerTest {
33 private static final boolean ENABLED = false;
34 private static final Logger LOGGER = LoggerFactory.getLogger(LoggerTest.class);
36 @Test(enabled = ENABLED)
37 public void testMetrics() throws Exception {
38 LOGGER.metrics("This is metrics");
41 @Test(enabled = ENABLED)
42 public void testAudit() throws Exception {
43 LOGGER.audit("This is audit");
46 @Test(enabled = ENABLED)
47 public void testDebug() throws Exception {
48 LOGGER.debug("This is debug");
51 @Test(enabled = ENABLED)
52 public void testInfo() throws Exception {
53 LOGGER.info("This is info");
56 @Test(enabled = ENABLED)
57 public void testWarn() throws Exception {
58 LOGGER.warn("This is warning");
61 @Test(enabled = ENABLED)
62 public void testError() throws Exception {
63 LOGGER.error("This is error");