query.setQuery("*:*");
QueryResponse resp = solr.query(query);
long numDocs = resp.getResults().getNumFound();
actualDocs += numDocs;
} finally {
solr.shutdown();
}
}
}
assertEquals(expectedShards, actualShards);
assertEquals(expectedDocs, actualDocs);