use of org.apache.solr.client.solrj.impl.CloudSolrClient.Builder in project lucene-solr by apache.
the class CloudSolrClientBuilderTest method testSingleZkHostSpecified.
@Test
public void testSingleZkHostSpecified() throws IOException {
try (CloudSolrClient createdClient = new Builder().withZkHost(ANY_ZK_HOST).withZkChroot(ANY_CHROOT).build()) {
final String clientZkHost = createdClient.getZkHost();
assertTrue(clientZkHost.contains(ANY_ZK_HOST));
}
}
Aggregations