Package org.assertj.core.error
Class ShouldNotContainCharSequence
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldNotContainCharSequence
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldNotContainCharSequence extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that aCharSequence
does not contain anotherCharSequence
failed.- Author:
- Alex Ruiz, Joel Costigliola, Mikhail Mazursky
-
-
Field Summary
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactory
shouldNotContain(CharSequence actual, CharSequence sequence)
Creates a new
.ShouldNotContainCharSequence
static ErrorMessageFactory
shouldNotContain(CharSequence actual, CharSequence sequence, ComparisonStrategy comparisonStrategy)
Creates a new
.ShouldNotContainCharSequence
-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Method Detail
-
shouldNotContain
public static ErrorMessageFactory shouldNotContain(CharSequence actual, CharSequence sequence)
Creates a new
.ShouldNotContainCharSequence
- Parameters:
actual
- the actual value in the failed assertion.sequence
- the sequence of values expected not to be inactual
.- Returns:
- the created
ErrorMessageFactory
.
-
shouldNotContain
public static ErrorMessageFactory shouldNotContain(CharSequence actual, CharSequence sequence, ComparisonStrategy comparisonStrategy)
Creates a new
.ShouldNotContainCharSequence
- Parameters:
actual
- the actual value in the failed assertion.sequence
- the sequence of values expected not to be inactual
.comparisonStrategy
- theComparisonStrategy
used to evaluate assertion.- Returns:
- the created
ErrorMessageFactory
.
-
-