Add notes on constructor and factory method overloading

Closes gh-32091
This commit is contained in:
Juergen Hoeller
2024-04-30 15:45:46 +02:00
parent 26706f0039
commit fab3633c75
2 changed files with 26 additions and 5 deletions

View File

@@ -111,7 +111,8 @@ a mock service with Mockito:
[source,xml,indent=0,subs="verbatim,quotes"]
----
<bean id="accountService" class="org.mockito.Mockito" factory-method="mock">
<constructor-arg value="org.example.AccountService"/>
<constructor-arg type="java.lang.Class" value="org.example.AccountService"/>
<constructor-arg type="java.lang.String" value="accountService"/>
</bean>
----