I was able to mock any<File> before (where t...
# mockk
c
I was able to mock any<File> before (where there was a specific mock) to verify
File.writeBytes()
was called. But even mocking the specific file was not working for me in the
File.inputStream()
case. I couldn't explain the difference, but decided to skip mocking and verifying calls in this case in order to finish writing a test. To me, it looks like the problem could be the constructor throwing exceptions.