summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-10-15 17:38:39 (EDT)
committer Steffen Pingel2012-10-16 13:01:46 (EDT)
commit53af45836d0ed7fdbe9e747d0de046a93fe58326 (patch)
tree3840a8f09e019107382922ed5b3e27a0d25c0643
parentbeb5e01954221eecac16b362d9689c6031080c9a (diff)
downloadorg.eclipse.mylyn.tasks-53af45836d0ed7fdbe9e747d0de046a93fe58326.zip
org.eclipse.mylyn.tasks-53af45836d0ed7fdbe9e747d0de046a93fe58326.tar.gz
org.eclipse.mylyn.tasks-53af45836d0ed7fdbe9e747d0de046a93fe58326.tar.bz2
389130: add Trac 1.0 test server to clean up
Change-Id: I53c9145b9f0346bf5c568542968d5637a76e25f0 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=389130
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracTestCleanupUtil.java10
1 files changed, 9 insertions, 1 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 915a1aa..09034cc 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
@@ -16,12 +16,12 @@ import java.util.List;
import junit.framework.TestCase;
+import org.eclipse.mylyn.commons.sdk.util.CommonTestUtil.PrivilegeLevel;
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.commons.sdk.util.CommonTestUtil.PrivilegeLevel;
import org.eclipse.mylyn.trac.tests.support.XmlRpcServer.TestData;
/**
@@ -73,6 +73,14 @@ public class TracTestCleanupUtil extends TestCase {
deleteOldTickets();
}
+ public void testCleanup_1_0() throws Exception {
+ TracFixture fixture = TracFixture.TRAC_1_0_XML_RPC.activate();
+ System.err.println("Connected to " + fixture.getRepositoryUrl());
+ client = fixture.connect(PrivilegeLevel.ADMIN);
+ deleteOldAttachments();
+ deleteOldTickets();
+ }
+
public void testCleanupTrunk() throws Exception {
TracFixture fixture = TracFixture.TRAC_TRUNK_XML_RPC.activate();
System.err.println("Connected to " + fixture.getRepositoryUrl());