Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2008-08-13 01:42:04 +0000
committerspingel2008-08-13 01:42:04 +0000
commit34e71ec65f8b93ccd447fc1fc73840ac92c775ba (patch)
tree27739f0526affed5c7ce68e8974efe015490fcee /org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac
parentfd1e5a2a8032b72ca0b61e93a3b3fa52bf935e37 (diff)
downloadorg.eclipse.mylyn.tasks-34e71ec65f8b93ccd447fc1fc73840ac92c775ba.tar.gz
org.eclipse.mylyn.tasks-34e71ec65f8b93ccd447fc1fc73840ac92c775ba.tar.xz
org.eclipse.mylyn.tasks-34e71ec65f8b93ccd447fc1fc73840ac92c775ba.zip
NEW - bug 238068: port test cases to Mylyn 3.0
https://bugs.eclipse.org/bugs/show_bug.cgi?id=238068
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/TracRepositoryConnectorTest.java5
1 files changed, 2 insertions, 3 deletions
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 012058b84..5cdd7d175 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
@@ -25,7 +25,6 @@ import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.mylyn.internal.context.core.ContextCorePlugin;
import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
import org.eclipse.mylyn.internal.tasks.core.TaskTask;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
import org.eclipse.mylyn.internal.tasks.ui.util.AttachmentUtil;
import org.eclipse.mylyn.internal.tasks.ui.wizards.EditRepositoryWizard;
import org.eclipse.mylyn.internal.trac.core.TracCorePlugin;
@@ -240,9 +239,9 @@ public class TracRepositoryConnectorTest extends TestCase {
// TODO attachment may have been overridden therefore size may not have changed
//assertEquals(size + 1, task.getTaskData().getAttachments().size());
ITaskAttachment attachment = attachments.get(attachments.size() - 1);
- result = AttachmentUtil.retrieveContext(connector.getTaskAttachmentHandler(), repository, task, attachment,
- TasksUiPlugin.getDefault().getDataDirectory(), PlatformUI.getWorkbench().getProgressService());
+ result = AttachmentUtil.downloadContext(task, attachment, PlatformUI.getWorkbench().getProgressService());
assertTrue(result);
+ assertTrue(task.isActive());
}
public void testContextWeb096() throws Exception {

Back to the top