Adapt to changed method name

This commit is contained in:
Christoph Büscher 2015-07-09 19:05:02 +02:00
parent dda11e16a7
commit ac92ad6270
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ public abstract class BaseQueryTestCase<QB extends AbstractQueryBuilder<QB>> ext
*/
protected final void assertLuceneQuery(QB queryBuilder, Query query, QueryParseContext context) {
if (queryBuilder.queryName() != null) {
Query namedQuery = context.copyNamedFilters().get(queryBuilder.queryName());
Query namedQuery = context.copyNamedQueries().get(queryBuilder.queryName());
assertThat(namedQuery, equalTo(query));
}
}