StringStartsWith
Date: 2015-09-15

org.jmock.core.constraint

## Class StringStartsWith

- java.lang.Object
- - org.jmock.core.constraint.SubstringConstraint
  - - org.jmock.core.constraint.StringStartsWith

- All Implemented Interfaces:
    Constraint, SelfDescribing

      public class StringStartsWith
      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 and Description
    `StringStartsWith(java.lang.String substring)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected boolean` | `evalSubstringOf(java.lang.String s)`
    `protected java.lang.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

    - #### StringStartsWith

          public StringStartsWith(java.lang.String substring)

  - ### Method Detail

    - #### evalSubstringOf

          protected boolean evalSubstringOf(java.lang.String s)

      Specified by:
        `evalSubstringOf` in class `SubstringConstraint`

    - #### relationship

          protected java.lang.String relationship()

      Specified by:
        `relationship` in class `SubstringConstraint`