Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-01-10 02:06:36 +0000
committerspingel2010-01-10 02:06:36 +0000
commit5aede5b3e18b212f33025b5c42974513f230b4a8 (patch)
treebc36fb806ce85d99e4e1f6a9fd3e785b897b294b /org.eclipse.mylyn.tests.util
parent2e7f97bbd4babcea6b3dab253b76518ff5f5720f (diff)
downloadorg.eclipse.mylyn.tasks-5aede5b3e18b212f33025b5c42974513f230b4a8.tar.gz
org.eclipse.mylyn.tasks-5aede5b3e18b212f33025b5c42974513f230b4a8.tar.xz
org.eclipse.mylyn.tasks-5aede5b3e18b212f33025b5c42974513f230b4a8.zip
REOPENED - bug 296894: [releng] fix failing tests for 3.4
https://bugs.eclipse.org/bugs/show_bug.cgi?id=296894
Diffstat (limited to 'org.eclipse.mylyn.tests.util')
-rw-r--r--org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestFixture.java10
1 files changed, 9 insertions, 1 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 2484aecd0..7fb4e48d1 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
@@ -218,7 +218,15 @@ public abstract class TestFixture {
}
public void setUpFramework() {
- IPreferenceStore store = TasksUiPlugin.getDefault().getPreferenceStore();
+ initializeTasksSettings();
+ }
+
+ public static void initializeTasksSettings() {
+ TasksUiPlugin plugin = TasksUiPlugin.getDefault();
+ if (plugin == null) {
+ return;
+ }
+ IPreferenceStore store = plugin.getPreferenceStore();
store.setValue(ITasksUiPreferenceConstants.NOTIFICATIONS_ENABLED, false);
store.setValue(ITasksUiPreferenceConstants.REPOSITORY_SYNCH_SCHEDULE_ENABLED, false);
}

Back to the top