improve test: check hits length and zero failures

This commit is contained in:
Lukáš Vlček 2011-04-19 21:49:08 +02:00
parent 8e027b3baf
commit be2a456cc0
1 changed files with 2 additions and 0 deletions

View File

@ -292,6 +292,8 @@ public class HighlighterSearchTests extends AbstractNodesTests {
.execute().actionGet();
assertThat(search.hits().totalHits(), equalTo(5l));
assertThat(search.hits().hits().length, equalTo(5));
assertThat(search.getFailedShards(), equalTo(0));
for (SearchHit hit : search.hits()) {
// LUCENE 3.1 UPGRADE: Caused adding the space at the end...