* Test case for {@link QueryObjectModelFactory#join(Source, Source, int, JoinCondition)}
*/
public void testJoin() throws RepositoryException {
Selector s1 = qomFactory.selector(ntBase);
Selector s2 = qomFactory.selector(testNodeType);
JoinCondition cond = qomFactory.equiJoinCondition(ntBase, jcrPrimaryType, testNodeType, jcrPrimaryType);
for (Iterator it = JOIN_TYPES.iterator(); it.hasNext(); ) {
int joinType = ((Integer) it.next()).intValue();
Join join = qomFactory.join(s1, s2, joinType, cond);
assertTrue("Not a selector source", join.getLeft() instanceof Selector);
assertTrue("Not a selector source", join.getRight() instanceof Selector);