/**
* Test case for {@link QueryObjectModelFactory#comparison(DynamicOperand, int, StaticOperand)}
*/
public void testComparison() throws RepositoryException {
PropertyValue op1 = qomFactory.propertyValue(SELECTOR_NAME1, propertyName1);
BindVariableValue op2 = qomFactory.bindVariable(VARIABLE_NAME);
for (Iterator it = OPERATORS.iterator(); it.hasNext(); ) {
String operator = (String) it.next();
Comparison comp = qomFactory.comparison(op1, operator, op2);
assertTrue("Not a PropertyValue operand", comp.getOperand1() instanceof PropertyValue);
assertTrue("Not a BindVariableValue operand", comp.getOperand2() instanceof BindVariableValue);