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:Constraint
Evaluates the constraint for argument o.- Specified by:
eval
in interfaceConstraint
- Returns:
true
if o meets the constraint,false
if it does not.
-
toString
-