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