Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2006-12-22 11:09:18 -0500
committermkersten2006-12-22 11:09:18 -0500
commit215e5e8e5591f54449fb54e434036053e059509f (patch)
treea4583020e92705785657f85255358af23c80b1aa /org.eclipse.mylyn.trac.tests
parent1f75ebe0265ef343ab086c429b6f8395ad8bc404 (diff)
downloadorg.eclipse.mylyn.tasks-215e5e8e5591f54449fb54e434036053e059509f.tar.gz
org.eclipse.mylyn.tasks-215e5e8e5591f54449fb54e434036053e059509f.tar.xz
org.eclipse.mylyn.tasks-215e5e8e5591f54449fb54e434036053e059509f.zip
NEW - bug 168776: Changing server in task repository does not update servers in tasks and hits
https://bugs.eclipse.org/bugs/show_bug.cgi?id=168776
Diffstat (limited to 'org.eclipse.mylyn.trac.tests')
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryQueryTest.java6
1 files changed, 6 insertions, 0 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 9e7a309de..c579ef192 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
@@ -19,8 +19,10 @@ import junit.framework.TestCase;
import org.eclipse.mylar.internal.trac.core.ITracClient;
import org.eclipse.mylar.internal.trac.core.TracCorePlugin;
import org.eclipse.mylar.internal.trac.core.TracRepositoryQuery;
+import org.eclipse.mylar.internal.trac.core.TracTask;
import org.eclipse.mylar.internal.trac.core.model.TracSearch;
import org.eclipse.mylar.internal.trac.core.model.TracSearchFilter;
+import org.eclipse.mylar.tasks.core.AbstractRepositoryTask;
import org.eclipse.mylar.tasks.core.TaskRepository;
import org.eclipse.mylar.tasks.core.TaskRepositoryManager;
import org.eclipse.mylar.tasks.ui.TasksUiPlugin;
@@ -41,6 +43,9 @@ public class TracRepositoryQueryTest extends TestCase {
String queryUrl = repository.getUrl() + ITracClient.QUERY_URL + search.toUrl();
TracRepositoryQuery query = new TracRepositoryQuery(repository.getUrl(), queryUrl, "description", TasksUiPlugin.getTaskListManager().getTaskList());
TasksUiPlugin.getTaskListManager().getTaskList().addQuery(query);
+
+ TracTask task = new TracTask(AbstractRepositoryTask.getHandle(Constants.TEST_TRAC_096_URL, 123), "desc", true);
+ TasksUiPlugin.getTaskListManager().getTaskList().addTask(task);
String oldUrl = repository.getUrl();
String newUrl = Constants.TEST_TRAC_010_URL;
@@ -49,6 +54,7 @@ public class TracRepositoryQueryTest extends TestCase {
assertEquals(newUrl, query.getRepositoryUrl());
assertEquals(newUrl + ITracClient.QUERY_URL + search.toUrl(), query.getUrl());
+ assertEquals(newUrl + ITracClient.TICKET_URL + 123, task.getUrl());
}
public void testGetFilterList() {

Back to the top