Package org.elasticsearch.test.rest.client.http

Examples of org.elasticsearch.test.rest.client.http.HttpRequestBuilder


        response = closeableHttpClient().execute(request);
        assertThat(response.getStatusLine().getStatusCode(), equalTo(RestStatus.UNAUTHORIZED.getStatus()));
    }
   
    public static HttpRequestBuilder httpClient() {
        return new HttpRequestBuilder(HttpClients.createDefault())
          .host("localhost").port(9200);
    }
View Full Code Here


        HttpResponse response = httpClient().path("/_status").execute();
        assertThat(response.getStatusCode(), equalTo(RestStatus.OK.getStatus()));
    }
  
    public static HttpRequestBuilder httpClient() {
        return new HttpRequestBuilder(HttpClients.createDefault()).host("localhost").port(9200);
    }
View Full Code Here

        CloseableHttpResponse response = closeableHttpClient().execute(request);
        assertThat(response.getStatusLine().getStatusCode(), equalTo(RestStatus.UNAUTHORIZED.getStatus()));
    }

    public static HttpRequestBuilder httpClient() {
        return new HttpRequestBuilder(HttpClients.createDefault()).host("localhost").port(9200);
    }
View Full Code Here

TOP

Related Classes of org.elasticsearch.test.rest.client.http.HttpRequestBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.