mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 01:08:50 -06:00
Implement tests for Preferences
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user