More Mockito fixes for test XML configs

Looks like sometime Spring Framework XML parser can properly determine the target factory method to chose,
but sometimes it does that in a wrong order.

* Add `type="java.lang.Class"` to the ctor args everywhere for `class="org.mockito.Mockito" factory-method="mock"`
`<bean>` definitions
This commit is contained in:
abilan
2022-12-21 11:16:56 -05:00
parent e74393f995
commit 19d6b7617f
32 changed files with 53 additions and 52 deletions

View File

@@ -6,7 +6,7 @@
http://www.springframework.org/schema/integration/http https://www.springframework.org/schema/integration/http/spring-integration-http.xsd">
<bean id="restTemplate" class="org.mockito.Mockito" factory-method="mock">
<constructor-arg value="org.springframework.web.client.RestTemplate"/>
<constructor-arg value="org.springframework.web.client.RestTemplate" type="java.lang.Class"/>
</bean>
<int-http:outbound-gateway url="/fake"