/** @test java.sql.SQLNonTransientException(String, String, Throwable) */ public void test_Constructor_LStringLStringLThrowable_7() { SQLNonTransientException sQLNonTransientException = new SQLNonTransientException(null, null, null); assertNotNull(sQLNonTransientException); assertNull( "The SQLState of SQLNonTransientException should be null", sQLNonTransientException.getSQLState()); assertNull( "The reason of SQLNonTransientException should be null", sQLNonTransientException.getMessage()); assertEquals( "The error code of SQLNonTransientException should be 0", sQLNonTransientException.getErrorCode(), 0); assertNull( "The cause of SQLNonTransientException should be null", sQLNonTransientException.getCause()); }
/** @test java.sql.SQLNonTransientException(String, String, int, Throwable) */ public void test_Constructor_LStringLStringILThrowable_15() { SQLNonTransientException sQLNonTransientException = new SQLNonTransientException(null, "MYTESTSTRING", 0, null); assertNotNull(sQLNonTransientException); assertEquals( "The SQLState of SQLNonTransientException set and get should be equivalent", "MYTESTSTRING", sQLNonTransientException.getSQLState()); assertNull( "The reason of SQLNonTransientException should be null", sQLNonTransientException.getMessage()); assertEquals( "The error code of SQLNonTransientException should be 0", sQLNonTransientException.getErrorCode(), 0); assertNull( "The cause of SQLNonTransientException should be null", sQLNonTransientException.getCause()); }
/** @test java.sql.SQLNonTransientException(String, String, Throwable) */ public void test_Constructor_LStringLStringLThrowable_6() { Throwable cause = new Exception("MYTHROWABLE"); SQLNonTransientException sQLNonTransientException = new SQLNonTransientException(null, null, cause); assertNotNull(sQLNonTransientException); assertNull( "The SQLState of SQLNonTransientException should be null", sQLNonTransientException.getSQLState()); assertNull( "The reason of SQLNonTransientException should be null", sQLNonTransientException.getMessage()); assertEquals( "The error code of SQLNonTransientException should be 0", sQLNonTransientException.getErrorCode(), 0); assertEquals( "The cause of SQLNonTransientException set and get should be equivalent", cause, sQLNonTransientException.getCause()); }