Why/how would MockK affect the behaviour of a non ...
# mockk
Why/how would MockK affect the behaviour of a non mocked component? I have this Exception during test only on Android API 28; I can’t reproduce on a clean project and I’m wondering why is MockK even in the call stack 🙂
Copy code
// Code: 

// Stack trace:
java.lang.NoSuchMethodException: checkFileUriExposed [class java.lang.String]
at java.lang.Class.getMethod(Class.java:2068)
at java.lang.Class.getDeclaredMethod(Class.java:2047)
at io.mockk.proxy.android.MethodDescriptor.getMethod(MethodDescriptor.kt:22)
at io.mockk.proxy.android.advice.Advice.getOrigin(Advice.kt:37)
at java.lang.reflect.Method.invoke(Native Method)
at io.mockk.proxy.android.AndroidMockKDispatcher.getOrigin(AndroidMockKDispatcher.java:117)
at android.net.Uri.checkFileUriExposed(Unknown Source:14)