wrap lines

This commit is contained in:
Simon Willnauer 2016-02-12 13:03:21 +01:00
parent 297fb24112
commit 387a55d5f9
2 changed files with 4 additions and 2 deletions

View File

@ -143,7 +143,8 @@ public class TemplateQueryBuilderTests extends AbstractQueryTestCase<TemplateQue
builder = new TemplateQueryBuilder(new Template(query, ScriptType.INLINE, "mockscript",
XContentType.JSON, Collections.emptyMap())).queryName("outer");
assertEquals(new BoolQueryBuilder().must(new MatchAllQueryBuilder().queryName("foobar")).queryName("outer"), builder.rewrite(queryShardContext()));
assertEquals(new BoolQueryBuilder().must(new MatchAllQueryBuilder().queryName("foobar")).queryName("outer"),
builder.rewrite(queryShardContext()));
}
public void testRewriteWithInnerBoost() throws IOException {

View File

@ -152,7 +152,8 @@ public class WrapperQueryBuilderTests extends AbstractQueryTestCase<WrapperQuery
QueryBuilder<?> builder = new WrapperQueryBuilder("{ \"match_all\" : {\"_name\" : \"foobar\"}}");
assertEquals(new MatchAllQueryBuilder().queryName("foobar"), builder.rewrite(queryShardContext()));
builder = new WrapperQueryBuilder("{ \"match_all\" : {\"_name\" : \"foobar\"}}").queryName("outer");
assertEquals(new BoolQueryBuilder().must(new MatchAllQueryBuilder().queryName("foobar")).queryName("outer"), builder.rewrite(queryShardContext()));
assertEquals(new BoolQueryBuilder().must(new MatchAllQueryBuilder().queryName("foobar")).queryName("outer"),
builder.rewrite(queryShardContext()));
}
public void testRewriteWithInnerBoost() throws IOException {