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
Post a Comment