I use Robotium library and base JUnit framework for my test project. How can I test/mock AsyncTaskLoader? My AsyncTaskLoader initialize in onCreate method and when I call getActivity in my test it initialize and get data from web server or database. I don't wont AsyncTaskLoader load data.
Asked
Active
Viewed 179 times
0
-
What do you mean by "I don't wont AsyncTaskLoader load data"? – Dave C May 27 '14 at 03:16
-
I don't want that AsyncTaskLoader load data in my test. I want that it emulate mock data. – Viacheslav May 27 '14 at 10:21