Analyzer plugin rule: proper use of named argument matchers #183
Labels
P2
A bug or feature request we're likely to work on
S2
type-enhancement
A request for a change that isn't a bug
Unfortunately, mockito cannot catch a bug like this during runtime:
noSuchMethod receives an arg (null) for
x
, and an argument matcher forx
(contains('foo')
), and an arg (null) fory
, and an argument matcher fory
(contains('bar')
), so it thinks everything is kosher.In addition, mockito does detect that the following are bugs, and reports them, but it would be much more helpful if the user's IDE reported the bug earlier:
The text was updated successfully, but these errors were encountered: