Bug 575246 - Add import static org.mockito.ArgumentMatchers.*; to favorites in JDT
Summary: Add import static org.mockito.ArgumentMatchers.*; to favorites in JDT
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.20   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 4.21 M3   Edit
Assignee: Lars Vogel CLA
QA Contact:
URL:
Whiteboard:
Keywords: usability
Depends on:
Blocks: 574014
  Show dependency tree
 
Reported: 2021-08-04 12:59 EDT by Lars Vogel CLA
Modified: 2021-08-17 05:37 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2021-08-04 12:59:05 EDT
After writing lots of Mockito tests for a client I noted that org.mockito.ArgumentMatchers.*; is used very frequently.

Bug 562639 added already static org.mockito.Mockito.*; which is great.

I suggest we also add org.mockito.ArgumentMatchers.*;
Comment 1 Lars Vogel CLA 2021-08-04 13:00:00 EDT
Noopur, WDYT?
Comment 2 Noopur Gupta CLA 2021-08-05 06:16:16 EDT
It will be OK to add it if it's used very frequently.

Lars, would you like to provide a patch and the news entry?
Comment 3 Lars Vogel CLA 2021-08-05 06:37:02 EDT
(In reply to Noopur Gupta from comment #2)
> Lars, would you like to provide a patch and the news entry?

Yes.
Comment 4 Eclipse Genie CLA 2021-08-10 09:06:21 EDT
New Gerrit change created: https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/183849
Comment 6 Eclipse Genie CLA 2021-08-11 05:13:09 EDT
New Gerrit change created: https://git.eclipse.org/r/c/www.eclipse.org/eclipse/news/+/183885
Comment 8 Eclipse Genie CLA 2021-08-16 03:32:45 EDT
New Gerrit change created: https://git.eclipse.org/r/c/www.eclipse.org/eclipse/news/+/184057
Comment 10 Eclipse Genie CLA 2021-08-17 05:36:36 EDT
New Gerrit change created: https://git.eclipse.org/r/c/www.eclipse.org/eclipse/news/+/184128