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