fixed issue from merge

This commit is contained in:
Colin Goodheart-Smithe 2016-02-01 13:57:38 +00:00
parent a241983c9d
commit 2d2e9e0621
1 changed files with 2 additions and 2 deletions

View File

@ -215,7 +215,7 @@ public class DiversifiedSamplerIT extends ESIntegTestCase {
.execute().actionGet();
assertSearchResponse(response);
Sampler sample = response.getAggregations().get("sample");
assertThat(sample.getDocCount(), greaterThan(0l));
assertThat(sample.getDocCount(), greaterThan(0L));
Terms authors = sample.getAggregations().get("authors");
assertThat(authors.getBuckets().size(), greaterThan(0));
}
@ -230,7 +230,7 @@ public class DiversifiedSamplerIT extends ESIntegTestCase {
.setQuery(new TermQueryBuilder("genre", "fantasy")).setFrom(0).setSize(60).addAggregation(sampleAgg).execute().actionGet();
assertSearchResponse(response);
Sampler sample = response.getAggregations().get("sample");
assertThat(sample.getDocCount(), equalTo(0l));
assertThat(sample.getDocCount(), equalTo(0L));
Terms authors = sample.getAggregations().get("authors");
assertNull(authors);
}