Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaSearchEngineTest.java')
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaSearchEngineTest.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaSearchEngineTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaSearchEngineTest.java
index 29819c12c..7235ce2bb 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaSearchEngineTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaSearchEngineTest.java
@@ -23,10 +23,10 @@ import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.mylar.internal.bugzilla.core.BugzillaPlugin;
import org.eclipse.mylar.internal.bugzilla.core.IBugzillaConstants;
import org.eclipse.mylar.internal.bugzilla.ui.tasklist.BugzillaRepositoryQuery;
-import org.eclipse.mylar.provisional.tasklist.AbstractRepositoryConnector;
-import org.eclipse.mylar.provisional.tasklist.MylarTaskListPlugin;
import org.eclipse.mylar.tasks.core.AbstractQueryHit;
import org.eclipse.mylar.tasks.core.TaskRepository;
+import org.eclipse.mylar.tasks.ui.AbstractRepositoryConnector;
+import org.eclipse.mylar.tasks.ui.TasksUiPlugin;
/**
* @author Rob Elves
@@ -42,12 +42,12 @@ public class BugzillaSearchEngineTest extends TestCase {
protected void setUp() throws Exception {
super.setUp();
- MylarTaskListPlugin.getRepositoryManager().clearRepositories();
- assertEquals(NUM_REPOSITORIES, MylarTaskListPlugin.getRepositoryManager().getRepositories(BugzillaPlugin.REPOSITORY_KIND).size());
+ TasksUiPlugin.getRepositoryManager().clearRepositories();
+ assertEquals(NUM_REPOSITORIES, TasksUiPlugin.getRepositoryManager().getRepositories(BugzillaPlugin.REPOSITORY_KIND).size());
}
protected void tearDown() throws Exception {
- MylarTaskListPlugin.getRepositoryManager().clearRepositories();
+ TasksUiPlugin.getRepositoryManager().clearRepositories();
super.tearDown();
}
@@ -62,45 +62,45 @@ public class BugzillaSearchEngineTest extends TestCase {
public void testSearching218() throws MalformedURLException {
TaskRepository repository = new TaskRepository(BugzillaPlugin.REPOSITORY_KIND,
IBugzillaConstants.TEST_BUGZILLA_218_URL, IBugzillaConstants.BugzillaServerVersion.SERVER_218.toString());
- MylarTaskListPlugin.getRepositoryManager().addRepository(repository);
+ TasksUiPlugin.getRepositoryManager().addRepository(repository);
assertEquals(NUM_EXPECTED_HITS, runQuery(IBugzillaConstants.TEST_BUGZILLA_218_URL, SEARCH_DESCRIPTION).size());
}
public void testSearching220() throws MalformedURLException {
TaskRepository repository = new TaskRepository(BugzillaPlugin.REPOSITORY_KIND,
IBugzillaConstants.TEST_BUGZILLA_220_URL, IBugzillaConstants.BugzillaServerVersion.SERVER_220.toString());
- MylarTaskListPlugin.getRepositoryManager().addRepository(repository);
+ TasksUiPlugin.getRepositoryManager().addRepository(repository);
assertEquals(NUM_EXPECTED_HITS, runQuery(IBugzillaConstants.TEST_BUGZILLA_220_URL, SEARCH_DESCRIPTION).size());
}
public void testSearching2201() throws MalformedURLException {
TaskRepository repository = new TaskRepository(BugzillaPlugin.REPOSITORY_KIND,
IBugzillaConstants.TEST_BUGZILLA_2201_URL, IBugzillaConstants.BugzillaServerVersion.SERVER_220.toString());
- MylarTaskListPlugin.getRepositoryManager().addRepository(repository);
+ TasksUiPlugin.getRepositoryManager().addRepository(repository);
assertEquals(NUM_EXPECTED_HITS, runQuery(IBugzillaConstants.TEST_BUGZILLA_2201_URL, SEARCH_DESCRIPTION).size());
}
public void testSearching222() throws MalformedURLException {
TaskRepository repository = new TaskRepository(BugzillaPlugin.REPOSITORY_KIND,
IBugzillaConstants.TEST_BUGZILLA_222_URL, IBugzillaConstants.BugzillaServerVersion.SERVER_222.toString());
- MylarTaskListPlugin.getRepositoryManager().addRepository(repository);
+ TasksUiPlugin.getRepositoryManager().addRepository(repository);
List<AbstractQueryHit> hits = runQuery(IBugzillaConstants.TEST_BUGZILLA_222_URL, SEARCH_DESCRIPTION);
assertEquals(NUM_EXPECTED_HITS, hits.size());
}
private List<AbstractQueryHit> runQuery(String repositoryURL, String SearchString) {
ArrayList<AbstractQueryHit> results = new ArrayList<AbstractQueryHit>();
- TaskRepository repository = MylarTaskListPlugin.getRepositoryManager().getRepository(BugzillaPlugin.REPOSITORY_KIND, repositoryURL);
+ TaskRepository repository = TasksUiPlugin.getRepositoryManager().getRepository(BugzillaPlugin.REPOSITORY_KIND, repositoryURL);
assertNotNull(repository);
final BugzillaRepositoryQuery repositoryQuery = new BugzillaRepositoryQuery(
repository.getUrl(),
repository.getUrl() + BUG_DESC_SUBSTRING_SEARCH+SearchString,
QUERY_NAME,
- MAX_HITS, MylarTaskListPlugin.getTaskListManager().getTaskList());
+ MAX_HITS, TasksUiPlugin.getTaskListManager().getTaskList());
- AbstractRepositoryConnector connector = (AbstractRepositoryConnector) MylarTaskListPlugin.getRepositoryManager().getRepositoryConnector(BugzillaPlugin.REPOSITORY_KIND);
- results.addAll(connector.performQuery(repositoryQuery, new NullProgressMonitor(), new MultiStatus(MylarTaskListPlugin.PLUGIN_ID, IStatus.OK, "Query result", null)));
+ AbstractRepositoryConnector connector = (AbstractRepositoryConnector) TasksUiPlugin.getRepositoryManager().getRepositoryConnector(BugzillaPlugin.REPOSITORY_KIND);
+ results.addAll(connector.performQuery(repositoryQuery, new NullProgressMonitor(), new MultiStatus(TasksUiPlugin.PLUGIN_ID, IStatus.OK, "Query result", null)));
return results;
}

Back to the top