Open aakash1313 opened 2 years ago
Basically when we write code in kotlin the java bytecode conversion creates multiple layer of static, final classes & functions. This makes the mocking difficult on multiple layers of static / final functions. Easy for investigation is to look for decompiled bytecode.
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
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 ?