Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2005-07-08 23:39:01 +0000
committermkersten2005-07-08 23:39:01 +0000
commit0953f565e6acc5ac5a39e0655804baa534ce64fe (patch)
treec1ecad7839ef409fbd37eb8e93891870290907e9 /org.eclipse.mylyn.tasks.tests
parent16f8d4db3c112105e46aa18a5c842ec8acd17bc6 (diff)
downloadorg.eclipse.mylyn.tasks-0953f565e6acc5ac5a39e0655804baa534ce64fe.tar.gz
org.eclipse.mylyn.tasks-0953f565e6acc5ac5a39e0655804baa534ce64fe.tar.xz
org.eclipse.mylyn.tasks-0953f565e6acc5ac5a39e0655804baa534ce64fe.zip
Minor fixes
Diffstat (limited to 'org.eclipse.mylyn.tasks.tests')
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListUiTest.java14
1 files changed, 6 insertions, 8 deletions
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListUiTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListUiTest.java
index d68da958b..d55995530 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListUiTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListUiTest.java
@@ -166,16 +166,14 @@ public class TaskListUiTest extends TestCase {
viewer.removeFilter(TaskListView.getDefault().getInCompleteFilter());
PriorityFilter filter = TaskListView.getDefault().getPriorityFilter();
- filter.hidePriority("P1");
- filter.hidePriority("P3");
- filter.hidePriority("P4");
+ filter.displayPrioritiesAbove("P2");
viewer.addFilter(filter);
viewer.refresh();
viewer.expandAll();
items = viewer.getTree().getItems();
// check priority tasks
- assertTrue(checkFilter(CHECK_PRIORITY_FILTER, items));
+ assertTrue(checkFilter(CHECK_PRIORITY_FILTER, items));
}
public boolean checkFilter(int type, TreeItem[] items) {
@@ -211,22 +209,22 @@ public class TaskListUiTest extends TestCase {
public boolean checkPriorityFilter(TreeItem[] items) {
assertTrue(items.length == 2);
int p2Count = 0;
- int p5Count = 0;
+ int p1Count = 0;
for (int i = 0; i < items.length; i++) {
assertTrue(items[i].getData() instanceof TaskCategory);
TreeItem[] sub = items[i].getItems();
for (int j = 0; j < sub.length; j++) {
assertTrue(sub[j].getData() instanceof ITask);
ITask task = (ITask) sub[j].getData();
- assertTrue(task.getPriority().equals("P2") || task.getPriority().equals("P5"));
+ assertTrue(task.getPriority().equals("P2") || task.getPriority().equals("P1"));
if (task.getPriority().equals("P2")) {
p2Count++;
} else {
- p5Count++;
+ p1Count++;
}
}
}
- assertTrue(p2Count == 2 && p5Count == 2);
+ assertTrue(p2Count == 2 && p1Count == 2);
return true;
}

Back to the top