Package org.assertj.core.error
Class ShouldBeSubstring
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldBeSubstring
- All Implemented Interfaces:
ErrorMessageFactory
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactoryshouldBeSubstring(CharSequence actual, CharSequence expected, ComparisonStrategy comparisonStrategy) Creates a new.ShouldBeSubstringMethods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldBeSubstring
public static ErrorMessageFactory shouldBeSubstring(CharSequence actual, CharSequence expected, ComparisonStrategy comparisonStrategy) Creates a new.ShouldBeSubstring- Parameters:
actual- the actual value in the failed assertion.expected- the expected value in the failed assertion.comparisonStrategy- theComparisonStrategyused- Returns:
- the created
ErrorMessageFactory.
-