IHostAttributes hostAttributes,
String constraintName,
boolean expected,
ValueConstraint value) {
Constraint constraint = new Constraint(constraintName, TaskConstraint.value(value));
ITaskConfig task = makeTask(owner, jobName, constraint);
assertEquals(
expected,
defaultFilter.filter(
DEFAULT_OFFER,
hostAttributes,
task,
TASK_ID,
aggregate).isEmpty());
Constraint negated = constraint.deepCopy();
negated.getConstraint().getValue().setNegated(!value.isNegated());
ITaskConfig negatedTask = makeTask(owner, jobName, negated);
assertEquals(
!expected,
defaultFilter.filter(
DEFAULT_OFFER,