org.jmock.core.constraint

Class IsNull

Implemented Interfaces:
Constraint, SelfDescribing

public class IsNull
extends Object
implements Constraint

Is the value null?

Method Summary

StringBuffer
describeTo(StringBuffer buffer)
boolean
eval(Object o)
Evaluates the constraint for argument o.

Method Details

describeTo

public StringBuffer describeTo(StringBuffer buffer)
Specified by:
describeTo in interface SelfDescribing

eval

public boolean eval(Object o)
Evaluates the constraint for argument o.
Specified by:
eval in interface Constraint
Parameters:
o - the object against which the constraint is evaluated.
Returns:
true if o meets the constraint, false if it does not.