In the JUnit 5 user guide we can find a link to MockitoExtension, as an usage example of TestInstancePostProcessor
, ParameterResolver
(part of the Extension API).
My doubt is about the real usage of Mockito in JUnit 5 (related to this other question).
- As of now, is that
MockitoExtension
the recommended way to inject mocks within Jupiter tests? - If so, should I include a copy of that class in my project and then use it? (not the best way I guess)
- Is there any plan to support an official Mockito extension for JUnit 5?
Thank you so much!