assertFalse(c.evaluate(adapter));
}
public void testOrAllChildrenConstraintsFalseGivesFalse() {
Constraint c = new Or(c1, c2, c3);
mockC1.expects(once()).method("evaluate")
.with(same(adapter))
.will(returnValue(Boolean.FALSE)).id("c1");
mockC2.expects(once()).method("evaluate")
.with(same(adapter)).after(mockC1, "c1")
.will(returnValue(Boolean.FALSE)).id("c2");
mockC3.expects(once()).method("evaluate")
.with(same(adapter)).after(mockC2, "c2")
.will(returnValue(Boolean.FALSE));
assertFalse(c.evaluate(adapter));
}