[TEST] fix CommonTermsQueryBuilderTest

This commit is contained in:
Alex Ksikes 2015-06-25 18:04:28 -05:00
parent 06d9948b09
commit 33a7839cfb
1 changed files with 3 additions and 1 deletions

View File

@ -137,6 +137,8 @@ public class CommonTermsQueryBuilderTest extends BaseQueryTestCase<CommonTermsQu
@Test @Test
public void testNoTermsFromQueryString() throws IOException { public void testNoTermsFromQueryString() throws IOException {
CommonTermsQueryBuilder builder = new CommonTermsQueryBuilder(STRING_FIELD_NAME, ""); CommonTermsQueryBuilder builder = new CommonTermsQueryBuilder(STRING_FIELD_NAME, "");
assertNull(builder.toQuery(createContext())); QueryParseContext context = createContext();
context.setAllowUnmappedFields(true);
assertNull(builder.toQuery(context));
} }
} }