/**
* @test java.sql.SQLRecoverableException(String, String, Throwable)
*/
public void test_Constructor_LStringLStringLThrowable() {
Throwable cause = new Exception("MYTHROWABLE");
SQLRecoverableException sQLRecoverableException = new SQLRecoverableException(
"MYTESTSTRING1", "MYTESTSTRING2", cause);
assertNotNull(sQLRecoverableException);
assertEquals(
"The SQLState of SQLRecoverableException set and get should be equivalent",
"MYTESTSTRING2", sQLRecoverableException.getSQLState());
assertEquals(
"The reason of SQLRecoverableException set and get should be equivalent",
"MYTESTSTRING1", sQLRecoverableException.getMessage());
assertEquals("The error code of SQLRecoverableException should be 0",
sQLRecoverableException.getErrorCode(), 0);
assertEquals(
"The cause of SQLRecoverableException set and get should be equivalent",
cause, sQLRecoverableException.getCause());
}