[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / common / openecomp-logging-lib / openecomp-logging-core / src / test / java / org / openecomp / core / logging / api / LoggerTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
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
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.core.logging.api;
22
23 import org.testng.annotations.Test;
24
25 /**
26  * This is only for manual testing - change ENABLE to 'true'
27  *
28  * @author evitaliy
29  * @since 13/09/2016.
30  */
31 public class LoggerTest {
32
33   private static final boolean ENABLED = false;
34   private static final Logger LOGGER = LoggerFactory.getLogger(LoggerTest.class);
35
36   @Test(enabled = ENABLED)
37   public void testMetrics() throws Exception {
38     LOGGER.metrics("This is metrics");
39   }
40
41   @Test(enabled = ENABLED)
42   public void testAudit() throws Exception {
43     LOGGER.audit("This is audit");
44   }
45
46   @Test(enabled = ENABLED)
47   public void testDebug() throws Exception {
48     LOGGER.debug("This is debug");
49   }
50
51   @Test(enabled = ENABLED)
52   public void testInfo() throws Exception {
53     LOGGER.info("This is info");
54   }
55
56   @Test(enabled = ENABLED)
57   public void testWarn() throws Exception {
58     LOGGER.warn("This is warning");
59   }
60
61   @Test(enabled = ENABLED)
62   public void testError() throws Exception {
63     LOGGER.error("This is error");
64   }
65 }