/**
* @test java.sql.SQLTimeoutException(Throwable)
*/
public void test_Constructor_LThrowable() {
Throwable cause = new Exception("MYTHROWABLE");
SQLTimeoutException sQLTimeoutException = new SQLTimeoutException(cause);
assertNotNull(sQLTimeoutException);
assertEquals(
"The reason of SQLTimeoutException should be equals to cause.toString()",
"java.lang.Exception: MYTHROWABLE", sQLTimeoutException
.getMessage());
assertNull("The SQLState of SQLTimeoutException should be null",
sQLTimeoutException.getSQLState());
assertEquals("The error code of SQLTimeoutException should be 0",
sQLTimeoutException.getErrorCode(), 0);
assertEquals(
"The cause of SQLTimeoutException set and get should be equivalent",
cause, sQLTimeoutException.getCause());
}