SOLR-11926: correct/extend TermsComponentTest.testUnlimitedRows logic

This commit is contained in:
Christine Poerschke 2018-01-30 12:33:04 +00:00
parent e2a5d46b9c
commit a296092341
1 changed files with 8 additions and 2 deletions

View File

@ -104,11 +104,17 @@ public class TermsComponentTest extends SolrTestCaseJ4 {
public void testUnlimitedRows() throws Exception {
assertQ(req("indent","true", "qt","/terms", "terms","true",
"terms.fl","lowerfilt",
"terms.fl","standardfilt",
"terms.rows","-1")
"terms.fl","standardfilt")
,"count(//lst[@name='lowerfilt']/*)=9"
,"count(//lst[@name='standardfilt']/*)=10"
);
assertQ(req("indent","true", "qt","/terms", "terms","true",
"terms.fl","lowerfilt",
"terms.fl","standardfilt",
"terms.limit","-1")
,"count(//lst[@name='lowerfilt']/*)=9"
,"count(//lst[@name='standardfilt']/*)=16"
);
}