1 8 package org.jzonic.jlo.handler; 9 10 import junit.framework.Test; 11 import junit.framework.TestCase; 12 import junit.framework.TestSuite; 13 import org.jzonic.jlo.Logger; 14 import org.jzonic.jlo.LogManager; 15 16 public class JDBCHandlerTest extends TestCase { 17 18 public JDBCHandlerTest(String testName) { 19 super(testName); 20 } 21 22 public static void main(String [] args) { 23 junit.textui.TestRunner.run(suite()); 24 } 25 26 public static Test suite() { 27 TestSuite suite = new TestSuite(JDBCHandlerTest.class); 28 return suite; 29 } 30 31 public void testLog() { 32 Logger logger = LogManager.getLogger("org.jzonic.sql","db"); 33 logger.info("Hello wolrd"); 34 } 35 } | Popular Tags |