Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-07-09 20:11:32 +0000
committerspingel2010-07-09 20:11:32 +0000
commit9b6769c63a9b65d918a2d06bdc7e3aaf57dd7e72 (patch)
treef73bdfb1093af4c3a883fa3b76d7aa5721149f09 /org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac
parent574a2d0a13c245cb795cf17e392f7dc76e17db66 (diff)
downloadorg.eclipse.mylyn.tasks-9b6769c63a9b65d918a2d06bdc7e3aaf57dd7e72.tar.gz
org.eclipse.mylyn.tasks-9b6769c63a9b65d918a2d06bdc7e3aaf57dd7e72.tar.xz
org.eclipse.mylyn.tasks-9b6769c63a9b65d918a2d06bdc7e3aaf57dd7e72.zip
NEW - bug 318271: fix failing tests for 3.5
https://bugs.eclipse.org/bugs/show_bug.cgi?id=318271
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/client/TracClientFactoryTest.java3
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracFixture.java8
2 files changed, 7 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/client/TracClientFactoryTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/client/TracClientFactoryTest.java
index 135a5f6e8..27a7a41db 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/client/TracClientFactoryTest.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/client/TracClientFactoryTest.java
@@ -59,12 +59,11 @@ public class TracClientFactoryTest extends TestCase {
public void testProbeClient() throws Exception {
String url = fixture.getRepositoryUrl();
- boolean xmlrpcInstalled = (fixture.getAccessMode() == Version.XML_RPC);
Credentials credentials = TestUtil.readCredentials(PrivilegeLevel.USER);
WebLocation location = new WebLocation(url, credentials.username, credentials.password);
Version version = TracClientFactory.probeClient(location);
- if (xmlrpcInstalled) {
+ if (fixture.isXmlRpcEnabled()) {
assertEquals(Version.XML_RPC, version);
} else {
assertEquals(Version.TRAC_0_9, version);
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracFixture.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracFixture.java
index 63d76fe29..01554e426 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracFixture.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracFixture.java
@@ -75,7 +75,7 @@ public class TracFixture extends TestFixture {
"0.12dev-r0", "Web");
public static TracFixture TRAC_TRUNK_XML_RPC = new TracFixture(Version.XML_RPC,
- TracTestConstants.TEST_TRAC_TRUNK_URL, "0.12dev-r0", "XML-RPC");
+ TracTestConstants.TEST_TRAC_TRUNK_URL, "0.13dev-r0", "XML-RPC");
public static TracFixture DEFAULT = TRAC_0_12_XML_RPC;
@@ -85,7 +85,7 @@ public class TracFixture extends TestFixture {
* Standard configurations for running all test against.
*/
public static final TracFixture[] ALL = new TracFixture[] { TRAC_0_10_WEB, TRAC_0_11_WEB, TRAC_0_12_WEB,
- TRAC_TRUNK_WEB, TRAC_0_10_XML_RPC, TRAC_0_11_XML_RPC, TRAC_0_12_XML_RPC, TRAC_TRUNK_XML_RPC, /* TRAC_0_10_XML_RPC_SSL, */};
+ /*TRAC_TRUNK_WEB, */TRAC_0_10_XML_RPC, TRAC_0_11_XML_RPC, TRAC_0_12_XML_RPC, /*TRAC_TRUNK_XML_RPC, TRAC_0_10_XML_RPC_SSL, */};
// public static final TracFixture[] ALL = new TracFixture[] { TRAC_TRUNK_XML_RPC };
@@ -216,6 +216,10 @@ public class TracFixture extends TestFixture {
return version;
}
+ public boolean isXmlRpcEnabled() {
+ return true;
+ }
+
public TaskRepository singleRepository(TracRepositoryConnector connector) {
connector.getClientManager().writeCache();
TaskRepository repository = super.singleRepository();

Back to the top