use of org.apache.cayenne.exp.parser.PatternMatchNode in project cayenne by apache.
the class LikeExpressionHelperTest method testEscape_AltEscapeChar1.
@Test
public void testEscape_AltEscapeChar1() {
PatternMatchNode node = new ASTLike(new ASTObjPath("x"), "a!%c");
LikeExpressionHelper.escape(node);
assertEquals("a!#%c", node.getOperand(1));
assertEquals('#', node.getEscapeChar());
}
Aggregations