Releases: picimako/mockitools
Releases · picimako/mockitools
v1.6.0
- Removed the until-build version, so that the plugin potentially will need less new releases when there is no compatibility issue with a newer IDE major version. The earliest IDE version supported now is 2025.1.
- Updated project dependency versions and fine-tuned their configuration.
- Added some minor simplifications to features.
v1.5.0
v1.4.1
v1.4.0
v1.3.1
v1.3.0
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()orMockito.spy(). - 66: Added an inspection that can report the stubbing of private and native methods, as well as
equals()andhashCode(). - 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
@Mockand@InjectMocksannotated fields. - Added support for generic inferred
Mockito.mock()andMockito.spy()calls when converting from those calls to@Mockand@Spyfields, 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
@Mockor@Spyfields to their corresponding method call versions. - Fixed some potential
ArrayIndexOutOfBoundsExceptions.
v1.2.0
v1.1.0
v1.0.0
Changed
- New support range of IDEs: 2022.3-2023.3
- Various code optimizations based on new IntelliJ Platform inspections.
v0.12.0
Added
- #52: Added code completion for parameters of methods in the
Mockitoclass that need mock objects to be passed in (e.g.reset()orverifyNoMoreInteractions()).
The list only shows@Mock,@Spyand@InjectMocksannotated fields, as well as local variables created withMockito.mock()orMockito.spy().
Fixed
- Fixed an issue that stubbed checked exceptions were marked mistakenly as having no matching checked exception in the stubbed method's
throwsclause,
even if the throws clause containedExceptionorThrowable. - Fixed an issue that when analyzing mixed matcher/non-matcher arguments of stubbed methods, type cast constructs like
(SomeObject) any()were not considered matchers by the plugin,
and marked falsely.