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