use of org.apache.aries.tx.control.jdbc.common.impl.TxConnectionWrapper in project aries by apache.
the class TxConnectionWrapperTest method testRollbackSavepoint.
@Test(expected = TransactionException.class)
public void testRollbackSavepoint() throws SQLException {
Connection wrapped = new TxConnectionWrapper(conn);
wrapped.rollback(null);
}
use of org.apache.aries.tx.control.jdbc.common.impl.TxConnectionWrapper in project aries by apache.
the class TxConnectionWrapperTest method testSetReadOnly.
@Test
public void testSetReadOnly() throws SQLException {
Connection wrapped = new TxConnectionWrapper(conn);
wrapped.setReadOnly(true);
Mockito.verify(conn).setReadOnly(true);
}
use of org.apache.aries.tx.control.jdbc.common.impl.TxConnectionWrapper in project aries by apache.
the class TxConnectionWrapperTest method testPrepareCall.
@Test
public void testPrepareCall() throws SQLException {
Connection wrapped = new TxConnectionWrapper(conn);
wrapped.prepareCall("foo");
Mockito.verify(conn).prepareCall("foo");
}
use of org.apache.aries.tx.control.jdbc.common.impl.TxConnectionWrapper in project aries by apache.
the class TxConnectionWrapperTest method testTransactionIsolation.
@Test
public void testTransactionIsolation() throws SQLException {
Connection wrapped = new TxConnectionWrapper(conn);
wrapped.setTransactionIsolation(1);
Mockito.verify(conn).setTransactionIsolation(1);
}
use of org.apache.aries.tx.control.jdbc.common.impl.TxConnectionWrapper in project aries by apache.
the class TxConnectionWrapperTest method testReleaseSavepoint.
@Test(expected = TransactionException.class)
public void testReleaseSavepoint() throws SQLException {
Connection wrapped = new TxConnectionWrapper(conn);
wrapped.releaseSavepoint(null);
}
Aggregations