This commit is contained in:
wenshao
2011-12-22 20:13:05 +08:00
parent 447a709ef7
commit a04b6faa3b
17 changed files with 384 additions and 22 deletions
@@ -0,0 +1,21 @@
package com.alibaba.druid;
import junit.framework.TestCase;
import com.alibaba.druid.pool.DruidDataSource;
public class DruidTest extends TestCase {
public void test_0() throws Exception {
DruidDataSource ds = new DruidDataSource();
ds.setMaxWait(30);
ds.setInitialSize(0);
ds.setUrl("jdbc:mysql:xxx");
try {
ds.getConnection();
} catch (Exception ex) {
ex.printStackTrace();
}
}
}