org.jmock.core.constraint
Class IsSame
- Constraint, SelfDescribing
Is the value the same object as another value?
IsSame(Object object) - Creates a new instance of IsSame
|
StringBuffer | describeTo(StringBuffer buffer)
|
boolean | eval(Object arg) - Evaluates the constraint for argument o.
|
IsSame
public IsSame(Object object)
Creates a new instance of IsSame
object
- The predicate evaluates to true only when the argument is
this object.
eval
public boolean eval(Object arg)
Evaluates the constraint for argument o.
- eval in interface Constraint
true
if o meets the constraint,
false
if it does not.