mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved mysql exception sorter
This commit is contained in:
@@ -39,4 +39,9 @@ public class MySqlExceptionSorterTest extends TestCase {
|
||||
MySqlExceptionSorter sorter = new MySqlExceptionSorter();
|
||||
Assert.assertFalse(sorter.isExceptionFatal(new SQLException("", "", -8000)));
|
||||
}
|
||||
|
||||
public void test_true_3() throws Exception {
|
||||
MySqlExceptionSorter sorter = new MySqlExceptionSorter();
|
||||
Assert.assertTrue(sorter.isExceptionFatal(new com.mysql.jdbc.CommunicationsException(null, 0, 0, null)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user