apply fixes after review
This commit is contained in:
parent
b906c8a389
commit
297fb24112
|
@ -229,6 +229,7 @@ public class TemplateQueryParserTests extends ESTestCase {
|
||||||
TemplateQueryParser parser = injector.getInstance(TemplateQueryParser.class);
|
TemplateQueryParser parser = injector.getInstance(TemplateQueryParser.class);
|
||||||
try {
|
try {
|
||||||
parser.fromXContent(context.parseContext()).toQuery(context);
|
parser.fromXContent(context.parseContext()).toQuery(context);
|
||||||
|
fail();
|
||||||
} catch (UnsupportedOperationException ex) {
|
} catch (UnsupportedOperationException ex) {
|
||||||
assertEquals("this query must be rewritten first", ex.getMessage());
|
assertEquals("this query must be rewritten first", ex.getMessage());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue