Community
Participate
Working Groups
Mockito is a very popular test framework and IDE like IntelliJ provide quickfixes and code completion out of the box for them. Can we add org.mockito.Mockito.*; to our default favorites in JDT? This would give a similar experience in Eclipse as in IntelliJ. And AFAIK adding this does not create issues for the user, even if he does not use Mockito.
Noopur, WDYT?
It will be OK to add a new favorite if there's a demand but I haven't seen any other bug request to add Mockito yet. Also, it should be checked which classes/packages from Mockito are desired most frequently and only those should be added to favorites.
(In reply to Noopur Gupta from comment #2) > It will be OK to add a new favorite if there's a demand but I haven't seen > any other bug request to add Mockito yet. > > Also, it should be checked which classes/packages from Mockito are desired > most frequently and only those should be added to favorites. org.mockito.Mockito.* seems to be the big win. I'm delivering a JUnit / Mockito, etc. training to a customer and that one would make already a big difference.
New Gerrit change created: https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/175431
Gerrit change https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/175431 was merged to [master]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=4af93e11ef4bf764914a43712d8abe62bef26b11
Thanks for the patch, Lars. Please verify it in the next build and add an N&N entry.
New Gerrit change created: https://git.eclipse.org/r/c/www.eclipse.org/eclipse/news/+/175441
Gerrit change https://git.eclipse.org/r/c/www.eclipse.org/eclipse/news/+/175441 was merged to [master]. Commit: http://git.eclipse.org/c/www.eclipse.org/eclipse/news.git/commit/?id=8313de2bf6e02693a9eeb4d167ef2a3413a1b59a
Thanks for adding this, it will be handy for me as well!
(In reply to Pierre-Yves B. from comment #9) > Thanks for adding this, it will be handy for me as well! If you think we should add more Mockito packages, please let us know.
After writing lots of Mockito tests for a client I noted that org.mockito.ArgumentMatchers.*; is used very frequently. Opened Bug 575246 to add this also.