org.jmock.core.constraint
Class StringContains
java.lang.Object
org.jmock.core.constraint.SubstringConstraint
org.jmock.core.constraint.StringContains
- All Implemented Interfaces:
- Constraint, SelfDescribing
public class StringContains
- extends SubstringConstraint
Tests if the argument is a string that contains a substring.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringContains
public StringContains(String substring)
evalSubstringOf
protected boolean evalSubstringOf(String s)
- Specified by:
evalSubstringOf
in class SubstringConstraint
relationship
protected String relationship()
- Specified by:
relationship
in class SubstringConstraint