Package com.alibaba.druid.support.logging

Examples of com.alibaba.druid.support.logging.JakartaCommonsLoggingImpl


import com.alibaba.druid.support.logging.JakartaCommonsLoggingImpl;

public class JakartaCommonsLoggingImplTest extends TestCase {

    public void test_0() throws Exception {
        JakartaCommonsLoggingImpl impl = new JakartaCommonsLoggingImpl(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());
        Assert.assertEquals(1, impl.getInfoCount());
        Assert.assertEquals(2, impl.getErrorCount());
        Assert.assertEquals(2, impl.getWarnCount());
        Assert.assertEquals(1, impl.getInfoCount());
    }
View Full Code Here

TOP

Related Classes of com.alibaba.druid.support.logging.JakartaCommonsLoggingImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.