java - Force IOException to happen in Android while reading a file without mocking -


how make ioexception happen testing? in particular, app reading file on external storage. possible, example, instruct os close file handle specific app process next read() throws ioexception?

on real device, can done physically, removing external storage media.


Comments

Popular posts from this blog

xml - Extract substrings with XSLT -

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

Fatal error: Call to undefined function menu_execute_active_handler() in drupal 7.9 -