use of org.apache.aries.tx.control.jdbc.common.impl.TxConnectionWrapper in project aries by apache.
the class TxConnectionWrapperTest method testPrepareStatement.
@Test
public void testPrepareStatement() throws SQLException {
Connection wrapped = new TxConnectionWrapper(conn);
wrapped.prepareStatement("foo");
Mockito.verify(conn).prepareStatement("foo");
}
use of org.apache.aries.tx.control.jdbc.common.impl.TxConnectionWrapper in project aries by apache.
the class TxConnectionWrapperTest method testSetSavepointString.
@Test(expected = TransactionException.class)
public void testSetSavepointString() throws SQLException {
Connection wrapped = new TxConnectionWrapper(conn);
wrapped.setSavepoint("foo");
}
use of org.apache.aries.tx.control.jdbc.common.impl.TxConnectionWrapper in project aries by apache.
the class TxConnectionWrapperTest method testGetTransactionIsolation.
@Test
public void testGetTransactionIsolation() throws SQLException {
Connection wrapped = new TxConnectionWrapper(conn);
wrapped.getTransactionIsolation();
Mockito.verify(conn).getTransactionIsolation();
}
use of org.apache.aries.tx.control.jdbc.common.impl.TxConnectionWrapper in project aries by apache.
the class TxConnectionWrapperTest method testClose.
@Test
public void testClose() throws SQLException {
Connection wrapped = new TxConnectionWrapper(conn);
wrapped.close();
Mockito.verify(conn, Mockito.times(0)).close();
}
use of org.apache.aries.tx.control.jdbc.common.impl.TxConnectionWrapper in project aries by apache.
the class TxConnectionWrapperTest method testNativeSQL.
@Test
public void testNativeSQL() throws SQLException {
Connection wrapped = new TxConnectionWrapper(conn);
wrapped.nativeSQL("foo");
Mockito.verify(conn).nativeSQL("foo");
}
Aggregations