return "";
}
});
public void testNeedsSystemTree() throws Exception {
QueryRootNode queryRootNode = XPathQueryBuilder.createQuery("/jcr:root/*", JCR_RESOLVER, QUERY_NODE_FACTORY);
assertTrue(queryRootNode.needsSystemTree());
queryRootNode = XPathQueryBuilder.createQuery("/jcr:root/test/*", JCR_RESOLVER, QUERY_NODE_FACTORY);
assertFalse(queryRootNode.needsSystemTree());
queryRootNode = XPathQueryBuilder.createQuery("*", JCR_RESOLVER, QUERY_NODE_FACTORY);
assertTrue(queryRootNode.needsSystemTree());
queryRootNode = XPathQueryBuilder.createQuery("jcr:system/*", JCR_RESOLVER, QUERY_NODE_FACTORY);
assertTrue(queryRootNode.needsSystemTree());
queryRootNode = XPathQueryBuilder.createQuery("test//*", JCR_RESOLVER, QUERY_NODE_FACTORY);
assertFalse(queryRootNode.needsSystemTree());
queryRootNode = XPathQueryBuilder.createQuery("//test/*", JCR_RESOLVER, QUERY_NODE_FACTORY);
assertTrue(queryRootNode.needsSystemTree());
}