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