use of org.commonjava.maven.galley.transport.htcli.internal.HttpDownload in project indy by Commonjava.
the class MavenContentFilteringTransferDecoratorTest method getTestHttpTransfer.
private Transfer getTestHttpTransfer(final String path, final String content) throws Exception {
fixture.expect("GET", fixture.formatUrl(path), 200, content);
final String baseUri = fixture.getBaseUri();
final SimpleHttpLocation location = new SimpleHttpLocation("test", baseUri, false, true, true, true, null);
final Transfer transfer = fixture.getTransfer(new ConcreteResource(location, path));
final String url = fixture.formatUrl(path);
assertThat(transfer.exists(), equalTo(false));
HttpDownload dl = new HttpDownload(url, location, transfer, new HashMap<>(), new EventMetadata(), fixture.getHttp().getHttp(), new ObjectMapper(), true, metricRegistry, metricConfig);
return dl.call().getTransfer();
}
Aggregations