You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@aakash1313@lannyf77 Basically look at the decompiled kotlin classes. You will see there are more than 1 layer of static functions / classes. Which are really difficult to clear from tests. So either use interface level of abstraction for mocking.
Or use static / singleton java classes for only 1 layer of static / final classes.
Having a kotlin singleton with static methods
In java test code:
it runs fine
but convert to kotlin it does not compile:
having mockito version
testImplementation "org.mockito:mockito-inline:3.12.4"
.How to test/verify static method using mockito in kotlin?
The text was updated successfully, but these errors were encountered: