use of com.alibaba.druid.pool.vendor.MySqlExceptionSorter in project druid by alibaba.
the class MySqlExceptionSorterTest method test_false.
public void test_false() throws Exception {
MySqlExceptionSorter sorter = new MySqlExceptionSorter();
Assert.assertFalse(sorter.isExceptionFatal(new SQLException("", "", -10001)));
}
use of com.alibaba.druid.pool.vendor.MySqlExceptionSorter in project druid by alibaba.
the class MySqlExceptionSorterTest method test_true_2.
public void test_true_2() throws Exception {
MySqlExceptionSorter sorter = new MySqlExceptionSorter();
Assert.assertTrue(sorter.isExceptionFatal(new SQLException("", "08xx", 0)));
}
use of com.alibaba.druid.pool.vendor.MySqlExceptionSorter in project druid by alibaba.
the class MySqlExceptionSorterTest method test_true.
public void test_true() throws Exception {
MySqlExceptionSorter sorter = new MySqlExceptionSorter();
Assert.assertTrue(sorter.isExceptionFatal(new SQLException("", "", 1040)));
}
use of com.alibaba.druid.pool.vendor.MySqlExceptionSorter in project druid by alibaba.
the class MySqlExceptionSorterTest_oceanbase method test_false_1.
public void test_false_1() throws Exception {
MySqlExceptionSorter sorter = new MySqlExceptionSorter();
Assert.assertFalse(sorter.isExceptionFatal(new SQLException("", "", -8000)));
}
use of com.alibaba.druid.pool.vendor.MySqlExceptionSorter in project druid by alibaba.
the class MySqlExceptionSorterTest_oceanbase method test_false.
public void test_false() throws Exception {
MySqlExceptionSorter sorter = new MySqlExceptionSorter();
Assert.assertFalse(sorter.isExceptionFatal(new SQLException("", "", -10001)));
}
Aggregations