Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2008-05-03 01:36:14 +0000
committerrelves2008-05-03 01:36:14 +0000
commite674511979927034f61c8b720d7d5d745523b8a1 (patch)
treec43dadb78be6368845ace3d25647fdbb4cb0cfaa /org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac
parent14213343e243dcb9e409f8a12cb03d64959875d2 (diff)
downloadorg.eclipse.mylyn.tasks-e674511979927034f61c8b720d7d5d745523b8a1.tar.gz
org.eclipse.mylyn.tasks-e674511979927034f61c8b720d7d5d745523b8a1.tar.xz
org.eclipse.mylyn.tasks-e674511979927034f61c8b720d7d5d745523b8a1.zip
NEW - bug 229828: encapsulate repository url refactoring and run with root rule
https://bugs.eclipse.org/bugs/show_bug.cgi?id=229828
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/TracRepositoryQueryTest.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryQueryTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryQueryTest.java
index e6ede7996..6a4ab53f1 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryQueryTest.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryQueryTest.java
@@ -13,7 +13,9 @@ import java.util.List;
import junit.framework.TestCase;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.mylyn.internal.tasks.core.TaskRepositoryManager;
+import org.eclipse.mylyn.internal.tasks.ui.RefactorRepositoryUrlOperation;
import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
import org.eclipse.mylyn.internal.trac.core.ITracClient;
import org.eclipse.mylyn.internal.trac.core.TracCorePlugin;
@@ -28,7 +30,7 @@ import org.eclipse.mylyn.tasks.core.TaskRepository;
*/
public class TracRepositoryQueryTest extends TestCase {
- public void testChangeRepositoryUrl() {
+ public void testChangeRepositoryUrl() throws Exception {
TaskRepositoryManager manager = TasksUiPlugin.getRepositoryManager();
manager.clearRepositories(TasksUiPlugin.getDefault().getRepositoriesFilePath());
@@ -46,7 +48,7 @@ public class TracRepositoryQueryTest extends TestCase {
String oldUrl = repository.getRepositoryUrl();
String newUrl = TracTestConstants.TEST_TRAC_010_URL;
- TasksUiPlugin.getTaskListManager().refactorRepositoryUrl(oldUrl, newUrl);
+ new RefactorRepositoryUrlOperation(oldUrl, newUrl).run(new NullProgressMonitor());
repository.setRepositoryUrl(newUrl);
assertEquals(newUrl, query.getRepositoryUrl());

Back to the top