org.jmock.core
Interface Constraint

All Superinterfaces:
SelfDescribing
All Known Implementing Classes:
And, IsAnything, IsCloseTo, IsEqual, IsEventFrom, IsGreaterThan, IsInstanceOf, IsLessThan, IsNot, IsNull, IsSame, Or, StringContains

public interface Constraint
extends SelfDescribing

A constraint over acceptable values.


Method Summary
 boolean eval(Object o)
          Evaluates the constraint for argument o.
 
Methods inherited from interface org.jmock.core.SelfDescribing
describeTo
 

Method Detail

eval

public boolean eval(Object o)
Evaluates the constraint for argument o.

Parameters:
o - the object against which the constraint is evaluated.
Returns:
true if o meets the constraint, false if it does not.