mockito-collections
mockito-collections copied to clipboard
Bumps [junit](https://github.com/junit-team/junit4) from 4.11 to 4.13.1. Release notes Sourced from junit's releases. JUnit 4.13.1 Please refer to the release notes for details. JUnit 4.13 Please refer to the release notes...
Add ability to perform a collective verification in order
Add an equivalent to Mockito.mock in order to instantiate a collection of mocks when required.
In a scenario where one might use Spring to Inject a Collection of all implementations of a certain Interface, I've found that I can use @Mock to inject multiple instances,...
Refer to the following for details: http://stackoverflow.com/questions/14296170/how-to-skip-the-release-or-specific-modules-in-the-maven-repo
Equivalent in principle to the collective verifications but for the Mockito when/given. For example: ``` MockitoCollections.given(collectionOfHandlers.handle(something)).willReturn("someValue") ```
Mockito-Collections is primarily aimed at injecting Collections of Mocks into an Object that is under test. We could potentially consider reversing this as well, for example given the annotation InjectOutOf:...
When we use the @CollectionOfMocks annotation on a List we can easily retrieve the mocks by their index in the List. However when use the @CollectionOfMocks annotation on a Collection...