List of usage examples for org.eclipse.jgit.transport HttpTransport getConnectionFactory
public static HttpConnectionFactory getConnectionFactory()
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"); }