Skip to content

Commit aa761b4

Browse files
committed
Fix more test XML configs for latest Mockito
1 parent 80115d3 commit aa761b4

File tree

4 files changed

+23
-24
lines changed

4 files changed

+23
-24
lines changed

spring-integration-core/src/test/java/org/springframework/integration/config/xml/IdempotentReceiverParserTests-context.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
<idempotent-receiver id="selectorInterceptor" endpoint="foo" selector="selector"/>
1717

1818
<beans:bean id="keyStrategy" class="org.mockito.Mockito" factory-method="mock">
19-
<beans:constructor-arg value="org.springframework.integration.handler.MessageProcessor"/>
19+
<beans:constructor-arg value="org.springframework.integration.handler.MessageProcessor"
20+
type="java.lang.Class"/>
2021
</beans:bean>
2122

2223
<beans:bean id="valueStrategy" class="org.mockito.Mockito" factory-method="mock">

spring-integration-core/src/test/java/org/springframework/integration/handler/MockHandlerTests-context.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
<si:service-activator input-channel="input" ref="mock" method="test" />
1111

1212
<bean id="mock" class="org.mockito.Mockito" factory-method="mock">
13-
<constructor-arg value="org.springframework.integration.handler.MockHandlerTests$TestInterface" />
13+
<constructor-arg value="org.springframework.integration.handler.MockHandlerTests$TestInterface"
14+
type="java.lang.Class"/>
1415
</bean>
1516

1617
</beans>

spring-integration-core/src/test/java/org/springframework/integration/handler/SendTimeoutConfigurationTests-context.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
<splitter id="splitter" input-channel="splitterInput" expression="payload.values" send-timeout="123"/>
1919

2020
<beans:bean id="mock" class="org.mockito.Mockito" factory-method="mock">
21-
<beans:constructor-arg value="org.springframework.integration.handler.MockHandlerTests$TestInterface"/>
21+
<beans:constructor-arg value="org.springframework.integration.handler.MockHandlerTests$TestInterface"
22+
type="java.lang.Class"/>
2223
</beans:bean>
2324

2425
</beans:beans>
Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,50 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<beans xmlns="http://www.springframework.org/schema/beans"
3-
xmlns:p="http://www.springframework.org/schema/p" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xmlns:context="http://www.springframework.org/schema/context"
5-
xmlns:util="http://www.springframework.org/schema/util"
6-
xmlns:int="http://www.springframework.org/schema/integration"
7-
xsi:schemaLocation="
8-
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
10-
http://www.springframework.org/schema/util https://www.springframework.org/schema/util/spring-util.xsd
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xmlns:int="http://www.springframework.org/schema/integration"
5+
xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
116
http://www.springframework.org/schema/integration https://www.springframework.org/schema/integration/spring-integration.xsd">
127

13-
<int:channel id="in" />
8+
<int:channel id="in"/>
149

1510
<int:chain input-channel="in" output-channel="out">
1611
<int:filter expression="payload == 'singleAnnotatedMethodOnClass'" throw-exception-on-rejection="true"/>
17-
<int:service-activator ref="singleAnnotatedMethodOnClass" />
12+
<int:service-activator ref="singleAnnotatedMethodOnClass"/>
1813
</int:chain>
1914

2015
<bean id="singleAnnotatedMethodOnClass" class="org.mockito.Mockito"
21-
factory-method="mock">
16+
factory-method="mock">
2217
<constructor-arg
23-
value="org.springframework.integration.handler.ServiceActivatorOnMockitoMockTests.SingleAnnotatedMethodOnClass" />
18+
value="org.springframework.integration.handler.ServiceActivatorOnMockitoMockTests.SingleAnnotatedMethodOnClass"
19+
type="java.lang.Class"/>
2420
</bean>
2521

2622
<int:chain input-channel="in" output-channel="out">
2723
<int:filter expression="payload == 'SingleMethodOnClass'" throw-exception-on-rejection="true"/>
28-
<int:service-activator ref="singleMethodOnClass" />
24+
<int:service-activator ref="singleMethodOnClass"/>
2925
</int:chain>
3026

3127
<bean id="singleMethodOnClass" class="org.mockito.Mockito"
32-
factory-method="mock">
28+
factory-method="mock">
3329
<constructor-arg
34-
value="org.springframework.integration.handler.ServiceActivatorOnMockitoMockTests.SingleMethodOnClass"
35-
type="java.lang.Class"/>
30+
value="org.springframework.integration.handler.ServiceActivatorOnMockitoMockTests.SingleMethodOnClass"
31+
type="java.lang.Class"/>
3632
</bean>
3733

3834
<int:chain input-channel="in" output-channel="out">
3935
<int:filter expression="payload == 'SingleMethodAcceptingHeaderOnClass'" throw-exception-on-rejection="true"/>
40-
<int:service-activator ref="singleMethodAcceptingHeaderOnClass" />
36+
<int:service-activator ref="singleMethodAcceptingHeaderOnClass"/>
4137
</int:chain>
4238

4339
<bean id="singleMethodAcceptingHeaderOnClass" class="org.mockito.Mockito"
44-
factory-method="mock">
40+
factory-method="mock">
4541
<constructor-arg
46-
value="org.springframework.integration.handler.ServiceActivatorOnMockitoMockTests.SingleMethodAcceptingHeaderOnClass"
47-
type="java.lang.Class"/>
42+
value="org.springframework.integration.handler.ServiceActivatorOnMockitoMockTests.SingleMethodAcceptingHeaderOnClass"
43+
type="java.lang.Class"/>
4844
</bean>
4945

5046
<int:channel id="out">
51-
<int:queue capacity="10" />
47+
<int:queue capacity="10"/>
5248
</int:channel>
5349

5450
</beans>

0 commit comments

Comments
 (0)