aboutsummaryrefslogtreecommitdiffstats
path: root/feature-eelf
diff options
context:
space:
mode:
authorLiam Fallon <liam.fallon@est.tech>2020-06-16 07:01:36 +0000
committerGerrit Code Review <gerrit@onap.org>2020-06-16 07:01:36 +0000
commit1fdba85a145be36060262d4575995a7752d7a396 (patch)
tree55de7f679aa4e46bc6244d280c276387e08a4017 /feature-eelf
parent6218853b9a001ef74300ab7d243685950ef32ad6 (diff)
parent6e22f6ba5a83c8e55bec56798e8e4c7a3d4b002b (diff)
Merge "reduce sonar issue - 2 rev"
Diffstat (limited to 'feature-eelf')
-rw-r--r--feature-eelf/src/test/java/org/onap/policy/drools/eelf/test/EElfTest.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/feature-eelf/src/test/java/org/onap/policy/drools/eelf/test/EElfTest.java b/feature-eelf/src/test/java/org/onap/policy/drools/eelf/test/EElfTest.java
index c0f271cf..dfa85948 100644
--- a/feature-eelf/src/test/java/org/onap/policy/drools/eelf/test/EElfTest.java
+++ b/feature-eelf/src/test/java/org/onap/policy/drools/eelf/test/EElfTest.java
@@ -20,6 +20,7 @@
package org.onap.policy.drools.eelf.test;
+import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
@@ -76,11 +77,11 @@ public class EElfTest {
* @param slf4jLogger SLF4J Logger
*/
protected void assertLogLevels(EELFLogger eelfLogger, Logger slf4jLogger) {
- assertTrue(slf4jLogger.isDebugEnabled() == eelfLogger.isDebugEnabled());
- assertTrue(slf4jLogger.isInfoEnabled() == eelfLogger.isInfoEnabled());
- assertTrue(slf4jLogger.isErrorEnabled() == eelfLogger.isErrorEnabled());
- assertTrue(slf4jLogger.isWarnEnabled() == eelfLogger.isWarnEnabled());
- assertTrue(slf4jLogger.isTraceEnabled() == eelfLogger.isTraceEnabled());
+ assertEquals(slf4jLogger.isDebugEnabled(), eelfLogger.isDebugEnabled());
+ assertEquals(slf4jLogger.isInfoEnabled(), eelfLogger.isInfoEnabled());
+ assertEquals(slf4jLogger.isErrorEnabled(), eelfLogger.isErrorEnabled());
+ assertEquals(slf4jLogger.isWarnEnabled(), eelfLogger.isWarnEnabled());
+ assertEquals(slf4jLogger.isTraceEnabled(), eelfLogger.isTraceEnabled());
}
@Test