summaryrefslogtreecommitdiffstats
path: root/src/test/java/org/onap/sdc/common/onaplog/OnapLoggerGenericTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/org/onap/sdc/common/onaplog/OnapLoggerGenericTest.java')
-rw-r--r--src/test/java/org/onap/sdc/common/onaplog/OnapLoggerGenericTest.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/test/java/org/onap/sdc/common/onaplog/OnapLoggerGenericTest.java b/src/test/java/org/onap/sdc/common/onaplog/OnapLoggerGenericTest.java
index 57adcd3..76c33db 100644
--- a/src/test/java/org/onap/sdc/common/onaplog/OnapLoggerGenericTest.java
+++ b/src/test/java/org/onap/sdc/common/onaplog/OnapLoggerGenericTest.java
@@ -26,7 +26,6 @@ import static org.junit.Assert.assertNull;
import com.google.common.collect.ImmutableList;
import org.junit.Test;
-import org.onap.sdc.common.onaplog.interfaces.IOnapLogConfiguration;
import org.slf4j.MDC;
import uk.org.lidalia.slf4jtest.LoggingEvent;
@@ -47,9 +46,11 @@ public class OnapLoggerGenericTest {
stopwatch.stop();
// then
- assertNotNull(MDC.get(IOnapLogConfiguration.MDC_BEGIN_TIMESTAMP));
- assertNotNull(MDC.get(IOnapLogConfiguration.MDC_END_TIMESTAMP));
- assertNotNull(MDC.get(IOnapLogConfiguration.MDC_ELAPSED_TIME));
+ assertNotNull(MDC.get(OnapLogConfiguration.MDC_BEGIN_TIMESTAMP));
+ assertNotNull(MDC.get(OnapLogConfiguration.MDC_END_TIMESTAMP));
+ assertNotNull(MDC.get(OnapLogConfiguration.MDC_ELAPSED_TIME));
+
+ MDC.clear();
}
@Test
@@ -70,6 +71,8 @@ public class OnapLoggerGenericTest {
log = logs.get(1);
assertEquals(ERROR, log.getLevel().name());
assertEquals(SECOND_ERROR_EXPECTED_MESSAGE, log.getMessage());
+
+ MDC.clear();
}
@Test