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