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
As I see we are using Robolectric to test DeveloperSetting class because DeveloperSetting needs an instance of SharedPreferences.
Instead of user Robolectric to get SharedPreferences instance we can use some kind of mock or in memory Shared preferences. In my opinion, It will be better approach than using Robolectric.
Or we can use this instead of SharedPreferences directly on DeveloperSetting class. It will make mocking stuffs easy.
The text was updated successfully, but these errors were encountered:
As I see we are using Robolectric to test DeveloperSetting class because DeveloperSetting needs an instance of SharedPreferences.
Instead of user Robolectric to get SharedPreferences instance we can use some kind of mock or in memory Shared preferences. In my opinion, It will be better approach than using Robolectric.
Or we can use this instead of SharedPreferences directly on DeveloperSetting class. It will make mocking stuffs easy.
The text was updated successfully, but these errors were encountered: