blob: f73a6e06872bf4f8e0fb063dadfe8106eef23156 [file] [log] [blame]
package org.slf4j.helpers;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import org.junit.Test;
public class BasicMDCAdapterTest extends MDCAdapterTestBase {
@Test
public void testClearingMDC() {
mdc.put("testKey", "testValue");
assertFalse(mdc.getCopyOfContextMap().isEmpty());
mdc.clear();
assertNull(mdc.getCopyOfContextMap());
}
}