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