/**
* @test java.sql.SQLDataException(String, Throwable)
*/
public void test_Constructor_LStringLThrowable() {
Throwable cause = new Exception("MYTHROWABLE");
SQLDataException sQLDataException = new SQLDataException(
"MYTESTSTRING", cause);
assertNotNull(sQLDataException);
assertEquals(
"The reason of SQLDataException set and get should be equivalent",
"MYTESTSTRING", 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());
}