use of org.commonjava.indy.client.core.IndyClientModule in project indy by Commonjava.
the class DownloadContentHasLengthHeaderHostedTest method getAdditionalClientModules.
@Override
protected Collection<IndyClientModule> getAdditionalClientModules() {
List<IndyClientModule> mods = new ArrayList<>();
Collection<IndyClientModule> fromParent = super.getAdditionalClientModules();
if (fromParent != null) {
mods.addAll(fromParent);
}
mods.add(new IndyRawHttpModule());
return mods;
}
use of org.commonjava.indy.client.core.IndyClientModule in project indy by Commonjava.
the class DownloadContentHasLengthHeaderTest method getAdditionalClientModules.
@Override
protected Collection<IndyClientModule> getAdditionalClientModules() {
List<IndyClientModule> mods = new ArrayList<>();
Collection<IndyClientModule> fromParent = super.getAdditionalClientModules();
if (fromParent != null) {
mods.addAll(fromParent);
}
mods.add(new IndyRawHttpModule());
return mods;
}
use of org.commonjava.indy.client.core.IndyClientModule in project indy by Commonjava.
the class DownloadDiagBundleTest method createIndyClient.
protected Indy createIndyClient() throws IndyClientException {
SiteConfig config = new SiteConfigBuilder("indy", fixture.getUrl()).withRequestTimeoutSeconds(120).build();
Collection<IndyClientModule> modules = getAdditionalClientModules();
return new Indy(config, new MemoryPasswordManager(), new IndyObjectMapper(getAdditionalMapperModules()), modules.toArray(new IndyClientModule[modules.size()]));
}
use of org.commonjava.indy.client.core.IndyClientModule in project indy by Commonjava.
the class AbstractIndyFunctionalTest method createIndyClient.
protected Indy createIndyClient() throws IndyClientException {
SiteConfig config = new SiteConfigBuilder("indy", fixture.getUrl()).withRequestTimeoutSeconds(60).build();
Collection<IndyClientModule> modules = getAdditionalClientModules();
return new Indy(config, new MemoryPasswordManager(), new IndyObjectMapper(getAdditionalMapperModules()), modules.toArray(new IndyClientModule[modules.size()]));
}
Aggregations