QueryResult result = qom.execute();
checkResult(result, new Node[][]{{null, n1}, {n2, n2}});
}
public void testRightOuterJoinWithPath() throws RepositoryException {
QueryObjectModel qom = qf.createQuery(
qf.join(
qf.selector(mixReferenceable, LEFT),
qf.selector(testNodeType, RIGHT),
QueryObjectModelConstants.JCR_JOIN_TYPE_RIGHT_OUTER,
qf.sameNodeJoinCondition(LEFT, RIGHT, nodeName2)),
qf.descendantNode(RIGHT, testRoot),
null, null);
QueryResult result = qom.execute();
checkResult(result, new Node[][]{{n2, n1}, {null, n2}});
}