Skip to content

Commit

Permalink
Remove transaction manager from test config
Browse files Browse the repository at this point in the history
  • Loading branch information
jacodg committed May 2, 2024
1 parent 4df47b6 commit ea4bbd0
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions src/test/resources/springTestToolTestJUnit-forDbStorage.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,17 @@
<property name="metadataExtractor" ref="metadataExtractor"/>
</bean>

<!-- Without connection pooling (takes much longer to run all tests) -->
<!-- bean name="dataSource" class="org.h2.jdbcx.JdbcDataSource">
<!--
Without connection pooling (takes much longer to run all tests). E.g. when using:
<bean name="dataSource" class="org.h2.jdbcx.JdbcDataSource">
<property name="URL" value="jdbc:h2:./data/database-storage/ladybug"/>
</bean -->

</bean>
-->
<bean id="dataSource" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="org.h2.Driver"/>
<property name="url" value="jdbc:h2:./data/database-storage/ladybug"/>
</bean>

<bean name="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="dataSource"/>
<qualifier value="ladybug"/>
</bean>

<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
<property name="dataSource" ref="dataSource"/>
</bean>

<bean name="ladybugDatabaseChangelog" class="liquibase.integration.spring.SpringLiquibase">
<property name="dataSource" ref="dataSource" />
<property name="changeLog" value="classpath:ladybug/DatabaseChangelog.xml" />
Expand Down

0 comments on commit ea4bbd0

Please sign in to comment.