mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-01 16:39:11 +00:00
[TEST] fix CommonTermsQueryBuilderTest
This commit is contained in:
parent
06d9948b09
commit
33a7839cfb
@ -137,6 +137,8 @@ public class CommonTermsQueryBuilderTest extends BaseQueryTestCase<CommonTermsQu
|
||||
@Test
|
||||
public void testNoTermsFromQueryString() throws IOException {
|
||||
CommonTermsQueryBuilder builder = new CommonTermsQueryBuilder(STRING_FIELD_NAME, "");
|
||||
assertNull(builder.toQuery(createContext()));
|
||||
QueryParseContext context = createContext();
|
||||
context.setAllowUnmappedFields(true);
|
||||
assertNull(builder.toQuery(context));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user