I am migrating some tests from instrumentation to unit-tests ( the new ones that came with 1.1 ) - And now I am facing the problem that I find no way to supply the tests with files ( data that I need to test if it gets parsed correctly ) Anyone knows a way to do this? Unfortunately for the android asset stuff I have no context and this also does not work:
getClass().getClassLoader().getResource("src.sgf")
The above is null with the file in:
src/test/assets/src.sgf
Interestingly AndroidStudio recognizes the asset - when I control click on the src.sgf in the code it brings me to the right file.