Java test broke once I converted a file under test...
# test
e
Java test broke once I converted a file under test to Kotlin. I'm using MockedStatic for what was a static function. Now it's a companion function that is marked @JvmStatic. But it returns
null
when used instead of the what I've passed to
thenReturn
c
Mocks are dark magic libraries, any changes can break them. Try to find a mocking library that supports Kotlin (or avoid mocks)