use of org.seasar.doma.jdbc.UtilLoggingJdbcLogger in project doma by domaframework.
the class LocalTransactionDataSourceTest method testGetConnection.
@Test
public void testGetConnection() {
UtilLoggingJdbcLogger jdbcLogger = new UtilLoggingJdbcLogger();
LocalTransactionDataSource dataSource = new LocalTransactionDataSource(new MockDataSource());
dataSource.getLocalTransaction(jdbcLogger).begin();
dataSource.getConnection();
dataSource.getLocalTransaction(jdbcLogger).commit();
}
Aggregations