use of cz.mzk.recordmanager.server.solr.FaultTolerantIndexingExceptionHandler in project RecordManager2 by moravianlibrary.
the class AbstractSolrTest method createEmbeddedSolrServer.
@BeforeMethod
protected void createEmbeddedSolrServer() throws Exception {
server.deleteByQuery("*:*");
server.commit();
resetToNice(solrServerFactory);
SolrIndexingExceptionHandler handler = new FaultTolerantIndexingExceptionHandler();
expect(solrServerFactory.create(eq(SOLR_URL), anyObject(Mode.class), anyObject(SolrIndexingExceptionHandler.class))).andReturn(new SolrServerFacadeImpl(server, handler)).anyTimes();
expect(solrServerFactory.create(eq(SOLR_URL))).andReturn(new SolrServerFacadeImpl(server, handler)).anyTimes();
replay(solrServerFactory);
}
Aggregations