apply fixes after review

This commit is contained in:
Simon Willnauer 2016-02-12 12:53:18 +01:00
parent b906c8a389
commit 297fb24112
1 changed files with 1 additions and 0 deletions

View File

@ -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());
} }