Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Yee2016-09-24 14:15:49 +0000
committerGerrit Code Review @ Eclipse.org2016-09-30 18:19:33 +0000
commite66f67cbe1e975a1a023515b3e1babc6f0174bff (patch)
tree949341a1d2013d164ae91e9521512ba3c7b9557e /org.eclipse.mylyn.tasks.tests
parentb13d27156edd3dd2894cc628f3f40acb3ad104e7 (diff)
downloadorg.eclipse.mylyn.tasks-e66f67cbe1e975a1a023515b3e1babc6f0174bff.tar.gz
org.eclipse.mylyn.tasks-e66f67cbe1e975a1a023515b3e1babc6f0174bff.tar.xz
org.eclipse.mylyn.tasks-e66f67cbe1e975a1a023515b3e1babc6f0174bff.zip
502035: Refactor the task list scheduler constructor
- Require a Job-typed parameter instead of a factory Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=502035 Change-Id: I3d491ccf7c11d33d2f6b26233f79f67f46cfa9a6 Signed-off-by: David Yee <dveyee@hotmail.com>
Diffstat (limited to 'org.eclipse.mylyn.tasks.tests')
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/TaskListSynchronizationSchedulerTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/TaskListSynchronizationSchedulerTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/TaskListSynchronizationSchedulerTest.java
index c030c73f8..77fc8168a 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/TaskListSynchronizationSchedulerTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/TaskListSynchronizationSchedulerTest.java
@@ -14,9 +14,6 @@ package org.eclipse.mylyn.tasks.tests.ui;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
-import junit.framework.AssertionFailedError;
-import junit.framework.TestCase;
-
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.mylyn.internal.tasks.ui.ITasksUiPreferenceConstants;
@@ -28,6 +25,9 @@ import org.eclipse.mylyn.tasks.core.sync.ISynchronizationSession;
import org.eclipse.mylyn.tasks.tests.TaskTestUtil;
import org.eclipse.mylyn.tasks.tests.connector.MockRepositoryConnector;
+import junit.framework.AssertionFailedError;
+import junit.framework.TestCase;
+
/**
* @author Steffen Pingel
*/
@@ -89,7 +89,7 @@ public class TaskListSynchronizationSchedulerTest extends TestCase {
public void testSynchronization() throws Exception {
TaskListSynchronizationScheduler scheduler = new TaskListSynchronizationScheduler(
- TasksUiPlugin.getTaskJobFactory());
+ TasksUiPlugin.getTaskJobFactory().createSynchronizeRepositoriesJob(null));
try {
scheduler.setInterval(1);
assertTrue(connector.latch.await(10, TimeUnit.SECONDS));

Back to the top