org.jmock.core.constraint
Class Or
- Constraint, SelfDescribing
Calculates the logical disjunction of two constraints. Evaluation is
shortcut, so that the second constraint is not called if the first
constraint returns true
.
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.