@Test void testRefreshIndicesNotFound() { when(indicesAdminClient.prepareRefresh("_all")).thenReturn(refreshRequestBuilder); when(refreshRequestBuilder.get()).thenThrow(new ResourceNotFoundException("exception")); Exception exception = assertThrows(UnknownIndexException.class, () -> clientFacade.refreshIndexes()); assertThat(exception.getMessage()).containsPattern("One or more indexes '_all' not found\\."); }
public void refreshIndexes() { refreshIndexes(singletonList(Index.create("_all"))); }
ClientFacade implements Closeable { public void refreshIndexes() { refreshIndexes(singletonList(Index.create("_all"))); } }
ClientFacade implements Closeable { public void refreshIndexes() { refreshIndexes(singletonList(Index.create("_all"))); } ClientFacade(Client client); }
ClientFacade implements Closeable { public void refreshIndexes() { refreshIndexes(singletonList(Index.create("_all"))); } ClientFacade(Client client); void createIndex(Index index, IndexSettings indexSettings, Stream<Mapping> mappingStream); boolean indexesExist(Index index); void deleteIndex(Index index); void refreshIndexes(); long getCount(Index index); long getCount(QueryBuilder query, Index index); SearchHits search(QueryBuilder query, int from, int size, List<Index> indexes); SearchHits search(QueryBuilder query, int from, int size, Sort sort, Index index); Aggregations aggregate(
      List<AggregationBuilder> aggregations, QueryBuilder query, Index index); Explanation explain(SearchHit searchHit, QueryBuilder query); void index(Index index, Document document); void deleteById(Index index, Document document); void processDocumentActions(Stream<DocumentAction> documentActions); @Override void close(); }
ClientFacade implements Closeable { public void refreshIndexes() { refreshIndexes(singletonList(Index.create("_all"))); } ClientFacade(Client client); void createIndex(Index index, IndexSettings indexSettings, Stream<Mapping> mappingStream); boolean indexesExist(Index index); void deleteIndex(Index index); void refreshIndexes(); long getCount(Index index); long getCount(QueryBuilder query, Index index); SearchHits search(QueryBuilder query, int from, int size, List<Index> indexes); SearchHits search(QueryBuilder query, int from, int size, Sort sort, Index index); Aggregations aggregate(
      List<AggregationBuilder> aggregations, QueryBuilder query, Index index); Explanation explain(SearchHit searchHit, QueryBuilder query); void index(Index index, Document document); void deleteById(Index index, Document document); void processDocumentActions(Stream<DocumentAction> documentActions); @Override void close();  }