mockito / mockito-kotlin

Using Mockito with Kotlin
MIT License
3.11k stars 201 forks source link

not() matcher missed #326

Closed sanekyy closed 5 years ago

sanekyy commented 5 years ago

Hello. Try to use your extention instead of base Mockito to fix matchers IllegalStateException in Kotlin. Can't find replacement of mathcer "not()" which also returns null:( My case is using combination: not(eq(myObject)). Maybe I missed or don't understand something. Thanks in advance for your reply.

nhaarman commented 5 years ago

not is part of the AdditionalMatchers class, for which none have been included in Mockito-Kotlin. Other than providing a unified namespace, there is no real benefit to have them in the library (i.e. there is nothing to 'Kotlinify' about them).