Search in sources :

Example 1 with XPathExpression

use of org.apache.activemq.artemis.selector.filter.XPathExpression in project activemq-artemis by apache.

the class SelectorParserTest method testParseXPath.

@Test
public void testParseXPath() throws Exception {
    BooleanExpression filter = parse("XPATH '//title[@lang=''eng'']'");
    Assert.assertTrue("Created XPath expression", filter instanceof XPathExpression);
    info("Expression: " + filter);
}
Also used : XPathExpression(org.apache.activemq.artemis.selector.filter.XPathExpression) BooleanExpression(org.apache.activemq.artemis.selector.filter.BooleanExpression) Test(org.junit.Test)

Aggregations

BooleanExpression (org.apache.activemq.artemis.selector.filter.BooleanExpression)1 XPathExpression (org.apache.activemq.artemis.selector.filter.XPathExpression)1 Test (org.junit.Test)1