/** @test java.sql.SQLNonTransientException(String) */ public void test_Constructor_LString_1() { SQLNonTransientException sQLNonTransientException = new SQLNonTransientException((String) 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); }
/** @test java.sql.SQLNonTransientException(String, Throwable) */ public void test_Constructor_LStringLThrowable_2() { Throwable cause = new Exception("MYTHROWABLE"); SQLNonTransientException sQLNonTransientException = new SQLNonTransientException(null, cause); assertNotNull(sQLNonTransientException); assertNull( "The reason of SQLNonTransientException should be null", sQLNonTransientException.getMessage()); assertNull( "The SQLState of SQLNonTransientException should be null", sQLNonTransientException.getSQLState()); assertEquals( "The error code of SQLNonTransientException should be 0", sQLNonTransientException.getErrorCode(), 0); }
/** @test java.sql.SQLNonTransientException(String) */ public void test_Constructor_LString() { SQLNonTransientException sQLNonTransientException = new SQLNonTransientException("MYTESTSTRING"); assertNotNull(sQLNonTransientException); assertNull( "The SQLState of SQLNonTransientException should be null", sQLNonTransientException.getSQLState()); assertEquals( "The reason of SQLNonTransientException set and get should be equivalent", "MYTESTSTRING", sQLNonTransientException.getMessage()); assertEquals( "The error code of SQLNonTransientException should be 0", sQLNonTransientException.getErrorCode(), 0); }
/** @test java.sql.SQLNonTransientException(String, String, int, Throwable) */ public void test_Constructor_LStringLStringILThrowable_23() { SQLNonTransientException sQLNonTransientException = new SQLNonTransientException(null, null, -1, 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 -1", sQLNonTransientException.getErrorCode(), -1); assertNull( "The cause of SQLNonTransientException should be null", sQLNonTransientException.getCause()); }
/** @test java.sql.SQLNonTransientException(String, String, int, Throwable) */ public void test_Constructor_LStringLStringILThrowable_13() { SQLNonTransientException sQLNonTransientException = new SQLNonTransientException(null, "MYTESTSTRING", 1, 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 1", sQLNonTransientException.getErrorCode(), 1); assertNull( "The cause of SQLNonTransientException should be null", sQLNonTransientException.getCause()); }
/** @test java.sql.SQLNonTransientException(Throwable) */ public void test_Constructor_LThrowable() { Throwable cause = new Exception("MYTHROWABLE"); SQLNonTransientException sQLNonTransientException = new SQLNonTransientException(cause); assertNotNull(sQLNonTransientException); assertEquals( "The reason of SQLNonTransientException should be equals to cause.toString()", "java.lang.Exception: MYTHROWABLE", sQLNonTransientException.getMessage()); assertNull( "The SQLState of SQLNonTransientException should be null", sQLNonTransientException.getSQLState()); 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()); }
/** @test java.sql.SQLNonTransientException(String, String, int, Throwable) */ public void test_Constructor_LStringLStringILThrowable_22() { Throwable cause = new Exception("MYTHROWABLE"); SQLNonTransientException sQLNonTransientException = new SQLNonTransientException(null, null, -1, 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 -1", sQLNonTransientException.getErrorCode(), -1); assertEquals( "The cause of SQLNonTransientException set and get should be equivalent", cause, sQLNonTransientException.getCause()); }