mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
fixed testcase
This commit is contained in:
@@ -22,9 +22,12 @@ import java.sql.SQLException;
|
||||
import java.sql.SQLFeatureNotSupportedException;
|
||||
import java.sql.Statement;
|
||||
|
||||
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;
|
||||
|
||||
public class StatementTest extends TestCase {
|
||||
@@ -59,6 +62,8 @@ public class StatementTest extends TestCase {
|
||||
|
||||
protected void tearDown() throws Exception {
|
||||
dropTable();
|
||||
DruidDriver.getProxyDataSources().clear();
|
||||
Assert.assertEquals(0, JdbcStatManager.getInstance().getSqlList().size());
|
||||
}
|
||||
|
||||
public void test_stmt() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user