/**
* @test java.sql.SQLTimeoutException(String, String, Throwable)
*/
public void test_Constructor_LStringLStringLThrowable() {
Throwable cause = new Exception("MYTHROWABLE");
SQLTimeoutException sQLTimeoutException = new SQLTimeoutException(
"MYTESTSTRING1", "MYTESTSTRING2", cause);
assertNotNull(sQLTimeoutException);
assertEquals(
"The SQLState of SQLTimeoutException set and get should be equivalent",
"MYTESTSTRING2", sQLTimeoutException.getSQLState());
assertEquals(
"The reason of SQLTimeoutException set and get should be equivalent",
"MYTESTSTRING1", sQLTimeoutException.getMessage());
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());
}