fixed testcase

This commit is contained in:
wenshao
2013-04-30 17:53:21 +08:00
parent cab0845fe6
commit 8d40dff479
12 changed files with 23 additions and 11 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);
}
@@ -33,6 +33,7 @@ public class OracleExceptionSorterTest_closeStmt extends TestCase {
dataSource.setMaxOpenPreparedStatements(100);
}
@Override
protected void tearDown() throws Exception {
JdbcUtils.close(dataSource);
Assert.assertEquals(0, DruidDataSourceStatManager.getInstance().getDataSourceList().size());
@@ -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);
}