1 package org.slf4j;
2
3 import junit.framework.TestCase;
4
5 public class NoBindingTest extends TestCase {
6
7 public void testLogger() {
8 try {
9 Logger logger = LoggerFactory.getLogger(NoBindingTest.class);
10 logger.debug("hello");
11 fail("slf4j-api does not ship with a binding");
12 } catch (NoClassDefFoundError e) {
13
14 }
15 }
16
17 public void testMDC() {
18 try {
19 MDC.put("k", "v");
20 fail("slf4j-api does not ship with a binding");
21 } catch (NoClassDefFoundError e) {
22
23 }
24 }
25 }