use of org.apache.qpid.server.filter.SelectorParsingException in project qpid-broker-j by apache.
the class ConfiguredObjectQueryTest method testArithmeticStatementInOrderBy.
public void testArithmeticStatementInOrderBy() {
final List<OrderByExpression> orderByExpressions;
String orderByClause = "a + b";
ConfiguredObjectFilterParser parser = new ConfiguredObjectFilterParser();
parser.setConfiguredObjectExpressionFactory(new ConfiguredObjectExpressionFactory());
try {
orderByExpressions = parser.parseOrderBy(orderByClause);
assertEquals(1, orderByExpressions.size());
} catch (ParseException | TokenMgrError e) {
throw new SelectorParsingException("Unable to parse orderBy clause", e);
}
}
Aggregations