use of javax.jcr.query.qom.DescendantNodeJoinCondition in project jackrabbit by apache.
the class QueryObjectModelFactoryTest method testDescendantNodeJoinCondition.
/**
* Test case for {@link QueryObjectModelFactory#descendantNodeJoinCondition(String, String)}
*/
public void testDescendantNodeJoinCondition() throws RepositoryException {
DescendantNodeJoinCondition cond = qf.descendantNodeJoinCondition(SELECTOR_NAME1, SELECTOR_NAME2);
assertEquals("Wrong selector name", SELECTOR_NAME1, cond.getDescendantSelectorName());
assertEquals("Wrong selector name", SELECTOR_NAME2, cond.getAncestorSelectorName());
}
use of javax.jcr.query.qom.DescendantNodeJoinCondition in project jackrabbit-oak by apache.
the class QomTest method descendantNodeJoinCondition.
@Test
public void descendantNodeJoinCondition() throws RepositoryException {
DescendantNodeJoinCondition d = f.descendantNodeJoinCondition("descendantSelectorName", "ancestorSelectorName");
assertEquals("descendantSelectorName", d.getDescendantSelectorName());
assertEquals("ancestorSelectorName", d.getAncestorSelectorName());
assertEquals("ISDESCENDANTNODE([descendantSelectorName], [ancestorSelectorName])", d.toString());
}
Aggregations