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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user