Astrid should have been setting HOUR_OF_DAY to 0 instead of HOUR
pull/321/head
Alex Baker 9 years ago
parent 1ab518451f
commit d1e3c4e89d

@ -210,6 +210,16 @@ public class TaskTest extends AndroidTestCase {
public void testTaskOverdueAtNoonOnDueDate() {
final DateTime dueDate = new DateTime().withMillisOfDay(0);
freezeAt(dueDate.plusHours(12)).thawAfter(new Snippet() {{
Task task = new Task();
task.setValue(DUE_DATE, dueDate.getMillis());
assertFalse(task.hasDueTime());
assertFalse(task.isOverdue());
}});
}
public void testTaskWithNoDueTimeIsOverdue() {
final DateTime dueDate = new DateTime().withMillisOfDay(0);
freezeAt(dueDate.plusDays(1)).thawAfter(new Snippet() {{
Task task = new Task();
task.setValue(DUE_DATE, dueDate.getMillis());
assertFalse(task.hasDueTime());

Loading…
Cancel
Save