[TUT] Mocking shared preferences to test in isolation

TweetBelow is an excerpt from my book “Learning Android Application Testing” that explains how you can write tests that interact with the Android system using files, databases or shared preferences without corrupting or being affected by the data that already exists. It’s post Christmas and there is a flurry of consumerism whilst the shops do […]