Join Slack
Powered by
How do you write a junit test for this function? ...
# 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
.
Untitled
lawlorslaw
05/07/2020, 9:19 PM
i use MockK for mocking objects (
https://mockk.io/
) and i use the
@RelaxedMockk
annotation for the file
4
Views
Open in Slack
Previous
Next