use of aQute.http.testservers.HttpTestServer.Config in project bnd by bndtools.
the class HttpTestServerTest method getHttps.
public HttpTestServer getHttps() throws Exception {
HttpTestServer.Config config = new Config();
config.https = true;
HttpTestServer http = new HttpTestServer(config);
http.start();
return http;
}
use of aQute.http.testservers.HttpTestServer.Config in project bnd by bndtools.
the class HttpClientTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
Config config = new Config();
config.https = false;
httpServer = new TestServer(config);
httpServer.start();
Config configs = new Config();
configs.https = true;
httpsServer = new Httpbin(configs);
httpsServer.start();
tmp = IO.getFile("generated/tmp");
IO.delete(tmp);
tmp.mkdirs();
}
use of aQute.http.testservers.HttpTestServer.Config in project bnd by bndtools.
the class RemoteRepoTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
tmpName = "generated/tmp/test/" + getName();
local = IO.getFile(tmpName + "/local");
remote = IO.getFile(tmpName + "/remote");
Config config = new Config();
fnx = new FakeNexus(config, remote);
fnx.start();
IO.delete(remote);
IO.delete(local);
remote.mkdirs();
local.mkdirs();
reporter.setTrace(true);
repo = new MavenRemoteRepository(local, new HttpClient(), fnx.getBaseURI() + "/repo/", reporter);
}
use of aQute.http.testservers.HttpTestServer.Config in project bnd by bndtools.
the class HttpTestServerTest method getHttp.
public HttpTestServer getHttp() throws Exception {
HttpTestServer.Config config = new Config();
config.https = false;
HttpTestServer http = new Httpbin(config);
http.start();
return http;
}
use of aQute.http.testservers.HttpTestServer.Config in project bnd by bndtools.
the class MavenBndRepoTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
tmpName = "generated/tmp/test/" + getName();
tmp = IO.getFile(tmpName);
IO.delete(tmp);
local = IO.getFile(tmp, "local");
remote = IO.getFile(tmp, "remote");
index = IO.getFile(tmp, "index");
remote.mkdirs();
local.mkdirs();
IO.copy(IO.getFile("testresources/mavenrepo"), remote);
IO.copy(IO.getFile("testresources/mavenrepo/index.maven"), index);
Config config = new Config();
fnx = new FakeNexus(config, remote);
fnx.start();
}
Aggregations