Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2007-06-13 04:07:13 +0000
committerrelves2007-06-13 04:07:13 +0000
commitf2fb9bb4cd1e7b9906b9cccc96ba519f116c975a (patch)
tree7a6851c509b9f32e2d0aef6f9c451c23c0c43ad7 /org.eclipse.mylyn.bugzilla.tests
parenta91558c86597605da8772ca0ff017bb16dc715b9 (diff)
downloadorg.eclipse.mylyn.tasks-f2fb9bb4cd1e7b9906b9cccc96ba519f116c975a.tar.gz
org.eclipse.mylyn.tasks-f2fb9bb4cd1e7b9906b9cccc96ba519f116c975a.tar.xz
org.eclipse.mylyn.tasks-f2fb9bb4cd1e7b9906b9cccc96ba519f116c975a.zip
REOPENED - bug 124321: [api] merge local tasks with repository tasks
https://bugs.eclipse.org/bugs/show_bug.cgi?id=124321
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.tests')
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskListStandaloneTest.java4
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskReportGeneratorTest.java8
2 files changed, 6 insertions, 6 deletions
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskListStandaloneTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskListStandaloneTest.java
index 6e91075e2..27f9366ee 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskListStandaloneTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskListStandaloneTest.java
@@ -24,9 +24,9 @@ import org.eclipse.mylyn.internal.bugzilla.core.BugzillaTask;
import org.eclipse.mylyn.internal.bugzilla.core.IBugzillaConstants;
import org.eclipse.mylyn.internal.bugzilla.ui.tasklist.BugzillaTaskExternalizer;
import org.eclipse.mylyn.internal.tasks.core.LocalTask;
+import org.eclipse.mylyn.tasks.core.AbstractRepositoryTask;
import org.eclipse.mylyn.tasks.core.ITask;
import org.eclipse.mylyn.tasks.core.ITaskListExternalizer;
-import org.eclipse.mylyn.tasks.core.Task;
import org.eclipse.mylyn.tasks.ui.TaskListManager;
import org.eclipse.mylyn.tasks.ui.TasksUiPlugin;
@@ -93,7 +93,7 @@ public class TaskListStandaloneTest extends TestCase {
public void testDates() {
Date start = Calendar.getInstance().getTime();
Date creation = new Date();
- Task task = new LocalTask("1", "task 1");
+ AbstractRepositoryTask task = new LocalTask("1", "task 1");
manager.getTaskList().moveToRoot(task);
assertDatesCloseEnough(task.getCreationDate(), start);
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskReportGeneratorTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskReportGeneratorTest.java
index e9e5494cf..f6f198d33 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskReportGeneratorTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskReportGeneratorTest.java
@@ -23,8 +23,8 @@ import org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryQuery;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaTask;
import org.eclipse.mylyn.internal.tasks.ui.planner.CompletedTaskCollector;
import org.eclipse.mylyn.internal.tasks.ui.planner.TaskReportGenerator;
+import org.eclipse.mylyn.tasks.core.AbstractRepositoryTask;
import org.eclipse.mylyn.tasks.core.ITaskListElement;
-import org.eclipse.mylyn.tasks.core.Task;
import org.eclipse.mylyn.tasks.core.TaskCategory;
import org.eclipse.mylyn.tasks.ui.TaskListManager;
import org.eclipse.mylyn.tasks.ui.TasksUiPlugin;
@@ -55,7 +55,7 @@ public class TaskReportGeneratorTest extends TestCase {
}
public void testCompletedTasksRetrieved() throws InvocationTargetException, InterruptedException {
- Task task1 = manager.createNewLocalTask("task 1");
+ AbstractRepositoryTask task1 = manager.createNewLocalTask("task 1");
manager.getTaskList().moveToRoot(task1);
CompletedTaskCollector collector = new CompletedTaskCollector(new Date(0));
@@ -71,7 +71,7 @@ public class TaskReportGeneratorTest extends TestCase {
}
public void testCompletedTasksDateBoundsRetrieved() throws InvocationTargetException, InterruptedException {
- Task task1 = manager.createNewLocalTask("task 1");
+ AbstractRepositoryTask task1 = manager.createNewLocalTask("task 1");
manager.getTaskList().moveToRoot(task1);
task1.setCompleted(true);
Thread.sleep(1000);
@@ -109,7 +109,7 @@ public class TaskReportGeneratorTest extends TestCase {
}
public void testCompletedTasksInCategoryRetrieved() throws InvocationTargetException, InterruptedException {
- Task task1 = manager.createNewLocalTask("task 1");
+ AbstractRepositoryTask task1 = manager.createNewLocalTask("task 1");
manager.getTaskList().moveToRoot(task1);
task1.setCompleted(true);
TaskCategory cat1 = new TaskCategory("TaskReportGeneratorTest Category");

Back to the top