-
Notifications
You must be signed in to change notification settings - Fork 759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mockito.mockStatic not working with Kotlin but it works in Java #74
Comments
Can you please share your entire test for the Kotlin example and if possible upload a minimal reproducible example to GitHub? |
closed due to inactivity - feel free to reopen if you provide more details. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Blog post you are referring to
https://rieckpil.de/mocking-static-methods-with-mockito-java-kotlin/
I was trying a mock a static method inside my Kotlin class for a unit test, but it seems the Java version of my Unit Test is successful but the Kotlin version is failing
@RunWith(RobolectricTestRunner.class)
This test is running successfully but the Kotlin version of it below is failing
Kotlin Version
Getting the below exception:
Can someone help with this ?
The text was updated successfully, but these errors were encountered: