INT-2845: Gradle: Check XSD Versions in Tests
In many cases IDEs import into test configs Namespace-resources with hardcoded versions of Spring & Spring Integration XSDs. This may produce build issues with different Spring versions. It also causes an issue during the transition to a new Spring Integration version (e.g. 3.0). * Add Gradle task 'checkTestConfigs' to check test configs for hardcoded resources' versions. * Add to 'test' task dependency on new task 'checkTestConfigs' * Fix hadrcoded versions in the test configs. JIRA: https://jira.springsource.org/browse/INT-2845
This commit is contained in:
committed by
Gary Russell
parent
a80c6e9ce6
commit
2bc3ecb9d7
@@ -5,7 +5,7 @@
|
||||
xmlns:int-redis="http://www.springframework.org/schema/integration/redis"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
||||
http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd
|
||||
http://www.springframework.org/schema/integration/redis http://www.springframework.org/schema/integration/redis/spring-integration-redis-2.2.xsd">
|
||||
http://www.springframework.org/schema/integration/redis http://www.springframework.org/schema/integration/redis/spring-integration-redis.xsd">
|
||||
|
||||
<int-redis:store-inbound-channel-adapter id="withStringTemplate"
|
||||
connection-factory="redisConnectionFactory"
|
||||
@@ -21,7 +21,7 @@
|
||||
<property name="keySerializer" ref="keySerializer"/>
|
||||
<property name="valueSerializer" ref="valueSerializer"/>
|
||||
<property name="hashKeySerializer" ref="hashKeySerializer"/>
|
||||
<property name="hashValueSerializer" ref="hashValueSerializer"/>
|
||||
<property name="hashValueSerializer" ref="hashValueSerializer"/>
|
||||
</bean>
|
||||
|
||||
<int-redis:store-inbound-channel-adapter id="withExternalTemplate"
|
||||
@@ -34,12 +34,12 @@
|
||||
</int-redis:store-inbound-channel-adapter>
|
||||
|
||||
<int:channel id="redisChannel"/>
|
||||
|
||||
|
||||
<bean id="keySerializer" class="org.springframework.data.redis.serializer.StringRedisSerializer"/>
|
||||
<bean id="valueSerializer" class="org.springframework.data.redis.serializer.JdkSerializationRedisSerializer"/>
|
||||
<bean id="hashKeySerializer" class="org.springframework.data.redis.serializer.StringRedisSerializer"/>
|
||||
<bean id="hashValueSerializer" class="org.springframework.data.redis.serializer.JdkSerializationRedisSerializer"/>
|
||||
|
||||
|
||||
<bean id="redisConnectionFactory" class="org.mockito.Mockito" factory-method="mock">
|
||||
<constructor-arg value="org.springframework.data.redis.connection.RedisConnectionFactory"/>
|
||||
</bean>
|
||||
|
||||
Reference in New Issue
Block a user