[slf4j-dev] svn commit: r207 - slf4j/trunk/tests/src/java/org/apache/commons/logging
ceki at slf4j.org
ceki at slf4j.org
Fri Aug 26 22:49:02 CEST 2005
Author: ceki
Date: Fri Aug 26 22:49:01 2005
New Revision: 207
Added:
slf4j/trunk/tests/src/java/org/apache/commons/logging/InvokeJCLTest.java
- copied, changed from r206, slf4j/trunk/tests/src/java/org/apache/commons/logging/BasicJCLTest.java
Log:
Copied: slf4j/trunk/tests/src/java/org/apache/commons/logging/InvokeJCLTest.java (from r206, slf4j/trunk/tests/src/java/org/apache/commons/logging/BasicJCLTest.java)
==============================================================================
--- slf4j/trunk/tests/src/java/org/apache/commons/logging/BasicJCLTest.java (original)
+++ slf4j/trunk/tests/src/java/org/apache/commons/logging/InvokeJCLTest.java Fri Aug 26 22:49:01 2005
@@ -37,12 +37,11 @@
import junit.framework.TestCase;
-public class BasicJCLTest extends TestCase {
+public class InvokeJCLTest extends TestCase {
public void testIsEnabledAPI() {
-
// assume that we are running over slf4j-simple
- Log log = LogFactory.getLog(BasicJCLTest.class);
+ Log log = LogFactory.getLog(InvokeJCLTest.class);
assertFalse(log.isTraceEnabled());
assertFalse(log.isDebugEnabled());
assertTrue(log.isInfoEnabled());
@@ -50,4 +49,22 @@
assertTrue(log.isErrorEnabled());
assertTrue(log.isFatalEnabled());
}
+
+ public void testPrintAPI() {
+ Log log = LogFactory.getLog(InvokeJCLTest.class);
+ Exception e = new Exception("just testing");
+ log.trace("trace message");
+ log.debug("debug message");
+ log.info("info message");
+ log.warn("warn message");
+ log.error("error message");
+ log.fatal("fatal message");
+
+ log.trace("trace message", e);
+ log.debug("debug message", e);
+ log.info("info message", e);
+ log.warn("warn message", e);
+ log.error("error message", e);
+ log.fatal("fatal message", e);
+ }
}
More information about the slf4j-dev
mailing list