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