https://kotlinlang.org logo
#android
Title
# android
l

lawlorslaw

05/07/2020, 8:05 PM
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
4 Views