assertEquals("Wrong size of orderings", 0, qom.getOrderings().length);
assertEquals("Wrong size of columns", 0, qom.getColumns().length);
}
public void testCreateQueryWithConstraint() throws RepositoryException {
Selector selector = qomFactory.selector(testNodeType);
PropertyExistence propExist = qomFactory.propertyExistence(propertyName1);
QueryObjectModel qom = qomFactory.createQuery(
selector, propExist, null, null);
assertTrue("Not a selector source", qom.getSource() instanceof Selector);
assertTrue("Not a property existence constraint", qom.getConstraint() instanceof PropertyExistence);