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