KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jzonic > jlo > handler > JDBCHandlerTest


1 /**
2  * Created by IntelliJ IDEA.
3  * User: Mecky
4  * Date: 21.07.2005
5  * Time: 22:33:47
6  * To change this template use File | Settings | File Templates.
7  */

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 JavaDoc testName) {
19         super(testName);
20     }
21
22     public static void main(String JavaDoc[] 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