use of java.sql.SQLTransactionRollbackException in project jdk8u_jdk by JetBrains.
the class SQLTransactionRollbackExceptionTests method test3.
/**
* Create SQLTransactionRollbackException with message, and SQLState
*/
@Test
public void test3() {
SQLTransactionRollbackException ex = new SQLTransactionRollbackException(reason, state);
assertTrue(ex.getMessage().equals(reason) && ex.getSQLState().equals(state) && ex.getCause() == null && ex.getErrorCode() == 0);
}
Aggregations