enhance management

This commit is contained in:
wenshao
2011-12-08 09:58:32 +08:00
parent e27532ce32
commit a92d21cfab
12 changed files with 178 additions and 155 deletions
@@ -44,7 +44,15 @@ public class TestConcurrent extends TestCase {
protected void tearDown() throws Exception {
dataSource.close();
Assert.assertEquals(0, DruidDataSourceStatManager.getInstance().getDataSourceList().size());
int size = DruidDataSourceStatManager.getInstance().getDataSourceList().size();
if (size > 0) {
for (DruidDataSource dataSource : DruidDataSourceStatManager.getDruidDataSourceInstances()) {
dataSource.close();
System.out.println("unclosed datasource : " + dataSource.getObjectName());
}
Assert.fail("size : " + size);
}
}
public void test_0() throws Exception {