Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2011-01-25 21:12:35 +0000
committerspingel2011-01-25 21:12:35 +0000
commit0ea1772425f8dccdb1c90386945cddeb422e1e93 (patch)
treea49b37b875576c3c52498249db32b6686342c061 /org.eclipse.mylyn.tasks.tests
parent164b4ed1f5a1332d1022a648ca0c14c276ed1d89 (diff)
downloadorg.eclipse.mylyn.tasks-0ea1772425f8dccdb1c90386945cddeb422e1e93.tar.gz
org.eclipse.mylyn.tasks-0ea1772425f8dccdb1c90386945cddeb422e1e93.tar.xz
org.eclipse.mylyn.tasks-0ea1772425f8dccdb1c90386945cddeb422e1e93.zip
NEW - bug 335097: fix test failures on hudson
https://bugs.eclipse.org/bugs/show_bug.cgi?id=335097
Diffstat (limited to 'org.eclipse.mylyn.tasks.tests')
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositoryManagerTest.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositoryManagerTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositoryManagerTest.java
index c99f3db07..e1a9d8284 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositoryManagerTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskRepositoryManagerTest.java
@@ -29,6 +29,7 @@ import org.eclipse.mylyn.commons.net.AuthenticationCredentials;
import org.eclipse.mylyn.commons.net.AuthenticationType;
import org.eclipse.mylyn.internal.tasks.core.AbstractTask;
import org.eclipse.mylyn.internal.tasks.core.ITasksCoreConstants;
+import org.eclipse.mylyn.internal.tasks.core.LocalRepositoryConnector;
import org.eclipse.mylyn.internal.tasks.core.RepositoryTaskHandleUtil;
import org.eclipse.mylyn.internal.tasks.core.TaskRepositoryManager;
import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
@@ -206,8 +207,8 @@ public class TaskRepositoryManagerTest extends TestCase {
}
public void testGet() throws MalformedURLException {
- assertEquals("", TasksUiPlugin.getDefault().getPreferenceStore().getString(
- TaskRepositoryManager.PREF_REPOSITORIES));
+ assertEquals("",
+ TasksUiPlugin.getDefault().getPreferenceStore().getString(TaskRepositoryManager.PREF_REPOSITORIES));
TaskRepository repository = new TaskRepository(DEFAULT_KIND, DEFAULT_URL);
manager.addRepository(repository);
@@ -243,8 +244,8 @@ public class TaskRepositoryManagerTest extends TestCase {
}
public void testRepositoryAttributePersistance() throws Exception {
- assertEquals("", TasksUiPlugin.getDefault().getPreferenceStore().getString(
- TaskRepositoryManager.PREF_REPOSITORIES));
+ assertEquals("",
+ TasksUiPlugin.getDefault().getPreferenceStore().getString(TaskRepositoryManager.PREF_REPOSITORIES));
String version = "123";
String encoding = "UTF-16";
@@ -318,8 +319,8 @@ public class TaskRepositoryManagerTest extends TestCase {
}
public void testRepositoryPersistanceSameUrl() throws Exception {
- TaskRepository repository1 = new TaskRepository("local", "http://repository");
- TaskRepository repository2 = new TaskRepository("web", "http://repository");
+ TaskRepository repository1 = new TaskRepository(LocalRepositoryConnector.CONNECTOR_KIND, "http://repository");
+ TaskRepository repository2 = new TaskRepository(MockRepositoryConnector.CONNECTOR_KIND, "http://repository");
manager.addRepository(repository1);
manager.addRepository(repository2);
assertEquals(2, manager.getAllRepositories().size());

Back to the top