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 ErrorMessageFactory
shouldBeSubstring
(CharSequence actual, CharSequence expected, org.assertj.core.internal.ComparisonStrategy comparisonStrategy) Creates a new
.ShouldBeSubstring
Methods 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, 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
- theComparisonStrategy
used- Returns:
- the created
ErrorMessageFactory
.
-