use of org.codice.solr.client.solrj.SolrClient in project ddf by codice.
the class SolrClientFactoryImplTest method newClientWithUnknownClientType.
@Test
public void newClientWithUnknownClientType() {
System.setProperty("solr.client", "Unknown");
SolrClientFactoryImpl factory = new SolrClientFactoryImpl(mockHttpSolrClientFactory);
SolrClient client = factory.newClient("core");
assertThat(factory.getFactory(), is(mockHttpSolrClientFactory));
assertThat(client, is(mockClient));
}
use of org.codice.solr.client.solrj.SolrClient in project ddf by codice.
the class SolrClientFactoryImplTest method newHttpSolrClient.
@Test
public void newHttpSolrClient() {
System.setProperty("solr.client", "HttpSolrClient");
SolrClientFactoryImpl factory = new SolrClientFactoryImpl(mockHttpSolrClientFactory);
SolrClient client = factory.newClient("core");
assertThat(factory.getFactory(), is(mockHttpSolrClientFactory));
assertThat(client, is(mockClient));
}
Aggregations