use of org.apache.aries.tx.control.jdbc.common.impl.TxConnectionWrapper in project aries by apache.
the class TxConnectionWrapperTest method testAbort.
@Test
public void testAbort() throws SQLException {
Connection wrapped = new TxConnectionWrapper(conn);
wrapped.abort(x -> {
});
Mockito.verify(conn, Mockito.times(0)).abort(Mockito.any(Executor.class));
}
use of org.apache.aries.tx.control.jdbc.common.impl.TxConnectionWrapper in project aries by apache.
the class TxConnectionWrapperTest method testAutoCommit.
@Test(expected = TransactionException.class)
public void testAutoCommit() throws SQLException {
Connection wrapped = new TxConnectionWrapper(conn);
wrapped.setAutoCommit(true);
}
use of org.apache.aries.tx.control.jdbc.common.impl.TxConnectionWrapper in project aries by apache.
the class TxConnectionWrapperTest method testCommit.
@Test(expected = TransactionException.class)
public void testCommit() throws SQLException {
Connection wrapped = new TxConnectionWrapper(conn);
wrapped.commit();
}
Aggregations