mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
fixed testcase
This commit is contained in:
@@ -27,7 +27,9 @@ import java.sql.Statement;
|
||||
import junit.framework.Assert;
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import com.alibaba.druid.proxy.DruidDriver;
|
||||
import com.alibaba.druid.proxy.jdbc.ClobProxy;
|
||||
import com.alibaba.druid.stat.JdbcStatManager;
|
||||
import com.alibaba.druid.util.JdbcUtils;
|
||||
|
||||
public class ClobTest extends TestCase {
|
||||
@@ -44,6 +46,13 @@ public class ClobTest extends TestCase {
|
||||
conn.close();
|
||||
}
|
||||
|
||||
protected void tearDown() throws Exception {
|
||||
dropTable();
|
||||
|
||||
DruidDriver.getProxyDataSources().clear();
|
||||
Assert.assertEquals(0, JdbcStatManager.getInstance().getSqlList().size());
|
||||
}
|
||||
|
||||
private void createTable() throws SQLException {
|
||||
Connection conn = DriverManager.getConnection(create_url);
|
||||
Statement stmt = conn.createStatement();
|
||||
@@ -60,10 +69,6 @@ public class ClobTest extends TestCase {
|
||||
conn.close();
|
||||
}
|
||||
|
||||
protected void tearDown() throws Exception {
|
||||
dropTable();
|
||||
}
|
||||
|
||||
public void test_clob() throws Exception {
|
||||
|
||||
Connection conn = null;
|
||||
|
||||
Reference in New Issue
Block a user