Package com.mockobjects.constraint
Class IsSame
java.lang.Object
com.mockobjects.constraint.IsSame
- All Implemented Interfaces:
Constraint
Is the value the same object as another value?
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IsSame
Creates a new instance of IsSame- Parameters:
o- The predicate evaluates to true only when the argument is this object.
-
-
Method Details
-
eval
Description copied from interface:ConstraintEvaluates the constraint for argument o.- Specified by:
evalin interfaceConstraint- Returns:
trueif o meets the constraint,falseif it does not.
-
toString
-