兼容DBCP

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@498 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-07-21 09:26:47 +00:00
parent 916c0ffcaf
commit 2878c66ec2
6 changed files with 65 additions and 23 deletions
@@ -47,15 +47,15 @@ public class Case3 extends TestCase {
driverClass = "com.alibaba.druid.mock.MockDriver";
// connectionProperties = "connectSleep=3;executeSleep=1";
jdbcUrl = "jdbc:mysql://10.20.153.104:3306/druid2";
user = "root";
password = "root";
driverClass = "com.mysql.jdbc.Driver";
// jdbcUrl = "jdbc:mysql://10.20.153.104:3306/druid2";
// user = "root";
// password = "root";
// driverClass = "com.mysql.jdbc.Driver";
}
public void test_perf() throws Exception {
for (int i = 0; i < 5; ++i) {
druid();
// druid();
dbcp();
// boneCP();
}