Skip to content

Commit 2a3a548

Browse files
committed
Migrate JDBC lock tests from Derby to H2
1 parent 4e24cbf commit 2a3a548

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

spring-integration-jdbc/src/test/java/org/springframework/integration/jdbc/lock/JdbcLockRegistryTests-context.xml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,17 @@
22
<beans xmlns="http://www.springframework.org/schema/beans"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xmlns:jdbc="http://www.springframework.org/schema/jdbc"
5-
xmlns:context="http://www.springframework.org/schema/context"
65
xmlns:tx="http://www.springframework.org/schema/tx"
76
xsi:schemaLocation="http://www.springframework.org/schema/jdbc https://www.springframework.org/schema/jdbc/spring-jdbc.xsd
87
http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
9-
http://www.springframework.org/schema/context https://www.springframework.org/schema/context/spring-context.xsd
108
http://www.springframework.org/schema/tx https://www.springframework.org/schema/tx/spring-tx.xsd">
119

12-
<jdbc:embedded-database id="dataSource" type="DERBY"/>
10+
<jdbc:embedded-database id="dataSource" type="H2"/>
1311

14-
<jdbc:initialize-database data-source="dataSource">
15-
<jdbc:script location="${int.schema.script}"/>
12+
<jdbc:initialize-database>
13+
<jdbc:script location="org/springframework/integration/jdbc/schema-h2.sql"/>
1614
</jdbc:initialize-database>
1715

18-
<context:property-placeholder location="int-${ENVIRONMENT:derby}.properties"
19-
system-properties-mode="OVERRIDE"
20-
ignore-unresolvable="true"
21-
order="1"/>
22-
2316
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
2417
<property name="dataSource" ref="dataSource"/>
2518
</bean>

0 commit comments

Comments
 (0)