Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2008-04-25 06:39:28 +0000
committerspingel2008-04-25 06:39:28 +0000
commit94a0080094c0abf470f80576228ece461a84553d (patch)
tree3398a5aa99b22fbb9ceb6669b5aeaba85ba80c5d /org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac
parent6e8dd354e9f93f538258223bf152b460953f8f9b (diff)
downloadorg.eclipse.mylyn.tasks-94a0080094c0abf470f80576228ece461a84553d.tar.gz
org.eclipse.mylyn.tasks-94a0080094c0abf470f80576228ece461a84553d.tar.xz
org.eclipse.mylyn.tasks-94a0080094c0abf470f80576228ece461a84553d.zip
NEW - bug 226822: [api] generalize task data
https://bugs.eclipse.org/bugs/show_bug.cgi?id=226822
Diffstat (limited to 'org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac')
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracAttachmentHandlerTest.java4
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryConnectorTest.java4
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracTaskDataHandlerTest.java12
3 files changed, 10 insertions, 10 deletions
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracAttachmentHandlerTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracAttachmentHandlerTest.java
index c2180b3c8..ec08c4322 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracAttachmentHandlerTest.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracAttachmentHandlerTest.java
@@ -101,7 +101,7 @@ public class TracAttachmentHandlerTest extends TestCase {
TracTask task = (TracTask) TasksUiUtil.createTask(repository, data.attachmentTicketId + "",
new NullProgressMonitor());
TasksUi.synchronizeTask(connector, task, true, null);
- RepositoryTaskData taskData = TasksUiPlugin.getTaskDataManager().getNewTaskData(task.getRepositoryUrl(),
+ RepositoryTaskData taskData = TasksUiPlugin.getTaskDataStorageManager().getNewTaskData(task.getRepositoryUrl(),
task.getTaskId());
assertTrue(taskData.getAttachments().size() > 0);
@@ -134,7 +134,7 @@ public class TracAttachmentHandlerTest extends TestCase {
TracTask task = (TracTask) TasksUiUtil.createTask(repository, data.attachmentTicketId + "",
new NullProgressMonitor());
TasksUi.synchronizeTask(connector, task, true, null);
- RepositoryTaskData taskData = TasksUiPlugin.getTaskDataManager().getNewTaskData(task.getRepositoryUrl(),
+ RepositoryTaskData taskData = TasksUiPlugin.getTaskDataStorageManager().getNewTaskData(task.getRepositoryUrl(),
task.getTaskId());
assertTrue(taskData.getAttachments().size() > 0);
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryConnectorTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryConnectorTest.java
index c67918f9d..7c9a6bbb4 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryConnectorTest.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryConnectorTest.java
@@ -43,7 +43,7 @@ import org.eclipse.mylyn.tasks.core.AbstractTask;
import org.eclipse.mylyn.tasks.core.RepositoryTaskData;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.core.TaskRepositoryLocationFactory;
-import org.eclipse.mylyn.tasks.core.data.AbstractTaskDataCollector;
+import org.eclipse.mylyn.tasks.core.data.TaskDataCollector;
import org.eclipse.mylyn.tasks.ui.TasksUi;
import org.eclipse.mylyn.tasks.ui.TasksUiUtil;
import org.eclipse.mylyn.trac.tests.support.TestFixture;
@@ -216,7 +216,7 @@ public class TracRepositoryConnectorTest extends TestCase {
//MultiStatus queryStatus = new MultiStatus(TracUiPlugin.PLUGIN_ID, IStatus.OK, "Query result", null);
final List<RepositoryTaskData> result = new ArrayList<RepositoryTaskData>();
- AbstractTaskDataCollector hitCollector = new AbstractTaskDataCollector() {
+ TaskDataCollector hitCollector = new TaskDataCollector() {
@Override
public void accept(RepositoryTaskData hit) {
result.add(hit);
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracTaskDataHandlerTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracTaskDataHandlerTest.java
index 9184bcb62..5e695b7b2 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracTaskDataHandlerTest.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracTaskDataHandlerTest.java
@@ -40,7 +40,7 @@ import org.eclipse.mylyn.tasks.core.RepositoryStatus;
import org.eclipse.mylyn.tasks.core.RepositoryTaskAttribute;
import org.eclipse.mylyn.tasks.core.RepositoryTaskData;
import org.eclipse.mylyn.tasks.core.TaskRepository;
-import org.eclipse.mylyn.tasks.core.sync.SynchronizationEvent;
+import org.eclipse.mylyn.tasks.core.sync.SynchronizationContext;
import org.eclipse.mylyn.tasks.ui.TasksUi;
import org.eclipse.mylyn.tasks.ui.TasksUiUtil;
import org.eclipse.mylyn.trac.tests.support.TestFixture;
@@ -104,7 +104,7 @@ public class TracTaskDataHandlerTest extends TestCase {
Set<AbstractTask> tasks = new HashSet<AbstractTask>();
tasks.add(task);
- SynchronizationEvent event = new SynchronizationEvent();
+ SynchronizationContext event = new SynchronizationContext();
event.performQueries = true;
event.taskRepository = repository;
event.fullSynchronization = true;
@@ -137,14 +137,14 @@ public class TracTaskDataHandlerTest extends TestCase {
TracTicket ticket = TracTestUtil.createTicket(client, "markStaleTasks");
TracTask task = (TracTask) TasksUiUtil.createTask(repository, ticket.getId() + "", null);
TasksUi.synchronizeTask(connector, task, true, null);
- RepositoryTaskData taskData = TasksUiPlugin.getTaskDataManager().getNewTaskData(task.getRepositoryUrl(),
+ RepositoryTaskData taskData = TasksUiPlugin.getTaskDataStorageManager().getNewTaskData(task.getRepositoryUrl(),
task.getTaskId());
int lastModified = Integer.parseInt(taskData.getLastModified());
Set<AbstractTask> tasks = new HashSet<AbstractTask>();
tasks.add(task);
- SynchronizationEvent event = new SynchronizationEvent();
+ SynchronizationContext event = new SynchronizationContext();
event.performQueries = true;
event.taskRepository = repository;
event.fullSynchronization = true;
@@ -205,7 +205,7 @@ public class TracTaskDataHandlerTest extends TestCase {
TracTask task = (TracTask) TasksUiUtil.createTask(repository, data.offlineHandlerTicketId + "", null);
Set<AbstractTask> tasks = new HashSet<AbstractTask>();
tasks.add(task);
- SynchronizationEvent event = new SynchronizationEvent();
+ SynchronizationContext event = new SynchronizationContext();
event.performQueries = true;
event.taskRepository = repository;
event.fullSynchronization = true;
@@ -286,7 +286,7 @@ public class TracTaskDataHandlerTest extends TestCase {
private void postTaskDataInvalidCredentials() throws Exception {
TracTask task = (TracTask) TasksUiUtil.createTask(repository, data.offlineHandlerTicketId + "", null);
TasksUi.synchronizeTask(connector, task, true, null);
- RepositoryTaskData taskData = TasksUiPlugin.getTaskDataManager().getNewTaskData(task.getRepositoryUrl(),
+ RepositoryTaskData taskData = TasksUiPlugin.getTaskDataStorageManager().getNewTaskData(task.getRepositoryUrl(),
task.getTaskId());
taskData.setNewComment("new comment");

Back to the top