Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-01-06 05:26:19 +0000
committerspingel2010-01-06 05:26:19 +0000
commit4c6a69b2b666ae9d022d3b974e147a33bac61c28 (patch)
tree5d6d5d599e4f063ac0a69c15b736e26e78812a1e /org.eclipse.mylyn.tests.util
parent266f740403cd0b437fd4dd75265dacb1500c7a40 (diff)
downloadorg.eclipse.mylyn.tasks-4c6a69b2b666ae9d022d3b974e147a33bac61c28.tar.gz
org.eclipse.mylyn.tasks-4c6a69b2b666ae9d022d3b974e147a33bac61c28.tar.xz
org.eclipse.mylyn.tasks-4c6a69b2b666ae9d022d3b974e147a33bac61c28.zip
REOPENED - bug 286979: investigate possible race condition in JiraRepositoryConnectorTest.testMarkStaleClosedTask
https://bugs.eclipse.org/bugs/show_bug.cgi?id=286979
Diffstat (limited to 'org.eclipse.mylyn.tests.util')
-rw-r--r--org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestFixture.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestFixture.java b/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestFixture.java
index e5c6f36cd..7d95c1bac 100644
--- a/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestFixture.java
+++ b/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestFixture.java
@@ -17,12 +17,14 @@ import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.eclipse.core.runtime.Assert;
+import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.mylyn.commons.net.AbstractWebLocation;
import org.eclipse.mylyn.commons.net.AuthenticationCredentials;
import org.eclipse.mylyn.commons.net.AuthenticationType;
import org.eclipse.mylyn.commons.net.IProxyProvider;
import org.eclipse.mylyn.commons.net.WebLocation;
import org.eclipse.mylyn.internal.tasks.core.TaskRepositoryManager;
+import org.eclipse.mylyn.internal.tasks.ui.ITasksUiPreferenceConstants;
import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
import org.eclipse.mylyn.internal.tasks.ui.views.TaskListView;
import org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector;
@@ -215,4 +217,10 @@ public abstract class TestFixture {
return repository;
}
+ public void setUpFramework() {
+ IPreferenceStore store = TasksUiPlugin.getDefault().getPreferenceStore();
+ store.setDefault(ITasksUiPreferenceConstants.NOTIFICATIONS_ENABLED, false);
+ store.setDefault(ITasksUiPreferenceConstants.REPOSITORY_SYNCH_SCHEDULE_ENABLED, false);
+ }
+
}

Back to the top