use of io.airlift.http.client.HttpClient in project presto by prestodb.
the class TestProgressMonitor method createConnection.
private Connection createConnection() throws SQLException {
HttpClient client = new TestingHttpClient(new TestingHttpClientProcessor(RESPONSES));
QueryExecutor testQueryExecutor = QueryExecutor.create(client);
String uri = format("prestotest://%s", SERVER_ADDRESS);
return new PrestoConnection(new PrestoDriverUri(uri), "test", testQueryExecutor);
}
Aggregations