On 2015-11-24 16:17, Szczepan Faber wrote:
> Hey,
>
> I absolutely love the idea!!!
>
> Some feedback:
>
> - the static methods are intended to stay and won't change. Are you
> compat with 1.* or 2.* beta? I've changed how the Matchers work a bit
> in 2.0
I've noticed that a while ago. Thanks to that mockito-java8 1.x and 2.x
would have to be released :).
> - javadoc does not inform how to use the interfaces (e.g. that the
> intention is that the test class should implement the interface) /
> does not show the code sample
Good point. It's something I like very much in Mockito javadoc. I will
make an update.
> - it seems confusing to have so many interfaces available. Without
> thorough thinking (I'm sure you did yours) it seems that we need 3
> interfaces: Mockito, BDDMockito, AdditionalMatchers, right? Javadoc
> does not say when should the specific interfaces be used.
To simplify the things I've just reduced number of public interfaces to 3:
- WithMockito - BDD and classic stubbing/mocking API - I see no sense
to keep BDD separately - more people should use it :)
- WithMockitoAndMatchers - mocking API + Mockito matchers
- WithMatchers - just Mockito matchers - in some cases people could
prefer to have only Mockito methods "imported". Nevertheless
WithMockitoAndMatchers can be used instead, so I'm seriously considering
its removal from the API.
All other interfaces are with package scope to no being suggested by IDE.
WDYT?
Marcin