Merge pull request #323 from wenshao/master

fixed testcase
This commit is contained in:
温高铁
2013-04-30 02:54:43 -07:00
12 changed files with 26 additions and 12 deletions
@@ -32,7 +32,8 @@ public class OracleExceptionSorterTest extends TestCase {
dataSource.setFilters("log4j");
}
protected void tearDowN() throws Exception {
@Override
protected void tearDown() throws Exception {
JdbcUtils.close(dataSource);
}
@@ -33,7 +33,8 @@ public class OracleExceptionSorterTest_closeConn extends TestCase {
dataSource.setMaxOpenPreparedStatements(100);
}
protected void tearDowN() throws Exception {
@Override
protected void tearDown() throws Exception {
JdbcUtils.close(dataSource);
}
@@ -33,7 +33,8 @@ public class OracleExceptionSorterTest_closeConn_1 extends TestCase {
dataSource.setMaxOpenPreparedStatements(100);
}
protected void tearDowN() throws Exception {
@Override
protected void tearDown() throws Exception {
JdbcUtils.close(dataSource);
}
@@ -33,7 +33,8 @@ public class OracleExceptionSorterTest_closeConn_2 extends TestCase {
dataSource.setMaxOpenPreparedStatements(100);
}
protected void tearDowN() throws Exception {
@Override
protected void tearDown() throws Exception {
JdbcUtils.close(dataSource);
}
@@ -33,7 +33,8 @@ public class OracleExceptionSorterTest_closeConn_3 extends TestCase {
dataSource.setMaxOpenPreparedStatements(100);
}
protected void tearDowN() throws Exception {
@Override
protected void tearDown() throws Exception {
JdbcUtils.close(dataSource);
}
@@ -11,6 +11,7 @@ import com.alibaba.druid.mock.MockConnection;
import com.alibaba.druid.pool.DruidDataSource;
import com.alibaba.druid.pool.DruidPooledConnection;
import com.alibaba.druid.pool.vendor.OracleExceptionSorter;
import com.alibaba.druid.stat.DruidDataSourceStatManager;
import com.alibaba.druid.stat.JdbcStatManager;
import com.alibaba.druid.test.util.OracleMockDriver;
import com.alibaba.druid.util.JdbcUtils;
@@ -32,8 +33,10 @@ public class OracleExceptionSorterTest_closeStmt extends TestCase {
dataSource.setMaxOpenPreparedStatements(100);
}
protected void tearDowN() throws Exception {
@Override
protected void tearDown() throws Exception {
JdbcUtils.close(dataSource);
Assert.assertEquals(0, DruidDataSourceStatManager.getInstance().getDataSourceList().size());
}
public void test_connect() throws Exception {
@@ -33,7 +33,8 @@ public class OracleExceptionSorterTest_commit extends TestCase {
dataSource.setMaxOpenPreparedStatements(100);
}
protected void tearDowN() throws Exception {
@Override
protected void tearDown() throws Exception {
JdbcUtils.close(dataSource);
}
@@ -33,7 +33,8 @@ public class OracleExceptionSorterTest_rollback extends TestCase {
dataSource.setMaxOpenPreparedStatements(100);
}
protected void tearDowN() throws Exception {
@Override
protected void tearDown() throws Exception {
JdbcUtils.close(dataSource);
}
@@ -34,7 +34,8 @@ public class OracleExceptionSorterTest_setCatalog extends TestCase {
dataSource.setMaxOpenPreparedStatements(100);
}
protected void tearDowN() throws Exception {
@Override
protected void tearDown() throws Exception {
JdbcUtils.close(dataSource);
}
@@ -33,7 +33,8 @@ public class OracleExceptionSorterTest_setIsolationLevel extends TestCase {
dataSource.setMaxOpenPreparedStatements(100);
}
protected void tearDowN() throws Exception {
@Override
protected void tearDown() throws Exception {
JdbcUtils.close(dataSource);
}
@@ -34,7 +34,8 @@ public class OracleExceptionSorterTest_setReadOnly extends TestCase {
dataSource.setMaxOpenPreparedStatements(100);
}
protected void tearDowN() throws Exception {
@Override
protected void tearDown() throws Exception {
JdbcUtils.close(dataSource);
}
@@ -34,7 +34,8 @@ public class OracleExceptionSorterTest_setSavepoint extends TestCase {
dataSource.setMaxOpenPreparedStatements(100);
}
protected void tearDowN() throws Exception {
@Override
protected void tearDown() throws Exception {
JdbcUtils.close(dataSource);
}