org.jmock.core.constraint

Class IsAnything

Implemented Interfaces:
Constraint, SelfDescribing

public class IsAnything
extends Object
implements Constraint

A constraint that always returns true.

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.