add slf4j logging testcase

This commit is contained in:
wenshao
2013-06-15 12:37:11 +08:00
parent a4a31362bf
commit 2aabdaea4b
2 changed files with 24 additions and 7 deletions
@@ -0,0 +1,24 @@
package com.alibaba.druid.bvt.support.logging;
import junit.framework.TestCase;
import com.alibaba.druid.pool.DruidDataSource;
import com.alibaba.druid.support.logging.SLF4JImpl;
public class SLF4JImplTest extends TestCase {
public void test_0() throws Exception {
SLF4JImpl impl = new SLF4JImpl(DruidDataSource.class.getName());
impl.isDebugEnabled();
impl.isInfoEnabled();
impl.isWarnEnabled();
impl.debug("");
impl.debug("", new Exception());
impl.info("");
impl.warn("");
impl.warn("", new Exception());
impl.error("");
impl.error("", new Exception());
}
}