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