@Test(expected = SolrSearchExecutionException.class) public void executeQuery_SOLR_EXCEPTION() throws SolrServerException { when(solrServer.query(any())).thenThrow(new SolrServerException("")); solrQueryExecutor.executeQuery(new SolrQuery()); }
public QueryResponse executeQuery(SolrQuery query) { Preconditions.checkNotNull(query); QueryResponse response = null; try { response = solrServer.query(query); } catch (SolrServerException e) { throw new SolrSearchExecutionException("Couldn't execute query", e); } return response; }
SolrQueryExecutor { public QueryResponse executeQuery(SolrQuery query) { Preconditions.checkNotNull(query); QueryResponse response = null; try { response = solrServer.query(query); } catch (SolrServerException e) { throw new SolrSearchExecutionException("Couldn't execute query", e); } return response; } }
SolrQueryExecutor { public QueryResponse executeQuery(SolrQuery query) { Preconditions.checkNotNull(query); QueryResponse response = null; try { response = solrServer.query(query); } catch (SolrServerException e) { throw new SolrSearchExecutionException("Couldn't execute query", e); } return response; }  }
SolrQueryExecutor { public QueryResponse executeQuery(SolrQuery query) { Preconditions.checkNotNull(query); QueryResponse response = null; try { response = solrServer.query(query); } catch (SolrServerException e) { throw new SolrSearchExecutionException("Couldn't execute query", e); } return response; }  QueryResponse executeQuery(SolrQuery query); @Autowired @Qualifier("solrJudgmentsServer") void setSolrServer(SolrServer solrServer); }
SolrQueryExecutor { public QueryResponse executeQuery(SolrQuery query) { Preconditions.checkNotNull(query); QueryResponse response = null; try { response = solrServer.query(query); } catch (SolrServerException e) { throw new SolrSearchExecutionException("Couldn't execute query", e); } return response; }  QueryResponse executeQuery(SolrQuery query); @Autowired @Qualifier("solrJudgmentsServer") void setSolrServer(SolrServer solrServer);  }