Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2011-01-24 19:56:25 +0000
committerspingel2011-01-24 19:56:25 +0000
commit164b4ed1f5a1332d1022a648ca0c14c276ed1d89 (patch)
tree3c8b3bea8d7c3a4715d160916e6509f39e1d92f0 /org.eclipse.mylyn.tests.util
parent822709f4ad5eb105eedc22cf9342f173e44a1cbb (diff)
downloadorg.eclipse.mylyn.tasks-164b4ed1f5a1332d1022a648ca0c14c276ed1d89.tar.gz
org.eclipse.mylyn.tasks-164b4ed1f5a1332d1022a648ca0c14c276ed1d89.tar.xz
org.eclipse.mylyn.tasks-164b4ed1f5a1332d1022a648ca0c14c276ed1d89.zip
NEW - bug 335097: fix test failures on hudson
https://bugs.eclipse.org/bugs/show_bug.cgi?id=335097
Diffstat (limited to 'org.eclipse.mylyn.tests.util')
-rw-r--r--org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestFixture.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestFixture.java b/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestFixture.java
index a78f42252..732e2740c 100644
--- a/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestFixture.java
+++ b/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestFixture.java
@@ -23,6 +23,7 @@ import org.eclipse.mylyn.commons.net.AuthenticationCredentials;
import org.eclipse.mylyn.commons.net.AuthenticationType;
import org.eclipse.mylyn.commons.net.IProxyProvider;
import org.eclipse.mylyn.commons.net.WebLocation;
+import org.eclipse.mylyn.commons.net.WebUtil;
import org.eclipse.mylyn.internal.tasks.core.TaskRepositoryManager;
import org.eclipse.mylyn.internal.tasks.ui.ITasksUiPreferenceConstants;
import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
@@ -163,7 +164,7 @@ public abstract class TestFixture {
}
public AbstractWebLocation location(PrivilegeLevel level) throws Exception {
- return location(level, Proxy.NO_PROXY);
+ return location(level, WebUtil.getProxyForUrl(repositoryUrl));
}
public AbstractWebLocation location(PrivilegeLevel level, Proxy proxy) throws Exception {
@@ -172,7 +173,7 @@ public abstract class TestFixture {
}
public AbstractWebLocation location(String username, String password) throws Exception {
- return location(username, password, Proxy.NO_PROXY);
+ return location(username, password, WebUtil.getProxyForUrl(repositoryUrl));
}
public AbstractWebLocation location(String username, String password, final Proxy proxy) throws Exception {

Back to the top