-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add existing MockitoExtension prototype #43
Comments
That's a good idea. If I remember correctly we wanted to adopt upstream's |
In case you're referring to |
@sormuras - I've been following that issue and intend to adopt @API in UpREST. Since I'm also planning to move upREST here, I think we'll end up with some nice consistency. |
@sormuras Yes, that |
Looking at this a little more closely, adding the MockitoExtension to the core junit-pioneer project would violate our "no-dependencies" rule as there are a few Mockito classes that need to be included. Mockito is specified as a test-scoped dependency so if we're going to do this we'll need a separate project OR we'll need to relax that rule. |
True, I overlooked that as well.
I see a third option: We can make the dependency |
True ... we should also be able to check to see if the needed classes are loaded instead of crashing. |
This is a quite old issue and after reading through the linked issues (and there linked issues again) I think this here can be closed. Mockito 3.x was released long time ago and provides very good JUnit5 integration. There were several feature requests raised by @smoyer64 in the Mockito project to improve the integration and they were all implemented. The JUnit team (especially @marcphilipp and @sbrannen) where also very active there. Should I have overseen something we can still reopen this. |
I'm using the MockitoExtension code in several of my projects but since it's not published anywhere and it's not included in Mockito, I'm copying and pasting it into each project. The MockitoExtension is currently slated for inclusion in Mockito 3. Adding the prototype MockitoExtension to Pioneer would provide the following benefits:
References mockito/mockito#445 and mockito/mockito#438.
The text was updated successfully, but these errors were encountered: