[Test] Remove redundant assertions in SearchIT

The SearchResponse's took time is already checked by the assertSearchHeader()
method so it does not need to be checked twice.
This commit is contained in:
Tanguy Leroux 2017-06-09 09:44:57 +02:00
parent ad905924ae
commit 348884bda4
1 changed files with 0 additions and 3 deletions

View File

@ -174,7 +174,6 @@ public class SearchIT extends ESRestHighLevelClientTestCase {
assertSearchHeader(searchResponse);
assertNull(searchResponse.getSuggest());
assertEquals(Collections.emptyMap(), searchResponse.getProfileResults());
assertThat(searchResponse.getTook().nanos(), greaterThanOrEqualTo(0L));
assertEquals(5, searchResponse.getHits().totalHits);
assertEquals(0, searchResponse.getHits().getHits().length);
assertEquals(0f, searchResponse.getHits().getMaxScore(), 0f);
@ -257,7 +256,6 @@ public class SearchIT extends ESRestHighLevelClientTestCase {
assertSearchHeader(searchResponse);
assertNull(searchResponse.getSuggest());
assertEquals(Collections.emptyMap(), searchResponse.getProfileResults());
assertThat(searchResponse.getTook().nanos(), greaterThanOrEqualTo(0L));
assertEquals(5, searchResponse.getHits().totalHits);
assertEquals(0, searchResponse.getHits().getHits().length);
assertEquals(0f, searchResponse.getHits().getMaxScore(), 0f);
@ -337,7 +335,6 @@ public class SearchIT extends ESRestHighLevelClientTestCase {
assertSearchHeader(searchResponse);
assertNull(searchResponse.getSuggest());
assertEquals(Collections.emptyMap(), searchResponse.getProfileResults());
assertThat(searchResponse.getTook().nanos(), greaterThanOrEqualTo(0L));
assertEquals(3, searchResponse.getHits().totalHits);
assertEquals(0, searchResponse.getHits().getHits().length);
assertEquals(0f, searchResponse.getHits().getMaxScore(), 0f);