Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2010-01-28 17:56:14 +0000
committerrelves2010-01-28 17:56:14 +0000
commit2502a902bcd007487e525b7a7033e6da4fa6e119 (patch)
tree8ea8031d6b1ee4b6e37388f5bc770d4346800e42
parent52c80b73095107aead3a3b975f970d3b8ddb389d (diff)
downloadorg.eclipse.mylyn.tasks-2502a902bcd007487e525b7a7033e6da4fa6e119.tar.gz
org.eclipse.mylyn.tasks-2502a902bcd007487e525b7a7033e6da4fa6e119.tar.xz
org.eclipse.mylyn.tasks-2502a902bcd007487e525b7a7033e6da4fa6e119.zip
REOPENED - bug 290465: fix Bugzilla test suite
https://bugs.eclipse.org/bugs/show_bug.cgi?id=290465
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/AllBugzillaHeadlessStandaloneTests.java1
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/AllBugzillaTests.java2
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaTaskCompletionTest.java13
3 files changed, 9 insertions, 7 deletions
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/AllBugzillaHeadlessStandaloneTests.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/AllBugzillaHeadlessStandaloneTests.java
index 2fca87598..f8ee9b171 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/AllBugzillaHeadlessStandaloneTests.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/AllBugzillaHeadlessStandaloneTests.java
@@ -31,6 +31,7 @@ public class AllBugzillaHeadlessStandaloneTests {
TestSuite suite = new TestSuite("Headless Standalone Tests for org.eclipse.mylyn.bugzilla.tests");
suite.addTestSuite(BugzillaConfigurationTest.class);
suite.addTestSuite(BugzillaVersionTest.class);
+ suite.addTestSuite(BugzillaTaskCompletionTest.class);
for (BugzillaFixture fixture : BugzillaFixture.ALL) {
fixture.createSuite(suite);
// only run certain tests against head to avoid spurious failures
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/AllBugzillaTests.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/AllBugzillaTests.java
index 9aad4297a..eec1fb6e2 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/AllBugzillaTests.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/AllBugzillaTests.java
@@ -33,8 +33,6 @@ public class AllBugzillaTests {
fixture.createSuite(suite);
// only run certain tests against head to avoid spurious failures
if (fixture != BugzillaFixture.BUGS_HEAD) {
- fixture.add(BugzillaTaskCompletionTest.class);
- fixture.add(BugzillaTaskCompletionTest.class);
fixture.add(BugzillaTaskDataHandlerTest.class);
fixture.add(TaskEditorTest.class);
fixture.add(BugzillaRepositorySettingsPageTest.class);
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaTaskCompletionTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaTaskCompletionTest.java
index 2a303a2d3..8c47a3cba 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaTaskCompletionTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaTaskCompletionTest.java
@@ -16,12 +16,12 @@ import java.util.Date;
import junit.framework.TestCase;
+import org.eclipse.mylyn.bugzilla.tests.support.BugzillaFixture;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaAttribute;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaCorePlugin;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector;
import org.eclipse.mylyn.internal.bugzilla.core.IBugzillaConstants;
import org.eclipse.mylyn.internal.tasks.core.TaskTask;
-import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
import org.eclipse.mylyn.tasks.core.data.TaskAttributeMapper;
@@ -39,10 +39,13 @@ public class BugzillaTaskCompletionTest extends TestCase {
@Override
protected void setUp() throws Exception {
super.setUp();
- this.connector = (BugzillaRepositoryConnector) TasksUiPlugin.getRepositoryManager().getRepositoryConnector(
- BugzillaCorePlugin.CONNECTOR_KIND);
- this.repository = new TaskRepository(BugzillaCorePlugin.CONNECTOR_KIND,
- BugzillaTestConstants.TEST_BUGZILLA_LATEST_URL);
+ BugzillaFixture.current().client();
+ this.repository = BugzillaFixture.current().repository();
+ this.connector = BugzillaFixture.current().connector();
+// this.connector = (BugzillaRepositoryConnector) TasksUiPlugin.getRepositoryManager().getRepositoryConnector(
+// BugzillaCorePlugin.CONNECTOR_KIND);
+// this.repository = new TaskRepository(BugzillaCorePlugin.CONNECTOR_KIND,
+// BugzillaTestConstants.TEST_BUGZILLA_LATEST_URL);
}
@Override

Back to the top