fixed MySqlExceptionSorter

This commit is contained in:
wenshao
2013-06-30 17:36:06 +08:00
parent 7436dd4910
commit 97f763ce4b
2 changed files with 3 additions and 23 deletions
@@ -12,7 +12,8 @@ import com.alibaba.druid.pool.vendor.MySqlExceptionSorter;
public class MySqlExceptionSorterTest_oceanbase extends TestCase {
public void test_true() throws Exception {
MySqlExceptionSorter sorter = new MySqlExceptionSorter();
Assert.assertTrue(sorter.isExceptionFatal(new SQLException("", "", -9000)));
SQLException exception = new SQLException("", "", -9000);
Assert.assertTrue(sorter.isExceptionFatal(exception));
}
public void test_true_1() throws Exception {