public @NotNull StringAssert contains(String expected) {
    isNotNull();
    if (actual.indexOf(expected) != -1) {
      return this;
    }
    failIfCustomMessageIsSet();
    throw failure(format("<%s> should contain the String:<%s>", actual, expected));
  }
public @NotNull StringAssert contains(String expected) {
    isNotNull();
    if (actual.indexOf(expected) != -1) {
      return this;
    }
    failIfCustomMessageIsSet();
    throw failure(format("<%s> should contain the String:<%s>", actual, expected));
  }
public @ NotNull StringAssert contains ( String expected ) { isNotNull ( ) ; if ( actual . indexOf ( expected ) != - 1 ) { return this ; } failIfCustomMessageIsSet ( ) ; throw failure ( format ( "<%s> should contain the String:<%s>" , actual , expected ) ) ; }
Verifies that the actual {@code String} contains the given one.

@param expected the given {@code String} expected to be contained in the actual one.
@return this assertion object.
@throws AssertionError if the actual {@code String} is {@code null}.
@throws AssertionError if the actual {@code String} does not contain the given one.
Verifies that the actual { @code String } contains the given one .