mockito-kotlin
https://github.com/nhaarman/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 supported5 Subscribers
Add a CodeTriage badge to mockito-kotlin![CodeTriage badge for nhaarman/mockito-kotlin](/nhaarman/mockito-kotlin/badges/users.svg?count=5)
Help out
- Issues
- whenever() cannot handle Spring-Boot @SpyBean
- argThat with File treats the parameter file as the test itself and fails
- Please make clear that methods and classes must BOTH be open to mock.
- How to Mock List.forEach
- Does not work with powermock: Could not initialize plugin: interface org.mockito.plugins.MockMaker (alternate: null)
- Stubbing mocked suspend function returns null
- Possible to stub a field?
- Cant stub a method with (Boolean)->Unit parameter
- spy call real method for doReturn when
- Return an empty String instead of null when creating a mock
- Docs
- Kotlin not yet supported