Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-01-10 02:55:16 +0000
committerspingel2010-01-10 02:55:16 +0000
commit4d2ad5e510e79912df46403df0d141eb5f811f16 (patch)
tree9c094656b2dcb70b3f82d25a4abe54a820ebff6b /org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests
parentae2c6a06dbd3dbdb76833ddbbc0197f3fc7c5bac (diff)
downloadorg.eclipse.mylyn.tasks-4d2ad5e510e79912df46403df0d141eb5f811f16.tar.gz
org.eclipse.mylyn.tasks-4d2ad5e510e79912df46403df0d141eb5f811f16.tar.xz
org.eclipse.mylyn.tasks-4d2ad5e510e79912df46403df0d141eb5f811f16.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/src/org/eclipse/mylyn/tests')
-rw-r--r--org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestFixture.java16
1 files changed, 10 insertions, 6 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 e5d2e16d2..2ce396aaf 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
@@ -222,13 +222,17 @@ public abstract class TestFixture {
}
public static void initializeTasksSettings() {
- TasksUiPlugin plugin = TasksUiPlugin.getDefault();
- if (plugin == null) {
- return;
+ try {
+ 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);
+ } catch (NoClassDefFoundError e) {
+ // ignore, running in headless standalone environment
}
- IPreferenceStore store = plugin.getPreferenceStore();
- store.setValue(ITasksUiPreferenceConstants.NOTIFICATIONS_ENABLED, false);
- store.setValue(ITasksUiPreferenceConstants.REPOSITORY_SYNCH_SCHEDULE_ENABLED, false);
}
}

Back to the top