pkdevboxy / mockito

Automatically exported from code.google.com/p/mockito
0 stars 0 forks source link

Support Collection injection of Mocks/Spies #462

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Add the functionality of Mockito Collections 
(https://github.com/jameskennard/mockito-collections/) 
into Mockito itself. 

Although less common than field injection, one alternative to the factory 
pattern in dependency injection includes implicit assembly of a collection of 
implementations of an interface or abstract class - typically behind a manager 
or similar facade. 

While mockito-collections supports this nicely, this functionality really would 
be nice to include within mockito itself (perhaps with the ability to configure 
off/on) 

Original issue reported on code.google.com by matthewr...@gmail.com on 11 Nov 2013 at 2:03

GoogleCodeExporter commented 8 years ago
Not a priority right now, but an interesting feature.

Maybe you could make an initial PR on github, cheers.

Original comment by brice.du...@gmail.com on 4 Dec 2013 at 2:04

GoogleCodeExporter commented 8 years ago

Original comment by brice.du...@gmail.com on 4 Dec 2013 at 2:05