StringContains (jMock API Documentation)
Keywords: org.jmock.core.constraint.StringContains class

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Field Summary

Fields inherited from class org.jmock.core.constraint.SubstringConstraint
`substring`

Constructor Summary
`StringContains(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

### StringContains

    public StringContains(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`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD