use of org.xwiki.notifications.filters.expression.StartsWith in project xwiki-platform by xwiki.
the class ExpressionNodeToHQLConverterTest method parseWithStartsWithNode.
@Test
public void parseWithStartsWithNode() {
AbstractNode testAST = new StartsWith(new StringValueNode(TEST_VALUE_1), new StringValueNode(TEST_VALUE_2));
assertEquals(String.format(":%s LIKE concat(:%s, '%%') ESCAPE '!'", TEST_VALUE_1_IDENTIFIER, TEST_VALUE_2_IDENTIFIER), parser.parse(testAST).getQuery());
}
Aggregations