Code example for SQLException

0
 
public class SybaseExceptionSorterTest extends TestCase {
 
    public void test_false() throws Exception { 
        SybaseExceptionSorter sorter = new SybaseExceptionSorter();
        Assert.assertFalse(sorter.isExceptionFatal(new SQLException()));
    } 
     
    public void test_false_2() throws Exception { 
        SybaseExceptionSorter sorter = new SybaseExceptionSorter();
        Assert.assertFalse(sorter.isExceptionFatal(new SQLException("xxx")));
    } 
     
    public void test_true() throws Exception { 
        SybaseExceptionSorter sorter = new SybaseExceptionSorter();
        Assert.assertTrue(sorter.isExceptionFatal(new SQLException("JZ0C0")));
    } 
     
    public void test_true_1() throws Exception { 
        SybaseExceptionSorter sorter = new SybaseExceptionSorter();
Stop searching for code, let great code find you!  Add Codota to your java IDE