Package org.assertj.core.error
Class ShouldNotContainCharSequence
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldNotContainCharSequence
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a
CharSequence
does not contain another
CharSequence
failed.- Author:
- Alex Ruiz, Joel Costigliola, Mikhail Mazursky
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
-
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactory
shouldNotContain
(CharSequence actual, CharSequence sequence) static ErrorMessageFactory
shouldNotContain
(CharSequence actual, CharSequence[] values, Set<? extends CharSequence> found, org.assertj.core.internal.ComparisonStrategy comparisonStrategy) Creates a newShouldNotContainCharSequence
static ErrorMessageFactory
shouldNotContain
(CharSequence actual, CharSequence sequence, org.assertj.core.internal.ComparisonStrategy comparisonStrategy) Creates a new
.ShouldNotContainCharSequence
static ErrorMessageFactory
shouldNotContainIgnoringCase
(CharSequence actual, CharSequence sequence) Creates a new
.ShouldContainCharSequence
static ErrorMessageFactory
shouldNotContainIgnoringCase
(CharSequence actual, CharSequence[] sequences, Set<CharSequence> foundSequences) Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldNotContain
public static ErrorMessageFactory shouldNotContain(CharSequence actual, CharSequence sequence, org.assertj.core.internal.ComparisonStrategy comparisonStrategy) Creates a new
.ShouldNotContainCharSequence
- Parameters:
actual
- the actual value in the failed assertion.sequence
- the charsequence expected not to be inactual
.comparisonStrategy
- theComparisonStrategy
used to evaluate assertion.- Returns:
- the created
ErrorMessageFactory
.
-
shouldNotContain
-
shouldNotContain
public static ErrorMessageFactory shouldNotContain(CharSequence actual, CharSequence[] values, Set<? extends CharSequence> found, org.assertj.core.internal.ComparisonStrategy comparisonStrategy) Creates a newShouldNotContainCharSequence
- Parameters:
actual
- the actual value in the failed assertion.values
- the charsequences expected not to be inactual
.found
- the charsequences unexpectedly inactual
.comparisonStrategy
- theComparisonStrategy
used to evaluate assertion.- Returns:
- the created
ErrorMessageFactory
.
-
shouldNotContainIgnoringCase
public static ErrorMessageFactory shouldNotContainIgnoringCase(CharSequence actual, CharSequence sequence) Creates a new
.ShouldContainCharSequence
- Parameters:
actual
- the actual value in the failed assertion.sequence
- the sequence of values expected to be inactual
, ignoring case- Returns:
- the created
ErrorMessageFactory
.
-
shouldNotContainIgnoringCase
public static ErrorMessageFactory shouldNotContainIgnoringCase(CharSequence actual, CharSequence[] sequences, Set<CharSequence> foundSequences)
-