Just started to use Robolectric and it seems to be pretty much what I need. However, I\'ve hit a bit of a roadblock with regards to the use of SharedPreferences.
I h
Robolectric 3.1 SNAPSHOT solution that works for me... and may work for you
Context context = RuntimeEnvironment.application.getApplicationContext();
SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);
sharedPreferences.edit().putBoolean("useOnlyOnWifi", false).commit();
I use this snippet of code for only testing on wifi