Loading
So far we have covered the setting of the expectations of the classes using constructor injection or the setter injections, and we saw how we can set a single bean expectation. If you want to inject a dependency which is a collection then Java Spring lets you do that with collection elements.
Editorial changes — reviews, status changes and edits — are shown to the author of this article and to the editors.