use of javax.jcr.query.qom.Selector in project jackrabbit-oak by apache.
the class QomTest method selector.
@Test
public void selector() throws RepositoryException {
Selector s = f.selector("nodeTypeName", "selectorName");
assertEquals("nodeTypeName", s.getNodeTypeName());
assertEquals("selectorName", s.getSelectorName());
assertEquals("[nodeTypeName] AS [selectorName]", s.toString());
assertEquals("[n]", f.selector("n", null).toString());
}
Aggregations