@Test public void testAsyncSearch() throws Exception { AsyncSearch search = new AsyncSearch(Map.of("column", "value"), new MockDatasource()); CompletableFuture<QueryResults> completable = search.runSearchAsync(); assertEquals(1, completable.get().size()); search = new AsyncSearch(Map.of("column", "value"), null); assertTrue(search.runSearchAsync().get().isEmpty()); search = new AsyncSearch(null, new MockDatasource()); assertTrue(search.runSearchAsync().get().isEmpty()); }
public AsyncSearch(Map<String, String> searchQuery, Datasource datasource) { this.searchQuery = searchQuery; this.datasource = datasource; }
AsyncSearch { public AsyncSearch(Map<String, String> searchQuery, Datasource datasource) { this.searchQuery = searchQuery; this.datasource = datasource; } }
AsyncSearch { public AsyncSearch(Map<String, String> searchQuery, Datasource datasource) { this.searchQuery = searchQuery; this.datasource = datasource; } AsyncSearch(Map<String, String> searchQuery, Datasource datasource); }
AsyncSearch { public AsyncSearch(Map<String, String> searchQuery, Datasource datasource) { this.searchQuery = searchQuery; this.datasource = datasource; } AsyncSearch(Map<String, String> searchQuery, Datasource datasource); CompletableFuture<QueryResults> runSearchAsync(); }
AsyncSearch { public AsyncSearch(Map<String, String> searchQuery, Datasource datasource) { this.searchQuery = searchQuery; this.datasource = datasource; } AsyncSearch(Map<String, String> searchQuery, Datasource datasource); CompletableFuture<QueryResults> runSearchAsync();  }