01: package org.slf4j;
02:
03: import junit.framework.TestCase;
04:
05: public class NoBindingTest extends TestCase {
06:
07: public void testLogger() {
08: try {
09: Logger logger = LoggerFactory
10: .getLogger(NoBindingTest.class);
11: logger.debug("hello");
12: fail("slf4j-api does not ship with a binding");
13: } catch (NoClassDefFoundError e) {
14:
15: }
16: }
17:
18: public void testMDC() {
19: try {
20: MDC.put("k", "v");
21: fail("slf4j-api does not ship with a binding");
22: } catch (NoClassDefFoundError e) {
23:
24: }
25: }
26: }
|