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