I'm following this post, http://blog.danlew.net/2015/11/02/sharing-code-between-unit-tests-and-instrumentation-tests-on-android/, to share code, but how to share an asset?, like a fixture file?, I want to mock an api response, so I have a JSON file to do it, but I try this: https://gist.github.com/nebiros/91a68aaf6995fa635507
In Unit Test, this works: ClassLoader.getSystemResourceAsStream("some_response.json"); but in Android Intrumentation Tests, it doesn't, where can I put those fixture files?. Thank you. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/7f1e835f-fadf-4b8f-a625-6222b33f5f0a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.