org.jmock.core.constraint
Class IsInstanceOf
- Constraint, SelfDescribing
public class IsInstanceOf
Tests whether the value is an instance of a class.
IsInstanceOf(Class theClass) - Creates a new instance of IsInstanceOf
|
StringBuffer | describeTo(StringBuffer buffer)
|
boolean | eval(Object arg) - Evaluates the constraint for argument o.
|
IsInstanceOf
public IsInstanceOf(Class theClass)
Creates a new instance of IsInstanceOf
theClass
- The predicate evaluates to true for instances of this class
or one of its subclasses.
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.