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