[slf4j-dev] svn commit: r802 - slf4j/trunk/slf4j-api/src/test/java/org/slf4j

ceki at slf4j.org ceki at slf4j.org
Fri May 4 17:42:50 CEST 2007


Author: ceki
Date: Fri May  4 17:42:50 2007
New Revision: 802

Added:
   slf4j/trunk/slf4j-api/src/test/java/org/slf4j/NoBindingTest.java

Log:
 better error reporting when no bindign is available

Added: slf4j/trunk/slf4j-api/src/test/java/org/slf4j/NoBindingTest.java
==============================================================================
--- (empty file)
+++ slf4j/trunk/slf4j-api/src/test/java/org/slf4j/NoBindingTest.java	Fri May  4 17:42:50 2007
@@ -0,0 +1,16 @@
+package org.slf4j;
+
+import junit.framework.TestCase;
+
+public class NoBindingTest extends TestCase {
+
+  public void test() {
+    try {
+    Logger logger = LoggerFactory.getLogger(NoBindingTest.class);
+    logger.debug("hello");
+    fail("slf4j-api does not ship with a binding");
+    } catch(NoClassDefFoundError e) {
+      
+    }
+  }
+}



More information about the slf4j-dev mailing list