org.jmock.core.constraint
Class StringContains
- Constraint, SelfDescribing
public class StringContains
Tests if the argument is a string that contains a substring.
StringBuffer | describeTo(StringBuffer buffer)
|
boolean | eval(Object o) - Evaluates the constraint for argument o.
|
StringContains
public StringContains(String substring)
eval
public boolean eval(Object o)
Evaluates the constraint for argument o.
- eval in interface Constraint
o
- the object against which the constraint is evaluated.
true
if o meets the constraint,
false
if it does not.