Search in sources :

Example 1 with Httpbin

use of aQute.http.testservers.Httpbin in project bnd by bndtools.

the class HttpClientProxyTest method createUnsecureServer.

void createUnsecureServer() throws Exception {
    Httpbin.Config config = new Httpbin.Config();
    config.https = false;
    httpTestServer = new Httpbin(config);
    httpTestServer.start();
}
Also used : Httpbin(aQute.http.testservers.Httpbin)

Example 2 with Httpbin

use of aQute.http.testservers.Httpbin in project bnd by bndtools.

the class HttpClientProxyTest method createSecureServer.

void createSecureServer() throws Exception {
    Httpbin.Config config = new Httpbin.Config();
    config.https = true;
    httpTestServer = new Httpbin(config);
    httpTestServer.start();
}
Also used : Httpbin(aQute.http.testservers.Httpbin)

Example 3 with Httpbin

use of aQute.http.testservers.Httpbin 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();
}
Also used : Config(aQute.http.testservers.HttpTestServer.Config) Httpbin(aQute.http.testservers.Httpbin)

Example 4 with Httpbin

use of aQute.http.testservers.Httpbin in project bnd by bndtools.

the class HttpClientServerTest method createSecureServer.

public void createSecureServer() throws Exception {
    Config config = new Config();
    config.https = true;
    httpServer = new Httpbin(config);
    httpServer.start();
}
Also used : Config(aQute.http.testservers.HttpTestServer.Config) Httpbin(aQute.http.testservers.Httpbin)

Example 5 with Httpbin

use of aQute.http.testservers.Httpbin 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;
}
Also used : Config(aQute.http.testservers.HttpTestServer.Config) Config(aQute.http.testservers.HttpTestServer.Config) Httpbin(aQute.http.testservers.Httpbin) HttpTestServer(aQute.http.testservers.HttpTestServer)

Aggregations

Httpbin (aQute.http.testservers.Httpbin)5 Config (aQute.http.testservers.HttpTestServer.Config)3 HttpTestServer (aQute.http.testservers.HttpTestServer)1