Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2006-01-13 18:27:16 -0500
committermkersten2006-01-13 18:27:16 -0500
commit9ed7f6c385494eda790bbf0758c046afbeb414a1 (patch)
treee36ec08f13ddb978333c50e5d36665eb9e994af5
parentd33e81b98b283a66f373608c1127d6eef864a201 (diff)
downloadorg.eclipse.mylyn.tasks-9ed7f6c385494eda790bbf0758c046afbeb414a1.tar.gz
org.eclipse.mylyn.tasks-9ed7f6c385494eda790bbf0758c046afbeb414a1.tar.xz
org.eclipse.mylyn.tasks-9ed7f6c385494eda790bbf0758c046afbeb414a1.zip
Progress on: fix failing tests
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/TaskDataExportTest.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/TaskDataExportTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/TaskDataExportTest.java
index 7491930d4..b33154b83 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/TaskDataExportTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/TaskDataExportTest.java
@@ -1,7 +1,11 @@
package org.eclipse.mylar.tasklist.tests;
import java.io.File;
+import java.net.MalformedURLException;
+import java.net.URL;
+import org.eclipse.mylar.bugzilla.core.BugzillaPlugin;
+import org.eclipse.mylar.bugzilla.core.IBugzillaConstants;
import org.eclipse.mylar.core.InteractionEvent;
import org.eclipse.mylar.core.MylarPlugin;
import org.eclipse.mylar.core.internal.MylarContext;
@@ -11,6 +15,7 @@ import org.eclipse.mylar.tasklist.ITask;
import org.eclipse.mylar.tasklist.MylarTaskListPlugin;
import org.eclipse.mylar.tasklist.internal.Task;
import org.eclipse.mylar.tasklist.internal.TaskListManager;
+import org.eclipse.mylar.tasklist.repositories.TaskRepository;
import org.eclipse.mylar.tasklist.ui.wizards.TaskDataExportWizard;
import org.eclipse.mylar.tasklist.ui.wizards.TaskDataExportWizardPage;
import org.eclipse.swt.widgets.Shell;
@@ -35,9 +40,22 @@ public class TaskDataExportTest extends AbstractContextTest {
private MylarContext mockContext;
+ private TaskRepository repository;
+
+ public TaskDataExportTest() {
+ try {
+ repository = new TaskRepository(BugzillaPlugin.REPOSITORY_KIND, new URL(IBugzillaConstants.ECLIPSE_BUGZILLA_URL));
+ } catch (MalformedURLException e) {
+ fail();
+ e.printStackTrace();
+ }
+ }
+
protected void setUp() throws Exception {
super.setUp();
+ MylarTaskListPlugin.getRepositoryManager().addRepository(repository);
+
// Create the export wizard
wizard = new TaskDataExportWizard();
wizard.addPages();
@@ -74,6 +92,8 @@ public class TaskDataExportTest extends AbstractContextTest {
destinationDir.delete();
assertFalse(destinationDir.exists());
MylarPlugin.getContextManager().contextDeactivated(mockContext.getId());
+
+ MylarTaskListPlugin.getRepositoryManager().removeRepository(repository);
super.tearDown();
}

Back to the top