TL;DR: Put your data files in test/resources and access it with:
InputStream inputStream = this.getClass()
.getClassLoader()
.getResourceAsStream(path);
I've got an android application with a module performing data processing (HTML scraping in fact). This part is pure java and all its tests are in the src/