Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2013-04-16 15:10:41 +0000
committerGerrit Code Review @ Eclipse.org2013-04-21 23:07:54 +0000
commita4275ac930f94ddaa2e75dc8dff860c51b43c775 (patch)
tree1fee82f5cb060cbca7691d8e4b03a81cae09954e /org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn
parent72f3117a1c2e325d823bd44c9a0c23843d93d99e (diff)
downloadorg.eclipse.mylyn.tasks-a4275ac930f94ddaa2e75dc8dff860c51b43c775.tar.gz
org.eclipse.mylyn.tasks-a4275ac930f94ddaa2e75dc8dff860c51b43c775.tar.xz
org.eclipse.mylyn.tasks-a4275ac930f94ddaa2e75dc8dff860c51b43c775.zip
399803: simplify Bugzilla fixture discovery
* Discover all fixtures dynamically and remove hard coded URLs. Change-Id: I23197e708b31a9996cf3b53558771fb06c92e77c Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=399803
Diffstat (limited to 'org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn')
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracFixture.java12
1 files changed, 4 insertions, 8 deletions
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracFixture.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracFixture.java
index ea221777c..f80294cd8 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracFixture.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracFixture.java
@@ -30,7 +30,6 @@ import org.eclipse.mylyn.internal.trac.core.TracRepositoryConnector;
import org.eclipse.mylyn.internal.trac.core.client.ITracClient;
import org.eclipse.mylyn.internal.trac.core.client.ITracClient.Version;
import org.eclipse.mylyn.tasks.core.TaskRepository;
-import org.eclipse.mylyn.tasks.ui.TasksUi;
import org.eclipse.mylyn.tests.util.TestFixture;
/**
@@ -47,17 +46,14 @@ public class TracFixture extends TestFixture {
private static TracFixture current;
- public static TracFixture current(TracFixture fixture) {
+ public static TracFixture current() {
if (current == null) {
- fixture.activate();
+ current = TestConfiguration.getDefault().discoverDefault(TracFixture.class, "trac");
+ current.activate();
}
return current;
}
- public static TracFixture current() {
- return current(TestConfiguration.getDefault().discoverDefault(TracFixture.class, "trac"));
- }
-
private final Version accessMode;
private final String version;
@@ -177,7 +173,7 @@ public class TracFixture extends TestFixture {
@Override
public TracRepositoryConnector connector() {
- return (TracRepositoryConnector) TasksUi.getRepositoryConnector(TracCorePlugin.CONNECTOR_KIND);
+ return (TracRepositoryConnector) super.connector();
}
public TracHarness createHarness() {

Back to the top