git-svn-id: http://code.alibabatech.com/svn/druid/trunk@721 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-09-10 17:55:16 +00:00
parent 8913a0bcff
commit a4cc9f7576
2 changed files with 6 additions and 0 deletions
@@ -12,6 +12,7 @@ import junit.framework.TestCase;
import com.alibaba.druid.mock.MockDriver;
import com.alibaba.druid.pool.DruidDataSource;
import com.alibaba.druid.stat.DruidDataSourceStatManager;
public class TestIdle3_Concurrent_MaxActive extends TestCase {
@@ -19,6 +20,8 @@ public class TestIdle3_Concurrent_MaxActive extends TestCase {
private DruidDataSource dataSource;
protected void setUp() throws Exception {
Assert.assertEquals(0, DruidDataSourceStatManager.getInstance().getDataSourceList().size());
driver = new MockDriver();
dataSource = new DruidDataSource();
@@ -39,6 +42,7 @@ public class TestIdle3_Concurrent_MaxActive extends TestCase {
protected void tearDown() throws Exception {
dataSource.close();
Assert.assertEquals(0, DruidDataSourceStatManager.getInstance().getDataSourceList().size());
}
public void test_idle2() throws Exception {
@@ -32,6 +32,8 @@ public class TestRemoveAbandoned extends TestCase {
dataSource.setTestOnBorrow(false);
dataSource.setValidationQuery("SELECT 1");
dataSource.setFilters("stat");
Assert.assertEquals(0, DruidDataSourceStatManager.getInstance().getDataSourceList().size());
}
protected void tearDown() throws Exception {