mockito-kotlin
https://github.com/mockito/mockito-kotlin
Kotlin
Using Mockito with Kotlin
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
Kotlin not yet supported3 Subscribers
Add a CodeTriage badge to mockito-kotlin
Help out
- Issues
- Return an empty String instead of null when creating a mock
- Cant stub a method with (Boolean)->Unit parameter
- Stubbing mocked suspend function returns null
- captor.capture() must not be null
- Coroutine/suspend function type mocking support
- argumentCaptor for multiple arguments/types
- @Captor field must be of the type ArgumentCaptor
- NullPointerException with boolean arguments
- Support for AdditionalAnswers equivalent functions in OngoingStubbing.kt
- The project doesn't pass the tests
- Docs
- Kotlin not yet supported