mockC2.expects(once()).method("accept")
.with(same(visitor)).after(mockVisior, "v");
mockC3.expects(once()).method("accept")
.with(same(visitor)).after(mockVisior, "v");
c.accept(visitor);
}
public void testAndAllChildrenConstraintsTrueGivesTrueUsingAlternateConstructor() {
Constraint c = new And(new Constraint[] {c1, c2, c3});