-
Notifications
You must be signed in to change notification settings - Fork 202
Home
Rafał Prominski edited this page Nov 19, 2024
·
6 revisions
Mockito-Kotlin is a wrapper library around Mockito.
It provides top-level functions to allow for a more idiomatic approach while using Mockito in Kotlin.
Furthermore, Mockito returns null
values for calls to method like any()
, which can cause IllegalStateException
when passing them to non-nullable parameters. This library solves that issue by trying to create actual instances to return.
Mockito-Kotlin does not intend to alter any of the functionality that Mockito provides, except in places where crucial for working with Kotlin.