Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-02-09 06:11:20 +0000
committerspingel2010-02-09 06:11:20 +0000
commit7750edc1eb92bd5adc0d7dded71fc4bf20767d66 (patch)
tree3697e5157cc5454d9816310e082832d42c2bed98 /org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac
parent7e47aa458e47d4e0253024010f6813ba7239a56d (diff)
downloadorg.eclipse.mylyn.tasks-7750edc1eb92bd5adc0d7dded71fc4bf20767d66.tar.gz
org.eclipse.mylyn.tasks-7750edc1eb92bd5adc0d7dded71fc4bf20767d66.tar.xz
org.eclipse.mylyn.tasks-7750edc1eb92bd5adc0d7dded71fc4bf20767d66.zip
NEW - bug 292090: cleanup fixme and todo comments for 3.4
https://bugs.eclipse.org/bugs/show_bug.cgi?id=292090
Diffstat (limited to 'org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac')
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracTestCleanupUtil.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracTestCleanupUtil.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracTestCleanupUtil.java
index 9c1b64c83..fe1a12532 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracTestCleanupUtil.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracTestCleanupUtil.java
@@ -11,11 +11,15 @@
package org.eclipse.mylyn.trac.tests.support;
+import java.util.ArrayList;
+import java.util.List;
+
import junit.framework.TestCase;
import org.eclipse.mylyn.internal.trac.core.client.ITracClient;
import org.eclipse.mylyn.internal.trac.core.client.TracException;
import org.eclipse.mylyn.internal.trac.core.model.TracAttachment;
+import org.eclipse.mylyn.internal.trac.core.model.TracSearch;
import org.eclipse.mylyn.internal.trac.core.model.TracTicket;
import org.eclipse.mylyn.tests.util.TestUtil.PrivilegeLevel;
import org.eclipse.mylyn.trac.tests.support.XmlRpcServer.TestData;
@@ -58,4 +62,15 @@ public class TracTestCleanupUtil extends TestCase {
}
}
+ public void deleteOldTickets() throws TracException {
+ TracSearch query = new TracSearch();
+ List<Integer> result = new ArrayList<Integer>();
+ client.searchForTicketIds(query, result, null);
+ for (Integer id : result) {
+ if (id > 10) {
+ client.deleteTicket(id, null);
+ }
+ }
+ }
+
}

Back to the top