Constraint constraint = createConstraint(property, "foo");
constraint.setOperator(BaseConditionOperators.EQUALS);
assignedConstraintsSet.getAssignedConstraints().add(constraint);
BaseCondition baseCondition = createBaseCondition(property,
BaseConditionOperators.EQUALS, "foo");
precondition.setLogicalConnectiveType(LogicalConnectiveTypes.AND);
precondition.getBaseConditions().add(baseCondition);
constraint.setValue("1.1.2");
assertIsInvalid();
constraint.setValue("foo");
assertIsInvalid();
constraint.setValue(null);
assertIsInvalid();
baseCondition.setValue("1.1.2");
assertIsInvalid();
baseCondition.setValue("foo");
assertIsInvalid();
baseCondition.setValue(null);
assertIsInvalid();
}