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