List of usage examples for org.eclipse.jgit.transport.http HttpConnectionFactory create
HttpConnection create(URL url) throws IOException;
From source file:org.springframework.cloud.config.server.environment.ConfigurableHttpConnectionFactoryIntegrationTests.java
License:Apache License
private HttpClient getHttpClientForUrl(String repoUrl) throws IOException { HttpConnectionFactory connectionFactory = HttpTransport.getConnectionFactory(); URL url = new URL(repoUrl); HttpConnection httpConnection = connectionFactory.create(url); assertThat(httpConnection).isInstanceOf(HttpClientConnection.class); return (HttpClient) ReflectionTestUtils.getField(httpConnection, "client"); }