Class ShouldBeSubstring

java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldBeSubstring
All Implemented Interfaces:
ErrorMessageFactory

public class ShouldBeSubstring extends BasicErrorMessageFactory
  • Method Details

    • shouldBeSubstring

      public static ErrorMessageFactory shouldBeSubstring(CharSequence actual, CharSequence expected, org.assertj.core.internal.ComparisonStrategy comparisonStrategy)
      Creates a new ShouldBeSubstring.
      Parameters:
      actual - the actual value in the failed assertion.
      expected - the expected value in the failed assertion.
      comparisonStrategy - the ComparisonStrategy used
      Returns:
      the created ErrorMessageFactory.