Constraint constraint = createConstraint(property, "foo");
constraint.setOperator(BaseConditionOperators.EQUALS);
assignedConstraintsSet.getAssignedConstraints().add(constraint);
BaseCondition baseCondition = createBaseCondition(property,
BaseConditionOperators.MATCHES, "foo");
precondition.setLogicalConnectiveType(LogicalConnectiveTypes.AND);
precondition.getBaseConditions().add(baseCondition);
baseCondition.setOperator(BaseConditionOperators.GREATER_THAN);
assertIsInvalid();
baseCondition.setOperator(BaseConditionOperators.LESS_THAN);
assertIsInvalid();
baseCondition.setOperator(BaseConditionOperators.MAXIMAL);
assertIsInvalid();
baseCondition.setOperator(BaseConditionOperators.MINIMAL);
assertIsInvalid();
baseCondition.setOperator(BaseConditionOperators.MATCHES);
assertIsInvalid();
baseCondition.setOperator(BaseConditionOperators.EQUALS_IGNORE_CASE);
assertIsInvalid();
baseCondition.setOperator(BaseConditionOperators.APPROXIMATELY_EQUALS);
assertIsInvalid();
}