use of org.janusgraph.diskstorage.es.ElasticSearchClient in project janusgraph by JanusGraph.
the class RestClientSetupTest method baseHostsConfigTest.
private List<HttpHost[]> baseHostsConfigTest(Map<String, String> extraConfigValues) throws Exception {
final ElasticSearchClient elasticClient = baseConfigTest(ImmutableMap.<String, String>builder().putAll(extraConfigValues).build());
assertSame(restElasticSearchClientMock, elasticClient);
verify(restClientSetup).getRestClient(hostListCaptor.capture(), any(Configuration.class));
return hostListCaptor.getAllValues();
}
Aggregations