Search in sources :

Example 1 with FindNodePathsByQueryResult

use of com.enonic.xp.node.FindNodePathsByQueryResult in project xp by enonic.

the class FindNodePathByQueryTest method queryAndExpect.

private void queryAndExpect(final String queryString, final NodePaths expected) {
    final NodeQuery query = NodeQuery.create().query(QueryParser.parse(queryString)).build();
    final FindNodePathsByQueryResult result = this.nodeService.findNodePathsByQuery(query);
    assertEquals(expected, result.getPaths());
}
Also used : NodeQuery(com.enonic.xp.node.NodeQuery) FindNodePathsByQueryResult(com.enonic.xp.node.FindNodePathsByQueryResult)

Aggregations

FindNodePathsByQueryResult (com.enonic.xp.node.FindNodePathsByQueryResult)1 NodeQuery (com.enonic.xp.node.NodeQuery)1