Add missing tests for RepetitionList and Habit

This commit is contained in:
2017-05-30 08:19:28 -04:00
parent 8a29fbf07d
commit 6ccfb53329
12 changed files with 118 additions and 27 deletions

View File

@@ -108,7 +108,7 @@ public class HabitBullCSVImporter extends AbstractImporter
}
if(!h.getRepetitions().containsTimestamp(timestamp))
h.getRepetitions().toggleTimestamp(timestamp);
h.getRepetitions().toggle(timestamp);
}
}
}

View File

@@ -101,7 +101,7 @@ public class RewireDBImporter extends AbstractImporter
GregorianCalendar cal = DateUtils.getStartOfTodayCalendar();
cal.set(year, month - 1, day);
habit.getRepetitions().toggleTimestamp(cal.getTimeInMillis());
habit.getRepetitions().toggle(cal.getTimeInMillis());
} while (c.moveToNext());
}
finally

View File

@@ -100,7 +100,7 @@ public class TickmateDBImporter extends AbstractImporter
GregorianCalendar cal = DateUtils.getStartOfTodayCalendar();
cal.set(year, month, day);
habit.getRepetitions().toggleTimestamp(cal.getTimeInMillis());
habit.getRepetitions().toggle(cal.getTimeInMillis());
} while (c.moveToNext());
}
finally