test fixed

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@722 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-09-10 17:59:35 +00:00
parent a4cc9f7576
commit a646a6dc7f
2 changed files with 13 additions and 2 deletions
@@ -22,6 +22,7 @@ import junit.framework.Assert;
import junit.framework.TestCase;
import com.alibaba.druid.pool.DruidDataSource;
import com.alibaba.druid.stat.DruidDataSourceStatManager;
import com.alibaba.druid.util.JMXUtils;
/**
@@ -30,7 +31,10 @@ import com.alibaba.druid.util.JMXUtils;
* @author admin 2011-5-4 下午02:45:21
*/
public class Case2 extends TestCase {
protected void tearDown() throws Exception {
Assert.assertEquals(0, DruidDataSourceStatManager.getInstance().getDataSourceList().size());
}
public void test_singleThread() throws Exception {
Class.forName("com.alibaba.druid.mock.MockDriver");