mockito / mockito-kotlin

Using Mockito with Kotlin
MIT License
3.1k stars 200 forks source link

Add additional matchers #377

Closed tschuchortdev closed 2 months ago

tschuchortdev commented 4 years ago

Adds some additional matchers like not, or leq. I couldn't be bothered to write tests because the code is so incredibly simple.

perkss commented 2 years ago

Any plans to put this in?

TWiStErRob commented 8 months ago

@tschuchortdev the code is simple, but it's still code, and the tests would protect it from breaking in the future. For example, if the functions get reordered, and accidentally change bodies or something we don't know yet. Verifying a basic requirement that the function delegates to the right one (by validating what it does e.g. tests would be different for lt and leq).

lgladysz commented 2 months ago

I think this is already merged in #508

TWiStErRob commented 2 months ago

agreed