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