You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In ShadowContentResolver there are a lot of @Deprecated methods. However, there are no suggestions to what should be used instead. This has caused a lot of confusion. The Javadoc should be updated with better information.
The alternative to ShadowContentResolver is creating fake ContentProviders and registering them using Robolectric.setupContentProvider or ContentProviderController.
The text was updated successfully, but these errors were encountered:
@shashankiitbhu yeah that is on the right track. Something like this could be better:
/** * @deprecated This method affects all calls, and does not work with {@link * android.content.ContentResolver#acquireContentProviderClient}. Instead, use * {@link org.robolectric.Robolectric#setupContentProvider(Class, String)} to * install a test-specific ContentProvider that can return any Cursor. */
In ShadowContentResolver there are a lot of
@Deprecated
methods. However, there are no suggestions to what should be used instead. This has caused a lot of confusion. The Javadoc should be updated with better information.The alternative to ShadowContentResolver is creating fake ContentProviders and registering them using
Robolectric.setupContentProvider
orContentProviderController
.The text was updated successfully, but these errors were encountered: