You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
The inspection reporting spy creation on a mock object now also recognizes passed in mock objects when they are created either with Mockito.mock() or Mockito.spy().
66: Added an inspection that can report the stubbing of private and native methods, as well as equals() and hashCode().
63: Added an inspection to report ArgumentCaptor.captor() calls when they are passed in at least one argument. This method is not designed to accept any argument.
55: Added an inspection to report explicit initialization of @Mock and @InjectMocks annotated fields.
Added support for generic inferred Mockito.mock() and Mockito.spy() calls when converting from those calls to @Mock and @Spy fields, respectively.
Changed
Applied a couple of code simplifications for easier maintenance.
Improved the documentation, in many cases by replacing textual code examples with screenshots and gifs.
Fixed
Fixed the title of the list popup when selecting the target stubbing during conversion.
Fixed a threading related exception that occurred during converting @Mock or @Spy fields to their corresponding method call versions.
Fixed some potential ArrayIndexOutOfBoundsExceptions.