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

@@ -17,6 +17,6 @@
</int-jdbc:inbound-channel-adapter>
<bean id="ops" class="org.mockito.Mockito" factory-method="mock">
<constructor-arg value="org.springframework.jdbc.core.JdbcOperations"/>
<constructor-arg value="org.springframework.jdbc.core.JdbcOperations" type="java.lang.Class"/>
</bean>
</beans>

View File

@@ -8,7 +8,8 @@
https://www.springframework.org/schema/integration/jdbc/spring-integration-jdbc.xsd">
<beans:bean id="preparedStatementSetter" class="org.mockito.Mockito" factory-method="mock">
<beans:constructor-arg value="org.springframework.integration.jdbc.MessagePreparedStatementSetter"/>
<beans:constructor-arg value="org.springframework.integration.jdbc.MessagePreparedStatementSetter"
type="java.lang.Class"/>
</beans:bean>
<!-- Invalid Config