Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2007-06-07 13:58:36 -0400
committerrelves2007-06-07 13:58:36 -0400
commit0f301b3a53988ccbaf4782fb3dce11143af4386a (patch)
treec5988792c17c4e139fec3c6ebfea69af4d31ebdc /org.eclipse.mylyn.trac.tests
parent00efdf6ed0ee49ba4bc3b0e64ee1ddd3282191d4 (diff)
downloadorg.eclipse.mylyn.tasks-0f301b3a53988ccbaf4782fb3dce11143af4386a.tar.gz
org.eclipse.mylyn.tasks-0f301b3a53988ccbaf4782fb3dce11143af4386a.tar.xz
org.eclipse.mylyn.tasks-0f301b3a53988ccbaf4782fb3dce11143af4386a.zip
ASSIGNED - bug 189066: [api] updateTaskFromTaskData() should not block
https://bugs.eclipse.org/bugs/show_bug.cgi?id=189066
Diffstat (limited to 'org.eclipse.mylyn.trac.tests')
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/RepositorySearchQueryTest.java2
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracQueryTest.java2
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryConnectorTest.java7
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryQueryTest.java4
4 files changed, 5 insertions, 10 deletions
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/RepositorySearchQueryTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/RepositorySearchQueryTest.java
index 77b927acd..b75c45fd0 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/RepositorySearchQueryTest.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/RepositorySearchQueryTest.java
@@ -76,7 +76,7 @@ public class RepositorySearchQueryTest extends TestCase {
TracSearch search = new TracSearch();
String queryUrl = repository.getUrl() + ITracClient.QUERY_URL + search.toUrl();
- TracRepositoryQuery query = new TracRepositoryQuery(repository.getUrl(), queryUrl, "description", null);
+ TracRepositoryQuery query = new TracRepositoryQuery(repository.getUrl(), queryUrl, "description");
SearchHitCollector collector = new SearchHitCollector(TasksUiPlugin.getTaskListManager()
.getTaskList(), repository, query, new TaskFactory(repository));
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracQueryTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracQueryTest.java
index a17f63605..bdef3840d 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracQueryTest.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracQueryTest.java
@@ -24,7 +24,7 @@ public class TracQueryTest extends TestCase {
private TracRepositoryQuery createQuery(String parameter) {
String url = "http://oss.steffenpingel.de/mylar-trac-connector";
- return new TracRepositoryQuery(url, url + ITracClient.QUERY_URL + parameter, "description", null);
+ return new TracRepositoryQuery(url, url + ITracClient.QUERY_URL + parameter, "description");
}
public void testGetTracSearch() {
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 0379d5e79..b05d1da08 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
@@ -47,7 +47,6 @@ import org.eclipse.mylar.tasks.core.ITask;
import org.eclipse.mylar.tasks.core.QueryHitCollector;
import org.eclipse.mylar.tasks.core.RepositoryTaskData;
import org.eclipse.mylar.tasks.core.Task;
-import org.eclipse.mylar.tasks.core.TaskList;
import org.eclipse.mylar.tasks.core.TaskRepository;
import org.eclipse.mylar.tasks.core.TaskRepositoryManager;
import org.eclipse.mylar.tasks.ui.TaskFactory;
@@ -70,8 +69,6 @@ public class TracRepositoryConnectorTest extends TestCase {
private TracRepositoryConnector connector;
- private TaskList tasklist;
-
@Override
protected void setUp() throws Exception {
super.setUp();
@@ -79,8 +76,6 @@ public class TracRepositoryConnectorTest extends TestCase {
manager = TasksUiPlugin.getRepositoryManager();
manager.clearRepositories(TasksUiPlugin.getDefault().getRepositoriesFilePath());
- tasklist = TasksUiPlugin.getTaskListManager().getTaskList();
-
data = TestFixture.init010();
}
@@ -212,7 +207,7 @@ public class TracRepositoryConnectorTest extends TestCase {
search.setOrderBy("id");
String queryUrl = url + ITracClient.QUERY_URL + search.toUrl();
- TracRepositoryQuery query = new TracRepositoryQuery(url, queryUrl, "description", tasklist);
+ TracRepositoryQuery query = new TracRepositoryQuery(url, queryUrl, "description");
//MultiStatus queryStatus = new MultiStatus(TracUiPlugin.PLUGIN_ID, IStatus.OK, "Query result", null);
final List<RepositoryTaskData> result = new ArrayList<RepositoryTaskData>();
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 346625c3e..4a41c39b8 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
@@ -40,7 +40,7 @@ public class TracRepositoryQueryTest extends TestCase {
TracSearch search = new TracSearch();
String queryUrl = repository.getUrl() + ITracClient.QUERY_URL + search.toUrl();
- TracRepositoryQuery query = new TracRepositoryQuery(repository.getUrl(), queryUrl, "description", TasksUiPlugin.getTaskListManager().getTaskList());
+ TracRepositoryQuery query = new TracRepositoryQuery(repository.getUrl(), queryUrl, "description");
TasksUiPlugin.getTaskListManager().getTaskList().addQuery(query);
TracTask task = new TracTask(Constants.TEST_TRAC_096_URL, ""+123, "desc");
@@ -60,7 +60,7 @@ public class TracRepositoryQueryTest extends TestCase {
String repositoryUrl = "https://foo.bar/repo";
String parameterUrl = "&status=new&status=assigned&status=reopened&milestone=0.1";
String queryUrl = repositoryUrl + ITracClient.QUERY_URL + parameterUrl;
- TracRepositoryQuery query = new TracRepositoryQuery(repositoryUrl, queryUrl, "description", TasksUiPlugin.getTaskListManager().getTaskList());
+ TracRepositoryQuery query = new TracRepositoryQuery(repositoryUrl, queryUrl, "description");
TracSearch filterList = query.getTracSearch();

Back to the top