How do you write a junit test for this function? ...
# android
l
How do you write a junit test for this function? The part that fails is the call to
file.sink()
because it throws a
FileNotFoundException
.
i use MockK for mocking objects (https://mockk.io/) and i use the
@RelaxedMockk
annotation for the file