hi guys, quick question, is there a way to access ...
# mockk
a
hi guys, quick question, is there a way to access a file in the
assets
folder? What I want to do is to mock a Context.getAssets() and I have 5 jsons that ships in my APK, and I want to mock the access to those files to use it in my unit tests and remove Robolectric usage just to load an asset (Robolectric adds 8-13 secs of initialization time to every test class)… do you know a way to load an
asset
file directly? without going through the AssetManager or the Resources class?