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