Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2010-07-13 22:55:26 +0000
committerrelves2010-07-13 22:55:26 +0000
commit46b8c62d63d7b4d3a44bd2a2082e1289c44592f5 (patch)
tree43c73f299d34c2d042826278ec72ea74a43de22a /org.eclipse.mylyn.tasks.tests/src
parent0d26239c75a40bcc83e6cc0c408d1baa68edb0d4 (diff)
downloadorg.eclipse.mylyn.tasks-46b8c62d63d7b4d3a44bd2a2082e1289c44592f5.tar.gz
org.eclipse.mylyn.tasks-46b8c62d63d7b4d3a44bd2a2082e1289c44592f5.tar.xz
org.eclipse.mylyn.tasks-46b8c62d63d7b4d3a44bd2a2082e1289c44592f5.zip
NEW - bug 316373: due task scheduled for next weeks shows twice
https://bugs.eclipse.org/bugs/show_bug.cgi?id=316373
Diffstat (limited to 'org.eclipse.mylyn.tasks.tests/src')
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ScheduledPresentationTest.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ScheduledPresentationTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ScheduledPresentationTest.java
index b5d0107a8..0ea5e2862 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ScheduledPresentationTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ScheduledPresentationTest.java
@@ -161,6 +161,20 @@ public class ScheduledPresentationTest extends TestCase {
populateResults(results, true);
assertNotNull("Task scheduled but not visible in scheduled presentation", results.get(mockTask));
assertEquals("Incoming", results.get(mockTask).getSummary());
+
+ // Scheduled for NEXT WEEK AND DUE on date next week
+ mockTask.setSynchronizationState(SynchronizationState.SYNCHRONIZED);
+ TasksUiPlugin.getTaskActivityManager().setDueDate(mockTask,
+ TaskActivityUtil.getNextWeek().getDayOfWeek(3).getStartDate().getTime());
+ TasksUiPlugin.getTaskActivityManager().setScheduledFor(mockTask, TaskActivityUtil.getNextWeek());
+ mockTask.setOwner("testuser");
+ results.put(mockTask, null);
+ results.put(task1, null);
+
+ // Should be revealed in date bin NOT Next Week day bin
+ populateResults(results, false);
+ assertNotNull("Task scheduled but not visible in scheduled presentation", results.get(mockTask));
+ assertFalse("Next Week".equals(results.get(mockTask).getSummary()));
}
private void populateResults(Map<ITask, ScheduledTaskContainer> results, boolean focused) {

Back to the top