org.jmock.core.constraint
Class StringEndsWith

java.lang.Object
  extended by org.jmock.core.constraint.SubstringConstraint
      extended by 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
StringEndsWith(String substring)
           
 
Method Summary
protected  boolean evalSubstringOf(String s)
           
protected  String relationship()
           
 
Methods inherited from class org.jmock.core.constraint.SubstringConstraint
describeTo, eval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringEndsWith

public StringEndsWith(String substring)
Method Detail

evalSubstringOf

protected boolean evalSubstringOf(String s)
Specified by:
evalSubstringOf in class SubstringConstraint

relationship

protected String relationship()
Specified by:
relationship in class SubstringConstraint