android - Convenient way to test custom DB from Assets using ProviderTestCase2 -


i testing contentprovider using providertestcase2.

to this, created assets folder , storing prepared db there.

on start trying upload db make test on it, cannot assets folder assetsmanager since getassets using getcontext pointing tested contentprovider class, while getassets using getmockcontext throws throws unsupportedoperationexception.

what proposed solution test custom db altogether custom contentprovider junit tests on android? providertestcase2 disappointingly doesn't expected do?


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -