/**
* @test java.sql.SQLSyntaxErrorException(String, String, int, Throwable)
*/
public void test_Constructor_LStringLStringILThrowable_10() {
Throwable cause = new Exception("MYTHROWABLE");
SQLSyntaxErrorException sQLSyntaxErrorException = new SQLSyntaxErrorException(
"MYTESTSTRING", null, -1, cause);
assertNotNull(sQLSyntaxErrorException);
assertNull("The SQLState of SQLSyntaxErrorException should be null",
sQLSyntaxErrorException.getSQLState());
assertEquals(
"The reason of SQLSyntaxErrorException set and get should be equivalent",
"MYTESTSTRING", sQLSyntaxErrorException.getMessage());
assertEquals("The error code of SQLSyntaxErrorException should be -1",
sQLSyntaxErrorException.getErrorCode(), -1);
assertEquals(
"The cause of SQLSyntaxErrorException set and get should be equivalent",
cause, sQLSyntaxErrorException.getCause());
}