diff options
Diffstat (limited to 'org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/live/LiveTest.java')
-rw-r--r-- | org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/live/LiveTest.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/live/LiveTest.java b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/live/LiveTest.java index 93e2493d..fd7cc666 100644 --- a/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/live/LiveTest.java +++ b/org.eclipse.egit.github.core.tests/src/org/eclipse/egit/github/core/tests/live/LiveTest.java @@ -15,7 +15,7 @@ import java.net.URL; import junit.framework.TestCase; -import org.apache.commons.httpclient.HostConfiguration; +import org.apache.http.HttpHost; import org.eclipse.egit.github.core.client.GitHubClient; /** @@ -51,11 +51,10 @@ public abstract class LiveTest extends TestCase { protected GitHubClient createClient(String url) throws IOException { GitHubClient client = null; if (url != null) { - HostConfiguration config = new HostConfiguration(); URL parsed = new URL(url); - config.setHost(parsed.getHost(), parsed.getPort(), + HttpHost httpHost = new HttpHost(parsed.getHost(), parsed.getPort(), parsed.getProtocol()); - client = new GitHubClient(config); + client = new GitHubClient(httpHost); } else client = new GitHubClient(); return configure(client); |