Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.trac.tests')
-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