Package org.jmock.core.constraint
Class StringEndsWith
- java.lang.Object
-
- org.jmock.core.constraint.SubstringConstraint
-
- org.jmock.core.constraint.StringEndsWith
-
- All Implemented Interfaces:
Constraint
,SelfDescribing
public class StringEndsWith extends SubstringConstraint
Tests if the argument is a string that contains a substring.
-
-
Field Summary
-
Fields inherited from class org.jmock.core.constraint.SubstringConstraint
substring
-
-
Constructor Summary
Constructors Constructor Description StringEndsWith(java.lang.String substring)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
evalSubstringOf(java.lang.String s)
protected java.lang.String
relationship()
-
Methods inherited from class org.jmock.core.constraint.SubstringConstraint
describeTo, eval
-
-
-
-
Method Detail
-
evalSubstringOf
protected boolean evalSubstringOf(java.lang.String s)
- Specified by:
evalSubstringOf
in classSubstringConstraint
-
relationship
protected java.lang.String relationship()
- Specified by:
relationship
in classSubstringConstraint
-
-