com.mockobjects.constraint

Class IsInstanceOf

public class IsInstanceOf extends Object implements Constraint

Tests whether the value is an instance of a class.
Constructor Summary
IsInstanceOf(Class theclass)
Creates a new instance of IsInstanceOf
Method Summary
booleaneval(Object arg)
StringtoString()

Constructor Detail

IsInstanceOf

public IsInstanceOf(Class theclass)
Creates a new instance of IsInstanceOf

Parameters: theclass The predicate evaluates to true for instances of this class or one of its subclasses.

Method Detail

eval

public boolean eval(Object arg)

toString

public String toString()
Copyright © 2002 Mock Objects. All Rights Reserved.