mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
fixed testcase
This commit is contained in:
@@ -26,9 +26,11 @@ import java.util.concurrent.atomic.AtomicLong;
|
||||
|
||||
import javax.management.openmbean.TabularData;
|
||||
|
||||
import junit.framework.Assert;
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import org.junit.Assert;
|
||||
|
||||
import com.alibaba.druid.proxy.DruidDriver;
|
||||
import com.alibaba.druid.stat.JdbcStatManager;
|
||||
import com.alibaba.druid.util.JdbcUtils;
|
||||
|
||||
@@ -64,6 +66,8 @@ public class AllStatisticTest extends TestCase {
|
||||
|
||||
protected void tearDown() throws Exception {
|
||||
JdbcUtils.close(globalConnection);
|
||||
DruidDriver.getProxyDataSources().clear();
|
||||
Assert.assertEquals(0, JdbcStatManager.getInstance().getSqlList().size());
|
||||
}
|
||||
|
||||
public void test_stmt() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user