org.jmock.core.constraint
Class And
- Constraint, SelfDescribing
Calculates the logical conjunction of two constraints. Evaluation is
shortcut, so that the second constraint is not called if the first
constraint returns false.
StringBuffer | describeTo(StringBuffer buffer)
|
boolean | eval(Object o)- Evaluates the constraint for argument o.
|
eval
public boolean eval(Object o)
Evaluates the constraint for argument o.
- eval in interface Constraint
o - the object against which the constraint is evaluated.
true if o meets the constraint,
false if it does not.