Search in sources :

Example 1 with NotEqualsNode

use of org.xwiki.notifications.filters.expression.NotEqualsNode in project xwiki-platform by xwiki.

the class ExpressionNodeToHQLConverterTest method parseWithNotEqualsNode.

@Test
public void parseWithNotEqualsNode() {
    AbstractNode testAST = new NotEqualsNode(new StringValueNode(TEST_VALUE_1), new StringValueNode(TEST_VALUE_2));
    assertEquals(String.format(":%s <> :%s", TEST_VALUE_1_IDENTIFIER, TEST_VALUE_2_IDENTIFIER), parser.parse(testAST).getQuery());
}
Also used : AbstractNode(org.xwiki.notifications.filters.expression.generics.AbstractNode) StringValueNode(org.xwiki.notifications.filters.expression.StringValueNode) NotEqualsNode(org.xwiki.notifications.filters.expression.NotEqualsNode) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 NotEqualsNode (org.xwiki.notifications.filters.expression.NotEqualsNode)1 StringValueNode (org.xwiki.notifications.filters.expression.StringValueNode)1 AbstractNode (org.xwiki.notifications.filters.expression.generics.AbstractNode)1