Implement tests for Preferences

This commit is contained in:
2017-07-24 09:54:51 -04:00
parent 281861cac5
commit 864636705d
4 changed files with 177 additions and 9 deletions

View File

@@ -104,7 +104,7 @@ public class BaseAndroidTest extends TestCase
logger = appComponent.getHabitsLogger();
modelFactory = appComponent.getModelFactory();
prefs.reset();
prefs.clear();
fixtures = new HabitFixtures(modelFactory, habitList);
fixtures.purgeHabits(appComponent.getHabitList());

View File

@@ -84,7 +84,7 @@ public class BaseUserInterfaceTest
private void resetState() throws Exception
{
prefs.reset();
prefs.clear();
prefs.setFirstRun(false);
prefs.updateLastHint(100, DateUtils.getToday());
habitList.removeAll();