[slf4j-dev] svn commit: r485 - slf4j/trunk/tests/src/java/org/slf4j
ceki at slf4j.org
ceki at slf4j.org
Mon Jan 9 18:13:45 CET 2006
Author: ceki
Date: Mon Jan 9 18:13:42 2006
New Revision: 485
Modified:
slf4j/trunk/tests/src/java/org/slf4j/InvokingSLF4J.java
Log:
more tests for null input
Modified: slf4j/trunk/tests/src/java/org/slf4j/InvokingSLF4J.java
==============================================================================
--- slf4j/trunk/tests/src/java/org/slf4j/InvokingSLF4J.java (original)
+++ slf4j/trunk/tests/src/java/org/slf4j/InvokingSLF4J.java Mon Jan 9 18:13:42 2006
@@ -73,6 +73,7 @@
Integer i3 = new Integer(3);
Exception e = new Exception("This is a test exception.");
Logger logger = LoggerFactory.getLogger("test2");
+
logger.debug("Hello world 1.");
logger.debug("Hello world {}", i1);
logger.debug("val={} val={}", i1, i2);
@@ -89,7 +90,21 @@
logger.error("Hello world 4.");
logger.error("Hello world {}", new Integer(3));
logger.error("Hello world 4.", e);
-
+ }
+
+ public void testNull() {
+ Logger logger = LoggerFactory.getLogger("testNull");
+ logger.debug(null);
+ logger.info(null);
+ logger.warn(null);
+ logger.error(null);
+
+ Exception e = new Exception("This is a test exception.");
+ logger.debug(null, e);
+ logger.info(null, e);
+ logger.warn(null, e);
+ logger.error(null, e);
+
}
}
More information about the slf4j-dev
mailing list