Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2008-09-19 02:05:38 +0000
committerspingel2008-09-19 02:05:38 +0000
commitf7ea6c4adf77ee48cf014837a61c93ef70c79e41 (patch)
treed0c9e80df276e45f16017a5f59e814bea1894eb4 /org.eclipse.mylyn.trac.tests
parent03e1edb3a3931f8f8abee58300e984fe51051e54 (diff)
downloadorg.eclipse.mylyn.tasks-f7ea6c4adf77ee48cf014837a61c93ef70c79e41.tar.gz
org.eclipse.mylyn.tasks-f7ea6c4adf77ee48cf014837a61c93ef70c79e41.tar.xz
org.eclipse.mylyn.tasks-f7ea6c4adf77ee48cf014837a61c93ef70c79e41.zip
NEW - bug 237552: [api] remove deprecated classes
https://bugs.eclipse.org/bugs/show_bug.cgi?id=237552
Diffstat (limited to 'org.eclipse.mylyn.trac.tests')
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracTaskEditorTest.java7
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracTestUtil.java7
2 files changed, 12 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracTaskEditorTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracTaskEditorTest.java
index a57e6de8d..7b9c20fe7 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracTaskEditorTest.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracTaskEditorTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
-* Copyright (c) 2006, 2008 Steffen Pingel and others.
+ * Copyright (c) 2006, 2008 Steffen Pingel and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -28,6 +28,11 @@ import org.eclipse.mylyn.trac.tests.support.TracTestUtil;
*/
public class TracTaskEditorTest extends TestCase {
+ @Override
+ protected void setUp() throws Exception {
+ TracTestUtil.resetTaskList();
+ }
+
public void testGetSelectedRepository() throws Exception {
TaskRepository repository = TracTestUtil.init(TracTestConstants.TEST_TRAC_010_URL, Version.XML_RPC);
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracTestUtil.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracTestUtil.java
index 620463f45..f0caf085e 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracTestUtil.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracTestUtil.java
@@ -1,5 +1,5 @@
/*******************************************************************************
-* Copyright (c) 2006, 2008 Steffen Pingel and others.
+ * Copyright (c) 2006, 2008 Steffen Pingel and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -90,4 +90,9 @@ public class TracTestUtil {
return attachments;
}
+ @SuppressWarnings("deprecation")
+ public static void resetTaskList() {
+ TasksUiPlugin.getTaskListManager().resetTaskList();
+ }
+
}

Back to the top